(message-fetch-field): Mention narrow-to-headers
authorKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 3 Jun 2003 11:24:38 +0000 (11:24 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 3 Jun 2003 11:24:38 +0000 (11:24 +0000)
requirement.

lisp/ChangeLog
lisp/message.el

index 7449c1d..37bb236 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-03  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
+
+       * message.el (message-fetch-field): Mention narrow-to-headers
+       requirement.
+
 2003-06-03  Jesper Harder  <harder@ifa.au.dk>
 
        * gnus-xmas.el (gnus-xmas-create-image): Use
index 88ab666..cfd4324 100644 (file)
@@ -1533,7 +1533,9 @@ is used by default."
       (looking-at message-unix-mail-delimiter))))
 
 (defun message-fetch-field (header &optional not-all)
-  "The same as `mail-fetch-field', only remove all newlines."
+  "The same as `mail-fetch-field', only remove all newlines.
+Note that the buffer should be narrowed to the headers; see
+function `message-narrow-to-headers-or-head'."
   (let* ((inhibit-point-motion-hooks t)
         (case-fold-search t)
         (value (mail-fetch-field header nil (not not-all))))