diff options
| -rw-r--r-- | lisp/mail/mail-hist.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/mail/mail-hist.el b/lisp/mail/mail-hist.el index 3c9db59b502..6a80398fd46 100644 --- a/lisp/mail/mail-hist.el +++ b/lisp/mail/mail-hist.el | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | ;; Author: Karl Fogel <kfogel@cs.oberlin.edu> | 4 | ;; Author: Karl Fogel <kfogel@cs.oberlin.edu> |
| 5 | ;; Created: March, 1994 | 5 | ;; Created: March, 1994 |
| 6 | ;; Version: 1.3 | ||
| 7 | ;; Keywords: mail, history | 6 | ;; Keywords: mail, history |
| 8 | 7 | ||
| 9 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -99,14 +98,15 @@ Oldest elements are dumped first.") | |||
| 99 | Returns nil if not in a header, implying that point is in the body of | 98 | Returns nil if not in a header, implying that point is in the body of |
| 100 | the message." | 99 | the message." |
| 101 | (if (save-excursion | 100 | (if (save-excursion |
| 102 | (re-search-backward (concat "^" (regexp-quote mail-header-separator)) | 101 | (re-search-backward (concat "^" (regexp-quote mail-header-separator) |
| 102 | "$") | ||
| 103 | nil t)) | 103 | nil t)) |
| 104 | nil ; then we are in the body of the message | 104 | nil ; then we are in the body of the message |
| 105 | (save-excursion | 105 | (save-excursion |
| 106 | (let* ((body-start ; limit possibility of false headers | 106 | (let* ((body-start ; limit possibility of false headers |
| 107 | (save-excursion | 107 | (save-excursion |
| 108 | (re-search-forward | 108 | (re-search-forward |
| 109 | (concat "^" (regexp-quote mail-header-separator)) | 109 | (concat "^" (regexp-quote mail-header-separator) "$") |
| 110 | nil t))) | 110 | nil t))) |
| 111 | (name-start | 111 | (name-start |
| 112 | (re-search-backward mail-hist-header-regexp nil t)) | 112 | (re-search-backward mail-hist-header-regexp nil t)) |
| @@ -127,7 +127,7 @@ colon after the header name, or on the second space following that if | |||
| 127 | the header is empty." | 127 | the header is empty." |
| 128 | (let ((boundary (save-excursion | 128 | (let ((boundary (save-excursion |
| 129 | (re-search-forward | 129 | (re-search-forward |
| 130 | (concat "^" (regexp-quote mail-header-separator)) | 130 | (concat "^" (regexp-quote mail-header-separator) "$") |
| 131 | nil t)))) | 131 | nil t)))) |
| 132 | (and | 132 | (and |
| 133 | boundary | 133 | boundary |
| @@ -174,7 +174,7 @@ colon, or just after the colon if it is not followed by whitespace." | |||
| 174 | (let ((start (point))) | 174 | (let ((start (point))) |
| 175 | (or (mail-hist-forward-header 1) | 175 | (or (mail-hist-forward-header 1) |
| 176 | (re-search-forward | 176 | (re-search-forward |
| 177 | (concat "^" (regexp-quote mail-header-separator)))) | 177 | (concat "^" (regexp-quote mail-header-separator) "$"))) |
| 178 | (beginning-of-line) | 178 | (beginning-of-line) |
| 179 | (buffer-substring start (1- (point)))))) | 179 | (buffer-substring start (1- (point)))))) |
| 180 | 180 | ||
| @@ -219,7 +219,7 @@ This function normally would be called when the message is sent." | |||
| 219 | (save-excursion | 219 | (save-excursion |
| 220 | (goto-char (point-min)) | 220 | (goto-char (point-min)) |
| 221 | (re-search-forward | 221 | (re-search-forward |
| 222 | (concat "^" (regexp-quote mail-header-separator)) | 222 | (concat "^" (regexp-quote mail-header-separator) "$") |
| 223 | nil) | 223 | nil) |
| 224 | (forward-line 1) | 224 | (forward-line 1) |
| 225 | (buffer-substring (point) (point-max))))) | 225 | (buffer-substring (point) (point-max))))) |