aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-08-26 20:26:12 +0000
committerKarl Heuer1998-08-26 20:26:12 +0000
commit10f118f0ef3b0a5071002ac4ddfdb914d4b07c9c (patch)
treee2597586a8c6730235925052dd7d2c9e7f1bbd18
parente418be2696d56c17e0d51ce938f5dd25574ac92f (diff)
downloademacs-10f118f0ef3b0a5071002ac4ddfdb914d4b07c9c.tar.gz
emacs-10f118f0ef3b0a5071002ac4ddfdb914d4b07c9c.zip
(mail-hist-current-header-name): Fix test.
(mail-hist-current-header-contents): Use mail-text-start.
-rw-r--r--lisp/mail/mail-hist.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mail/mail-hist.el b/lisp/mail/mail-hist.el
index a3465341158..4aceff7f408 100644
--- a/lisp/mail/mail-hist.el
+++ b/lisp/mail/mail-hist.el
@@ -105,7 +105,7 @@ Oldest elements are dumped first."
105 "Get name of mail header point is currently in, without the colon. 105 "Get name of mail header point is currently in, without the colon.
106Returns nil if not in a header, implying that point is in the body of 106Returns nil if not in a header, implying that point is in the body of
107the message." 107the message."
108 (if (< (point) (mail-text-start)) 108 (if (> (point) (mail-text-start))
109 nil ; then we are in the body of the message 109 nil ; then we are in the body of the message
110 (save-excursion 110 (save-excursion
111 (let* ((body-start 111 (let* ((body-start
@@ -172,7 +172,7 @@ colon, or just after the colon if it is not followed by whitespace."
172 (mail-hist-beginning-of-header) 172 (mail-hist-beginning-of-header)
173 (let ((start (point))) 173 (let ((start (point)))
174 (or (mail-hist-forward-header 1) 174 (or (mail-hist-forward-header 1)
175 (goto-char (mail-header-start))) 175 (goto-char (mail-text-start)))
176 (beginning-of-line) 176 (beginning-of-line)
177 (buffer-substring start (1- (point)))))) 177 (buffer-substring start (1- (point))))))
178 178