]> git.eshelyaron.com Git - emacs.git/commitdiff
(edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks.
authorLute Kamstra <lute@gnu.org>
Mon, 13 Jun 2005 11:56:12 +0000 (11:56 +0000)
committerLute Kamstra <lute@gnu.org>
Mon, 13 Jun 2005 11:56:12 +0000 (11:56 +0000)
lisp/abbrev.el

index 711e8e2ebe9d292aff58902e34da3c25d04adb7b..0a40768af316f2fa04055d4e7a4a5afc9781e071 100644 (file)
@@ -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.