mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
(Custom-mode): Set up tool-bar-map unconditionally.
This commit is contained in:
parent
4759d8bd58
commit
8db5a4fe51
@ -4655,17 +4655,16 @@ Entry to this mode calls the value of `Custom-mode-hook'
|
||||
if that value is non-nil."
|
||||
(use-local-map custom-mode-map)
|
||||
(easy-menu-add Custom-mode-menu)
|
||||
(when (display-graphic-p)
|
||||
(set (make-local-variable 'tool-bar-map)
|
||||
(or custom-tool-bar-map
|
||||
;; Set up `custom-tool-bar-map'.
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(mapc
|
||||
(lambda (arg)
|
||||
(tool-bar-local-item-from-menu
|
||||
(nth 1 arg) (nth 4 arg) map custom-mode-map))
|
||||
custom-commands)
|
||||
(setq custom-tool-bar-map map)))))
|
||||
(set (make-local-variable 'tool-bar-map)
|
||||
(or custom-tool-bar-map
|
||||
;; Set up `custom-tool-bar-map'.
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(mapc
|
||||
(lambda (arg)
|
||||
(tool-bar-local-item-from-menu
|
||||
(nth 1 arg) (nth 4 arg) map custom-mode-map))
|
||||
custom-commands)
|
||||
(setq custom-tool-bar-map map))))
|
||||
(make-local-variable 'custom-options)
|
||||
(make-local-variable 'custom-local-buffer)
|
||||
(make-local-variable 'widget-documentation-face)
|
||||
|
Loading…
Reference in New Issue
Block a user