From 349deff4c6b51955488062a6b14ade8fb1757b8c Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 5 Oct 2001 09:34:27 +0000 Subject: [PATCH] (mail-abbrev-in-expansion-header-p): Simplify. --- lisp/mail/mailabbrev.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)) ;; -- 2.39.5