changeset 63371:6d35491e8a34

(edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks.
author Lute Kamstra <lute@gnu.org>
date Mon, 13 Jun 2005 11:56:12 +0000
parents 3d419f51a884
children ea81833c3487
files lisp/abbrev.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/abbrev.el	Mon Jun 13 11:54:48 2005 +0000
+++ b/lisp/abbrev.el	Mon Jun 13 11:56:12 2005 +0000
@@ -134,9 +134,11 @@
   "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.