From: Lute Kamstra Date: Mon, 13 Jun 2005 11:56:12 +0000 (+0000) Subject: (edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks. X-Git-Tag: emacs-pretest-22.0.90~9005 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a96d1f37a91c0f85f5f91e71025fa35488f2927;p=emacs.git (edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks. --- 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.