aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-11 23:01:05 +0000
committerRichard M. Stallman1995-04-11 23:01:05 +0000
commit019434e1f3ee1db8e3577320980d2a8b1d09ba51 (patch)
tree3ca0779305510c6e0cc6c1a35606b8b0003d9e47
parente01186a1811464d21a4313299a6a1a988b33eb53 (diff)
downloademacs-019434e1f3ee1db8e3577320980d2a8b1d09ba51.tar.gz
emacs-019434e1f3ee1db8e3577320980d2a8b1d09ba51.zip
(mail-hist-put-headers-into-history):
Add save-excursion around entire function.
-rw-r--r--lisp/mail/mail-hist.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/mail/mail-hist.el b/lisp/mail/mail-hist.el
index 6a80398fd46..e0608a4cefd 100644
--- a/lisp/mail/mail-hist.el
+++ b/lisp/mail/mail-hist.el
@@ -210,19 +210,19 @@ message.
210This function normally would be called when the message is sent." 210This function normally would be called when the message is sent."
211 (and 211 (and
212 mail-hist-keep-history 212 mail-hist-keep-history
213 (progn 213 (save-excursion
214 (goto-char (point-min)) 214 (goto-char (point-min))
215 (while (mail-hist-forward-header 1) 215 (while (mail-hist-forward-header 1)
216 (mail-hist-add-header-contents-to-ring 216 (mail-hist-add-header-contents-to-ring
217 (mail-hist-current-header-name))) 217 (mail-hist-current-header-name)))
218 (let ((body-contents 218 (let ((body-contents
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)))))
226 (mail-hist-add-header-contents-to-ring "body" body-contents))))) 226 (mail-hist-add-header-contents-to-ring "body" body-contents)))))
227 227
228(defun mail-hist-previous-input (header) 228(defun mail-hist-previous-input (header)