1 ;;; nnheader.el --- header access macros for Gnus and its backends
2 ;; Copyright (C) 1987,88,89,90,93,94,95,96,97,98 Free Software Foundation, Inc.
4 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
5 ;; Lars Magne Ingebrigtsen <larsi@gnus.org>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
27 ;; These macros may look very much like the ones in GNUS 4.1. They
28 ;; are, in a way, but you should note that the indices they use have
29 ;; been changed from the internal GNUS format to the NOV format. The
30 ;; makes it possible to read headers from XOVER much faster.
32 ;; The format of a header is now:
33 ;; [number subject from date id references chars lines xref]
35 ;; (That last entry is defined as "misc" in the NOV format, but Gnus
36 ;; uses it for xrefs.)
40 (eval-when-compile (require 'cl))
45 (defvar nnheader-max-head-length 4096
46 "*Max length of the head of articles.")
48 (defvar nnheader-head-chop-length 2048
49 "*Length of each read operation when trying to fetch HEAD headers.")
51 (defvar nnheader-file-name-translation-alist nil
52 "*Alist that says how to translate characters in file names.
53 For instance, if \":\" is illegal as a file character in file names
54 on your system, you could say something like:
56 \(setq nnheader-file-name-translation-alist '((?: . ?_)))")
59 (autoload 'nnmail-message-id "nnmail")
60 (autoload 'mail-position-on-field "sendmail")
61 (autoload 'message-remove-header "message")
62 (autoload 'cancel-function-timers "timers")
63 (autoload 'gnus-point-at-eol "gnus-util")
64 (autoload 'gnus-delete-line "gnus-util")
65 (autoload 'gnus-buffer-live-p "gnus-util"))
67 ;;; Header access macros.
69 (defmacro mail-header-number (header)
70 "Return article number in HEADER."
73 (defmacro mail-header-set-number (header number)
74 "Set article number of HEADER to NUMBER."
75 `(aset ,header 0 ,number))
77 (defmacro mail-header-subject (header)
78 "Return subject string in HEADER."
81 (defmacro mail-header-set-subject (header subject)
82 "Set article subject of HEADER to SUBJECT."
83 `(aset ,header 1 ,subject))
85 (defmacro mail-header-from (header)
86 "Return author string in HEADER."
89 (defmacro mail-header-set-from (header from)
90 "Set article author of HEADER to FROM."
91 `(aset ,header 2 ,from))
93 (defmacro mail-header-date (header)
94 "Return date in HEADER."
97 (defmacro mail-header-set-date (header date)
98 "Set article date of HEADER to DATE."
99 `(aset ,header 3 ,date))
101 (defalias 'mail-header-message-id 'mail-header-id)
102 (defmacro mail-header-id (header)
103 "Return Id in HEADER."
106 (defalias 'mail-header-set-message-id 'mail-header-set-id)
107 (defmacro mail-header-set-id (header id)
108 "Set article Id of HEADER to ID."
109 `(aset ,header 4 ,id))
111 (defmacro mail-header-references (header)
112 "Return references in HEADER."
115 (defmacro mail-header-set-references (header ref)
116 "Set article references of HEADER to REF."
117 `(aset ,header 5 ,ref))
119 (defmacro mail-header-chars (header)
120 "Return number of chars of article in HEADER."
123 (defmacro mail-header-set-chars (header chars)
124 "Set number of chars in article of HEADER to CHARS."
125 `(aset ,header 6 ,chars))
127 (defmacro mail-header-lines (header)
128 "Return lines in HEADER."
131 (defmacro mail-header-set-lines (header lines)
132 "Set article lines of HEADER to LINES."
133 `(aset ,header 7 ,lines))
135 (defmacro mail-header-xref (header)
136 "Return xref string in HEADER."
139 (defmacro mail-header-set-xref (header xref)
140 "Set article xref of HEADER to xref."
141 `(aset ,header 8 ,xref))
143 (defun make-mail-header (&optional init)
144 "Create a new mail header structure initialized with INIT."
145 (make-vector 9 init))
147 (defun make-full-mail-header (&optional number subject from date id
148 references chars lines xref)
149 "Create a new mail header structure initialized with the parameters given."
150 (vector number subject from date id references chars lines xref))
152 ;; fake message-ids: generation and detection
154 (defvar nnheader-fake-message-id 1)
156 (defsubst nnheader-generate-fake-message-id ()
157 (concat "fake+none+" (int-to-string (incf nnheader-fake-message-id))))
159 (defsubst nnheader-fake-message-id-p (id)
160 (save-match-data ; regular message-id's are <.*>
161 (string-match "\\`fake\\+none\\+[0-9]+\\'" id)))
163 ;; Parsing headers and NOV lines.
165 (defsubst nnheader-header-value ()
166 (buffer-substring (match-end 0) (gnus-point-at-eol)))
168 (defun nnheader-parse-head (&optional naked)
169 (let ((case-fold-search t)
170 (cur (current-buffer))
171 (buffer-read-only nil)
172 in-reply-to lines p ref)
173 (goto-char (point-min))
176 ;; Search to the beginning of the next header. Error messages
177 ;; do not begin with 2 or 3.
179 (when (or naked (re-search-forward "^[23][0-9]+ " nil t))
180 ;; This implementation of this function, with nine
181 ;; search-forwards instead of the one re-search-forward and
182 ;; a case (which basically was the old function) is actually
183 ;; about twice as fast, even though it looks messier. You
184 ;; can't have everything, I guess. Speed and elegance
185 ;; don't always go hand in hand.
196 (narrow-to-region (point)
197 (or (and (search-forward "\n.\n" nil t)
203 (if (search-forward "\nsubject: " nil t)
204 (nnheader-header-value) "(none)"))
208 (if (search-forward "\nfrom: " nil t)
209 (nnheader-header-value) "(nobody)"))
213 (if (search-forward "\ndate: " nil t)
214 (nnheader-header-value) ""))
218 (if (search-forward "\nmessage-id:" nil t)
220 (1- (or (search-forward "<" (gnus-point-at-eol) t)
222 (or (search-forward ">" (gnus-point-at-eol) t) (point)))
223 ;; If there was no message-id, we just fake one to make
224 ;; subsequent routines simpler.
225 (nnheader-generate-fake-message-id)))
229 (if (search-forward "\nreferences: " nil t)
230 (nnheader-header-value)
231 ;; Get the references from the in-reply-to header if there
232 ;; were no references and the in-reply-to header looks
234 (if (and (search-forward "\nin-reply-to: " nil t)
235 (setq in-reply-to (nnheader-header-value))
236 (string-match "<[^>]+>" in-reply-to))
238 (setq ref (substring in-reply-to (match-beginning 0)
240 (while (string-match "<[^>]+>" in-reply-to (match-end 0))
241 (setq ref2 (substring in-reply-to (match-beginning 0)
243 (when (> (length ref2) (length ref))
252 (if (search-forward "\nlines: " nil t)
253 (if (numberp (setq lines (read cur)))
259 (and (search-forward "\nxref: " nil t)
260 (nnheader-header-value)))))
262 (goto-char (point-min))
265 (defmacro nnheader-nov-skip-field ()
266 '(search-forward "\t" eol 'move))
268 (defmacro nnheader-nov-field ()
269 '(buffer-substring (point) (if (nnheader-nov-skip-field) (1- (point)) eol)))
271 (defmacro nnheader-nov-read-integer ()
273 (if (= (following-char) ?\t)
275 (let ((num (ignore-errors (read (current-buffer)))))
276 (if (numberp num) num 0)))
277 (or (eobp) (forward-char 1))))
279 ;; (defvar nnheader-none-counter 0)
281 (defun nnheader-parse-nov ()
282 (let ((eol (gnus-point-at-eol)))
284 (nnheader-nov-read-integer) ; number
285 (nnheader-nov-field) ; subject
286 (nnheader-nov-field) ; from
287 (nnheader-nov-field) ; date
288 (or (nnheader-nov-field)
289 (nnheader-generate-fake-message-id)) ; id
290 (nnheader-nov-field) ; refs
291 (nnheader-nov-read-integer) ; chars
292 (nnheader-nov-read-integer) ; lines
293 (if (= (following-char) ?\n)
295 (nnheader-nov-field)) ; misc
298 (defun nnheader-insert-nov (header)
299 (princ (mail-header-number header) (current-buffer))
302 (or (mail-header-subject header) "(none)") "\t"
303 (or (mail-header-from header) "(nobody)") "\t"
304 (or (mail-header-date header) "") "\t"
305 (or (mail-header-id header)
308 (or (mail-header-references header) "") "\t")
309 (princ (or (mail-header-chars header) 0) (current-buffer))
311 (princ (or (mail-header-lines header) 0) (current-buffer))
313 (when (mail-header-xref header)
314 (insert "Xref: " (mail-header-xref header) "\t"))
317 (defun nnheader-insert-article-line (article)
318 (goto-char (point-min))
320 (princ article (current-buffer))
321 (insert " Article retrieved.\n")
322 (search-forward "\n\n" nil 'move)
323 (delete-region (point) (point-max))
327 (defun nnheader-nov-delete-outside-range (beg end)
328 "Delete all NOV lines that lie outside the BEG to END range."
329 ;; First we find the first wanted line.
330 (nnheader-find-nov-line beg)
331 (delete-region (point-min) (point))
332 ;; Then we find the last wanted line.
333 (when (nnheader-find-nov-line end)
335 (delete-region (point) (point-max)))
337 (defun nnheader-find-nov-line (article)
338 "Put point at the NOV line that start with ARTICLE.
339 If ARTICLE doesn't exist, put point where that line
340 would have been. The function will return non-nil if
341 the line could be found."
342 ;; This function basically does a binary search.
343 (let ((max (point-max))
344 (min (goto-char (point-min)))
345 (cur (current-buffer))
349 (goto-char (/ (+ max min) 2))
351 (if (or (= (point) prev)
355 (while (and (not (numberp (setq num (read cur))))
358 (cond ((> num article)
363 (setq found 'yes)))))
364 ;; We may be at the first line.
367 (setq num (read cur)))
368 ;; Now we may have found the article we're looking for, or we
369 ;; may be somewhere near it.
370 (when (and (not (eq found 'yes))
371 (not (eq num article)))
373 (while (and (< (point) max)
374 (or (not (numberp num))
379 (= (setq num (read cur)) article)))
380 (unless (eq num article)
385 ;; Various cruft the backends and Gnus need to communicate.
387 (defvar nntp-server-buffer nil)
388 (defvar gnus-verbose-backends 7
389 "*A number that says how talkative the Gnus backends should be.")
390 (defvar gnus-nov-is-evil nil
391 "If non-nil, Gnus backends will never output headers in the NOV format.")
392 (defvar news-reply-yank-from nil)
393 (defvar news-reply-yank-message-id nil)
395 (defvar nnheader-callback-function nil)
397 (defun nnheader-init-server-buffer ()
398 "Initialize the Gnus-backend communication buffer."
400 (unless (gnus-buffer-live-p nntp-server-buffer)
401 (setq nntp-server-buffer (get-buffer-create " *nntpd*")))
402 (mm-enable-multibyte)
403 (set-buffer nntp-server-buffer)
405 (kill-all-local-variables)
406 (setq case-fold-search t) ;Should ignore case.
409 ;;; Various functions the backends use.
411 (defun nnheader-file-error (file)
412 "Return a string that says what is wrong with FILE."
415 ((not (file-exists-p file))
417 ((file-directory-p file)
419 ((not (file-readable-p file))
420 "%s is not readable"))
423 (defun nnheader-insert-head (file)
424 "Insert the head of the article."
425 (when (file-exists-p file)
426 (if (eq nnheader-max-head-length t)
427 ;; Just read the entire file.
428 (nnheader-insert-file-contents file)
429 ;; Read 1K blocks until we find a separator.
432 (while (and (eq nnheader-head-chop-length
433 (nth 1 (nnheader-insert-file-contents
435 (incf beg nnheader-head-chop-length))))
436 (prog1 (not (search-forward "\n\n" nil t))
437 (goto-char (point-max)))
438 (or (null nnheader-max-head-length)
439 (< beg nnheader-max-head-length))))))
442 (defun nnheader-article-p ()
443 "Say whether the current buffer looks like an article."
444 (goto-char (point-min))
445 (if (not (search-forward "\n\n" nil t))
447 (narrow-to-region (point-min) (1- (point)))
448 (goto-char (point-min))
449 (while (looking-at "[a-zA-Z][^ \t]+:.*\n\\([ \t].*\n\\)*\\|From .*\n")
450 (goto-char (match-end 0)))
455 (defun nnheader-insert-references (references message-id)
456 "Insert a References header based on REFERENCES and MESSAGE-ID."
457 (if (and (not references) (not message-id))
458 () ; This is illegal, but not all articles have Message-IDs.
459 (mail-position-on-field "References")
460 (let ((begin (save-excursion (beginning-of-line) (point)))
465 (when (and references message-id)
469 ;; Fold long References lines to conform to RFC1036 (sort of).
470 ;; The region must end with a newline to fill the region
471 ;; without inserting extra newline.
472 (fill-region-as-paragraph begin (1+ (point))))))
474 (defun nnheader-replace-header (header new-value)
475 "Remove HEADER and insert the NEW-VALUE."
478 (nnheader-narrow-to-headers)
480 (message-remove-header header)
481 (goto-char (point-max))
482 (insert header ": " new-value "\n")))))
484 (defun nnheader-narrow-to-headers ()
485 "Narrow to the head of an article."
488 (goto-char (point-min))
489 (if (search-forward "\n\n" nil t)
492 (goto-char (point-min)))
494 (defun nnheader-set-temp-buffer (name &optional noerase)
495 "Set-buffer to an empty (possibly new) buffer called NAME with undo disabled."
496 (set-buffer (get-buffer-create name))
497 (buffer-disable-undo)
502 (defvar jka-compr-compression-info-list)
503 (defvar nnheader-numerical-files
504 (if (boundp 'jka-compr-compression-info-list)
505 (concat "\\([0-9]+\\)\\("
506 (mapconcat (lambda (i) (aref i 0))
507 jka-compr-compression-info-list "\\|")
510 "Regexp that match numerical files.")
512 (defvar nnheader-numerical-short-files (concat "^" nnheader-numerical-files)
513 "Regexp that matches numerical file names.")
515 (defvar nnheader-numerical-full-files (concat "/" nnheader-numerical-files)
516 "Regexp that matches numerical full file paths.")
518 (defsubst nnheader-file-to-number (file)
519 "Take a file name and return the article number."
520 (if (string= nnheader-numerical-short-files "^[0-9]+$")
522 (string-match nnheader-numerical-short-files file)
523 (string-to-int (match-string 0 file))))
525 (defun nnheader-directory-files-safe (&rest args)
526 ;; It has been reported numerous times that `directory-files'
527 ;; fails with an alarming frequency on NFS mounted file systems.
528 ;; This function executes that function twice and returns
529 ;; the longest result.
530 (let ((first (apply 'directory-files args))
531 (second (apply 'directory-files args)))
532 (if (> (length first) (length second))
536 (defun nnheader-directory-articles (dir)
537 "Return a list of all article files in a directory."
538 (mapcar 'nnheader-file-to-number
539 (nnheader-directory-files-safe
540 dir nil nnheader-numerical-short-files t)))
542 (defun nnheader-article-to-file-alist (dir)
543 "Return an alist of article/file pairs in DIR."
544 (mapcar (lambda (file) (cons (nnheader-file-to-number file) file))
545 (nnheader-directory-files-safe
546 dir nil nnheader-numerical-short-files t)))
548 (defun nnheader-fold-continuation-lines ()
549 "Fold continuation lines in the current buffer."
550 (nnheader-replace-regexp "\\(\r?\n[ \t]+\\)+" " "))
552 (defun nnheader-translate-file-chars (file &optional full)
553 "Translate FILE into something that can be a file name.
554 If FULL, translate everything."
555 (if (null nnheader-file-name-translation-alist)
556 ;; No translation is necessary.
561 ;; Do complete translation.
562 (setq leaf (copy-sequence file)
564 ;; We translate -- but only the file name. We leave the directory
566 (if (string-match "/[^/]+\\'" file)
567 ;; This is needed on NT's and stuff.
568 (setq leaf (substring file (1+ (match-beginning 0)))
569 path (substring file 0 (1+ (match-beginning 0))))
570 ;; Fall back on this.
571 (setq leaf (file-name-nondirectory file)
572 path (file-name-directory file))))
573 (setq len (length leaf))
575 (when (setq trans (cdr (assq (aref leaf i)
576 nnheader-file-name-translation-alist)))
579 (concat path leaf))))
581 (defun nnheader-report (backend &rest args)
582 "Report an error from the BACKEND.
583 The first string in ARGS can be a format string."
584 (set (intern (format "%s-status-string" backend))
585 (if (< (length args) 2)
587 (apply 'format args)))
590 (defun nnheader-get-report (backend)
591 "Get the most recent report from BACKEND."
593 (nnheader-message 5 "%s" (symbol-value (intern (format "%s-status-string"
595 (error (nnheader-message 5 ""))))
597 (defun nnheader-insert (format &rest args)
598 "Clear the communication buffer and insert FORMAT and ARGS into the buffer.
599 If FORMAT isn't a format string, it and all ARGS will be inserted
602 (set-buffer nntp-server-buffer)
604 (if (string-match "%" format)
605 (insert (apply 'format format args))
606 (apply 'insert format args))
609 (defun nnheader-replace-chars-in-string (string from to)
610 "Replace characters in STRING from FROM to TO."
611 (let ((string (substring string 0)) ;Copy string.
612 (len (length string))
614 ;; Replace all occurrences of FROM with TO.
616 (when (= (aref string idx) from)
617 (aset string idx to))
621 (defun nnheader-file-to-group (file &optional top)
622 "Return a group name based on FILE and TOP."
623 (nnheader-replace-chars-in-string
627 (substring (expand-file-name file)
630 (file-name-as-directory top))))
634 (defun nnheader-message (level &rest args)
635 "Message if the Gnus backends are talkative."
636 (if (or (not (numberp gnus-verbose-backends))
637 (<= level gnus-verbose-backends))
638 (apply 'message args)
639 (apply 'format args)))
641 (defun nnheader-be-verbose (level)
642 "Return whether the backends should be verbose on LEVEL."
643 (or (not (numberp gnus-verbose-backends))
644 (<= level gnus-verbose-backends)))
646 (defvar nnheader-pathname-coding-system 'binary
647 "*Coding system for pathname.")
649 (defun nnheader-group-pathname (group dir &optional file)
650 "Make pathname for GROUP."
652 (let ((dir (file-name-as-directory (expand-file-name dir))))
653 ;; If this directory exists, we use it directly.
654 (if (file-directory-p (concat dir group))
655 (concat dir group "/")
656 ;; If not, we translate dots into slashes.
658 (mm-encode-coding-string
659 (nnheader-replace-chars-in-string group ?. ?/)
660 nnheader-pathname-coding-system)
662 (cond ((null file) "")
663 ((numberp file) (int-to-string file))
666 (defun nnheader-functionp (form)
667 "Return non-nil if FORM is funcallable."
668 (or (and (symbolp form) (fboundp form))
669 (and (listp form) (eq (car form) 'lambda))))
671 (defun nnheader-concat (dir &rest files)
672 "Concat DIR as directory to FILE."
673 (apply 'concat (file-name-as-directory dir) files))
675 (defun nnheader-ms-strip-cr ()
676 "Strip ^M from the end of all lines."
678 (goto-char (point-min))
679 (while (re-search-forward "\r$" nil t)
680 (delete-backward-char 1))))
682 (defun nnheader-file-size (file)
683 "Return the file size of FILE or 0."
684 (or (nth 7 (file-attributes file)) 0))
686 (defun nnheader-find-etc-directory (package &optional file)
687 "Go through the path and find the \".../etc/PACKAGE\" directory.
688 If FILE, find the \".../etc/PACKAGE\" file instead."
689 (let ((path load-path)
691 ;; We try to find the dir by looking at the load path,
692 ;; stripping away the last component and adding "etc/".
698 (directory-file-name (car path)))
701 (or file (file-directory-p dir)))
704 (setq path (cdr path))))
707 (defvar ange-ftp-path-format)
708 (defvar efs-path-regexp)
709 (defun nnheader-re-read-dir (path)
710 "Re-read directory PATH if PATH is on a remote system."
711 (if (and (fboundp 'efs-re-read-dir) (boundp 'efs-path-regexp))
712 (when (string-match efs-path-regexp path)
713 (efs-re-read-dir path))
714 (when (and (fboundp 'ange-ftp-re-read-dir) (boundp 'ange-ftp-path-format))
715 (when (string-match (car ange-ftp-path-format) path)
716 (ange-ftp-re-read-dir path)))))
718 (defvar nnheader-file-coding-system 'raw-text
719 "Coding system used in file backends of Gnus.")
721 (defun nnheader-insert-file-contents (filename &optional visit beg end replace)
722 "Like `insert-file-contents', q.v., but only reads in the file.
723 A buffer may be modified in several ways after reading into the buffer due
724 to advanced Emacs features, such as file-name-handlers, format decoding,
725 find-file-hooks, etc.
726 This function ensures that none of these modifications will take place."
727 (let ((format-alist nil)
728 (auto-mode-alist (nnheader-auto-mode-alist))
729 (default-major-mode 'fundamental-mode)
730 (enable-local-variables nil)
731 (after-insert-file-functions nil)
732 (find-file-hooks nil)
733 (coding-system-for-read nnheader-file-coding-system))
734 (insert-file-contents filename visit beg end replace)))
736 (defun nnheader-find-file-noselect (&rest args)
737 (let ((format-alist nil)
738 (auto-mode-alist (nnheader-auto-mode-alist))
739 (default-major-mode 'fundamental-mode)
740 (enable-local-variables nil)
741 (after-insert-file-functions nil)
742 (find-file-hooks nil)
743 (coding-system-for-read nnheader-file-coding-system))
744 (apply 'find-file-noselect args)))
746 (defun nnheader-auto-mode-alist ()
747 "Return an `auto-mode-alist' with only the .gz (etc) thingies."
748 (let ((alist auto-mode-alist)
751 (when (listp (cdar alist))
752 (push (car alist) out))
756 (defun nnheader-directory-regular-files (dir)
757 "Return a list of all regular files in DIR."
758 (let ((files (directory-files dir t))
761 (when (file-regular-p (car files))
762 (push (car files) out))
766 (defun nnheader-directory-files (&rest args)
767 "Same as `directory-files', but prune \".\" and \"..\"."
768 (let ((files (apply 'directory-files args))
771 (unless (member (file-name-nondirectory (car files)) '("." ".."))
772 (push (car files) out))
776 (defmacro nnheader-skeleton-replace (from &optional to regexp)
777 `(let ((new (generate-new-buffer " *nnheader replace*"))
778 (cur (current-buffer))
781 (goto-char (point-min))
782 (while (,(if regexp 're-search-forward 'search-forward)
784 (insert-buffer-substring
785 cur start (prog1 (match-beginning 0) (set-buffer new)))
786 (goto-char (point-max))
787 ,(when to `(insert ,to))
789 (setq start (point)))
790 (insert-buffer-substring
791 cur start (prog1 (point-max) (set-buffer new)))
792 (copy-to-buffer cur (point-min) (point-max))
793 (kill-buffer (current-buffer))
796 (defun nnheader-replace-string (from to)
797 "Do a fast replacement of FROM to TO from point to point-max."
798 (nnheader-skeleton-replace from to))
800 (defun nnheader-replace-regexp (from to)
801 "Do a fast regexp replacement of FROM to TO from point to point-max."
802 (nnheader-skeleton-replace from to t))
804 (defun nnheader-strip-cr ()
805 "Strip all \r's from the current buffer."
806 (nnheader-skeleton-replace "\r"))
808 (fset 'nnheader-run-at-time 'run-at-time)
809 (fset 'nnheader-cancel-timer 'cancel-timer)
810 (fset 'nnheader-cancel-function-timers 'cancel-function-timers)
812 (when (string-match "XEmacs\\|Lucid" emacs-version)
813 (require 'nnheaderxm))
815 (run-hooks 'nnheader-load-hook)
819 ;;; nnheader.el ends here