*** cus-edit.el.~1.337.~ Thu Nov 22 17:49:48 2007 --- cus-edit.el Fri Jan 4 19:25:34 2008 *************** *** 4459,4473 **** custom-commands))) (defvar tool-bar-map) ! (defvar custom-tool-bar-map ! (if (display-graphic-p) ! (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) ! map))) ;;; The Custom Mode. --- 4459,4465 ---- custom-commands))) (defvar tool-bar-map) ! (defvar custom-tool-bar-map nil) ;;; The Custom Mode. *************** *** 4528,4534 **** if that value is non-nil." (use-local-map custom-mode-map) (easy-menu-add Custom-mode-menu) ! (set (make-local-variable 'tool-bar-map) custom-tool-bar-map) (make-local-variable 'custom-options) (make-local-variable 'custom-local-buffer) (make-local-variable 'widget-documentation-face) --- 4520,4535 ---- 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 ! (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)