From bde4c7ce900ad7efdb74e79d57df3852c6e41006 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 29 Dec 2000 12:19:28 +0000 Subject: [PATCH] (mail-abbrevs-enable, mail-abbrevs-disable): Use mail-mode-hook instead of mail-setup-hook. Otherwise continuing an interrupted message with C-u C-x m for instence, winds up in Mail mode without abbrevs. --- lisp/mail/mailabbrev.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 6c08d5ca411..3794fa6cd32 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el @@ -109,7 +109,7 @@ ;; type SPC at the end of the abbrev before moving away) then you can do ;; ;; (add-hook -;; 'mail-setup-hook +;; 'mail-mode-hook ;; (lambda () ;; (substitute-key-definition 'next-line 'mail-abbrev-next-line ;; mail-mode-map global-map) @@ -124,7 +124,7 @@ ;; Thanks to Harald Hanche-Olsen, Michael Ernst, David Loeffler, and ;; Noah Friedman for suggestions and bug reports. -;; To use this package, do (add-hook 'mail-setup-hook 'mail-abbrevs-setup). +;; To use this package, do (add-hook 'mail-mode-hook 'mail-abbrevs-setup). ;;; Code: @@ -185,11 +185,11 @@ no aliases, which is represented by this being a table with no entries.)") (abbrev-mode 1)) (defun mail-abbrevs-enable () - (add-hook 'mail-setup-hook 'mail-abbrevs-setup)) + (add-hook 'mail-mode-hook 'mail-abbrevs-setup)) (defun mail-abbrevs-disable () "Turn off use of the `mailabbrev' package." - (remove-hook 'mail-setup-hook 'mail-abbrevs-setup) + (remove-hook 'mail-mode-hook 'mail-abbrevs-setup) (abbrev-mode (if (default-value 'abbrev-mode) 1 -1))) ;;;###autoload -- 2.39.2