summaryrefslogtreecommitdiff
path: root/lisp/abbrev.el
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-06-13 11:56:12 +0000
committerLute Kamstra <lute@gnu.org>2005-06-13 11:56:12 +0000
commit1a96d1f37a91c0f85f5f91e71025fa35488f2927 (patch)
treee769481c42d954173122ef2c93f8f5b60fed4253 /lisp/abbrev.el
parent2702394e7cc558300e8ba74d0b3882f6f1897cc7 (diff)
downloademacs-1a96d1f37a91c0f85f5f91e71025fa35488f2927.tar.gz
(edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks.
Diffstat (limited to 'lisp/abbrev.el')
-rw-r--r--lisp/abbrev.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 711e8e2ebe9..0a40768af31 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -134,9 +134,11 @@ Otherwise display all abbrevs."
"Major mode for editing the list of abbrev definitions.
\\{edit-abbrevs-map}"
(interactive)
+ (kill-all-local-variables)
(setq major-mode 'edit-abbrevs-mode)
(setq mode-name "Edit-Abbrevs")
- (use-local-map edit-abbrevs-map))
+ (use-local-map edit-abbrevs-map)
+ (run-mode-hooks 'edit-abbrevs-mode-hook))
(defun edit-abbrevs ()
"Alter abbrev definitions by editing a list of them.