emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (require 'mailabbrev)


From: Richard Stallman
Subject: Re: (require 'mailabbrev)
Date: Sat, 9 Feb 2002 22:18:35 -0700 (MST)

It would be wasteful to load a substantial file just to use 5 lines of
code.  Does this patch fix it?

*** mailabbrev.el.~1.63.~       Sat Feb  9 04:45:14 2002
--- mailabbrev.el       Sat Feb  9 05:24:37 2002
***************
*** 418,424 ****
         (looking-at mail-abbrev-mode-regexp))
       ;;
       ;; ...and are we in the headers?
!      (< (point) (mail-header-end)))))
  
  (defvar mail-mode-abbrev-table) ; quiet the compiler
  
--- 418,429 ----
         (looking-at mail-abbrev-mode-regexp))
       ;;
       ;; ...and are we in the headers?
!      (< (point)
!       (save-restriction
!         (widen)
!         (save-excursion
!           (rfc822-goto-eoh)
!           (point)))))))
  
  (defvar mail-mode-abbrev-table) ; quiet the compiler
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]