From: Stefan Monnier Date: Thu, 4 Oct 2001 23:05:22 +0000 (+0000) Subject: (mail-abbrev-in-expansion-header-p): Simplify. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4930929a6a117ff31d976258ba3fd412ee1bdc8d;p=emacs.git (mail-abbrev-in-expansion-header-p): Simplify. --- diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 818255ffafa..baf08903a79 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el @@ -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)) ;;