aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-29 12:19:28 +0000
committerGerd Moellmann2000-12-29 12:19:28 +0000
commitbde4c7ce900ad7efdb74e79d57df3852c6e41006 (patch)
tree66f22f654bb9608582989feee80d99b6b874d1f5
parentbd7a2e2617d64ead8be754c9949f61069ce5e9f2 (diff)
downloademacs-bde4c7ce900ad7efdb74e79d57df3852c6e41006.tar.gz
emacs-bde4c7ce900ad7efdb74e79d57df3852c6e41006.zip
(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.
-rw-r--r--lisp/mail/mailabbrev.el8
1 files 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 @@
109;; type SPC at the end of the abbrev before moving away) then you can do 109;; type SPC at the end of the abbrev before moving away) then you can do
110;; 110;;
111;; (add-hook 111;; (add-hook
112;; 'mail-setup-hook 112;; 'mail-mode-hook
113;; (lambda () 113;; (lambda ()
114;; (substitute-key-definition 'next-line 'mail-abbrev-next-line 114;; (substitute-key-definition 'next-line 'mail-abbrev-next-line
115;; mail-mode-map global-map) 115;; mail-mode-map global-map)
@@ -124,7 +124,7 @@
124;; Thanks to Harald Hanche-Olsen, Michael Ernst, David Loeffler, and 124;; Thanks to Harald Hanche-Olsen, Michael Ernst, David Loeffler, and
125;; Noah Friedman for suggestions and bug reports. 125;; Noah Friedman for suggestions and bug reports.
126 126
127;; To use this package, do (add-hook 'mail-setup-hook 'mail-abbrevs-setup). 127;; To use this package, do (add-hook 'mail-mode-hook 'mail-abbrevs-setup).
128 128
129;;; Code: 129;;; Code:
130 130
@@ -185,11 +185,11 @@ no aliases, which is represented by this being a table with no entries.)")
185 (abbrev-mode 1)) 185 (abbrev-mode 1))
186 186
187(defun mail-abbrevs-enable () 187(defun mail-abbrevs-enable ()
188 (add-hook 'mail-setup-hook 'mail-abbrevs-setup)) 188 (add-hook 'mail-mode-hook 'mail-abbrevs-setup))
189 189
190(defun mail-abbrevs-disable () 190(defun mail-abbrevs-disable ()
191 "Turn off use of the `mailabbrev' package." 191 "Turn off use of the `mailabbrev' package."
192 (remove-hook 'mail-setup-hook 'mail-abbrevs-setup) 192 (remove-hook 'mail-mode-hook 'mail-abbrevs-setup)
193 (abbrev-mode (if (default-value 'abbrev-mode) 1 -1))) 193 (abbrev-mode (if (default-value 'abbrev-mode) 1 -1)))
194 194
195;;;###autoload 195;;;###autoload