changeset 21866:d98a0a598fb9

(mail-abbrev-in-expansion-header-p): Use mail-header-end.
author Richard M. Stallman <rms@gnu.org>
date Thu, 30 Apr 1998 06:26:19 +0000
parents cedd1efb2892
children ccda1e80b153
files lisp/mail/mailabbrev.el
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/mailabbrev.el	Thu Apr 30 06:24:03 1998 +0000
+++ b/lisp/mail/mailabbrev.el	Thu Apr 30 06:26:19 1998 +0000
@@ -447,13 +447,8 @@
        ;; are we at the front of an appropriate header line?
        (looking-at mail-abbrev-mode-regexp))
      ;;
-     ;; ...and we are before the mail-header-separator
-     (< (point)
-	(save-excursion
-	  (goto-char (point-min))
-	  (search-forward (concat "\n" mail-header-separator "\n")
-			  nil 0)
-	  (point))))))
+     ;; ...and are we in the headers?
+     (< (point) (mail-header-end)))))
 
 (defvar mail-mode-abbrev-table) ; quiet the compiler