From: Stefan Monnier Date: Fri, 27 Oct 2000 00:55:09 +0000 (+0000) Subject: (custom-mode-map): Use a sparse map. X-Git-Tag: emacs-pretest-21.0.90~528 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8d4d4dadb56bfdf9861ee03bcecbf1aca92433f;p=emacs.git (custom-mode-map): Use a sparse map. (custom-mode): Don't bother with make-local-hook. --- diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index da0ee18b2d7..b9d05919572 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -3659,7 +3659,7 @@ The format is suitable for use with `easy-menu-define'." "Keymap for `custom-mode'.") (unless custom-mode-map - (setq custom-mode-map (make-sparse-keymap)) + (setq custom-mode-map (make-keymap)) (set-keymap-parent custom-mode-map widget-keymap) (suppress-keymap custom-mode-map) (define-key custom-mode-map " " 'scroll-up) @@ -3753,7 +3753,6 @@ if that value is non-nil." (set (make-local-variable 'widget-push-button-suffix) "") (set (make-local-variable 'widget-link-prefix) "") (set (make-local-variable 'widget-link-suffix) "")) - (make-local-hook 'widget-edit-functions) (add-hook 'widget-edit-functions 'custom-state-buffer-message nil t) (run-hooks 'custom-mode-hook))