]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-hist-current-header-name): Fix test.
authorKarl Heuer <kwzh@gnu.org>
Wed, 26 Aug 1998 20:26:12 +0000 (20:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 26 Aug 1998 20:26:12 +0000 (20:26 +0000)
(mail-hist-current-header-contents): Use mail-text-start.

lisp/mail/mail-hist.el

index a3465341158657909c1e16d795045da78d1405d2..4aceff7f408e6d20fde8a9fbacb06ed6721a8d75 100644 (file)
@@ -105,7 +105,7 @@ Oldest elements are dumped first."
   "Get name of mail header point is currently in, without the colon.
 Returns nil if not in a header, implying that point is in the body of
 the message."
-  (if (< (point) (mail-text-start))
+  (if (> (point) (mail-text-start))
       nil ; then we are in the body of the message
     (save-excursion
       (let* ((body-start
@@ -172,7 +172,7 @@ colon, or just after the colon if it is not followed by whitespace."
     (mail-hist-beginning-of-header)
     (let ((start (point)))
       (or (mail-hist-forward-header 1)
-          (goto-char (mail-header-start)))
+          (goto-char (mail-text-start)))
       (beginning-of-line)
       (buffer-substring start (1- (point))))))