comparison lisp/mail/mailabbrev.el @ 39566:497b8fa7e100

(mail-abbrev-in-expansion-header-p): Simplify.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 05 Oct 2001 09:34:27 +0000
parents 253f761ad37b
children b85c94030e4a
comparison
equal deleted inserted replaced
39565:e03e925846db 39566:497b8fa7e100
438 "Whether point is in a mail-address header field." 438 "Whether point is in a mail-address header field."
439 (let ((case-fold-search t)) 439 (let ((case-fold-search t))
440 (and ;; 440 (and ;;
441 ;; we are on an appropriate header line... 441 ;; we are on an appropriate header line...
442 (save-excursion 442 (save-excursion
443 (beginning-of-line) 443 (unless (eobp) (forward-char 1))
444 ;; skip backwards over continuation lines. 444 (re-search-backward "^[^ \t]" nil 'move)
445 (while (and (looking-at "^[ \t]")
446 (not (= (point) (point-min))))
447 (forward-line -1))
448 ;; are we at the front of an appropriate header line? 445 ;; are we at the front of an appropriate header line?
449 (looking-at mail-abbrev-mode-regexp)) 446 (looking-at mail-abbrev-mode-regexp))
450 ;; 447 ;;
451 ;; ...and are we in the headers? 448 ;; ...and are we in the headers?
452 (< (point) (mail-header-end))))) 449 (< (point) (mail-header-end)))))