(mail-abbrev-in-expansion-header-p): Simplify.
authorGerd Moellmann <gerd@gnu.org>
Fri, 5 Oct 2001 09:34:27 +0000 (09:34 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 5 Oct 2001 09:34:27 +0000 (09:34 +0000)
lisp/mail/mailabbrev.el

index 818255f..baf0890 100644 (file)
@@ -440,11 +440,8 @@ of a mail alias.")
     (and ;;
          ;; we are on an appropriate header line...
      (save-excursion
-       (beginning-of-line)
-       ;; skip backwards over continuation lines.
-       (while (and (looking-at "^[ \t]")
-                  (not (= (point) (point-min))))
-        (forward-line -1))
+       (unless (eobp) (forward-char 1))
+       (re-search-backward "^[^ \t]" nil 'move)
        ;; are we at the front of an appropriate header line?
        (looking-at mail-abbrev-mode-regexp))
      ;;