aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-07 06:36:45 +0000
committerRichard M. Stallman1995-04-07 06:36:45 +0000
commitcbd4d46b53b64458588026470bf102292b456e4a (patch)
tree4d15e3e9fc9afd6d1b1e36fe4e92244ace26d634
parentd08d3fb37a781aa8c881540c88773a6306f4c2ea (diff)
downloademacs-cbd4d46b53b64458588026470bf102292b456e4a.tar.gz
emacs-cbd4d46b53b64458588026470bf102292b456e4a.zip
Use $ at end when searching for mail-header-separator.
-rw-r--r--lisp/mail/mail-hist.el12
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.")
99Returns nil if not in a header, implying that point is in the body of 98Returns nil if not in a header, implying that point is in the body of
100the message." 99the 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
127the header is empty." 127the 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)))))