has been initialized before calling tool-bar-setup.
+2000-10-09 Dave Love <fx@gnu.org>
+
+ * toolbar/tool-bar.el (tool-bar-mode): Check whether tool-bar-map
+ has been initialized before calling tool-bar-setup.
+
2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
* menu-bar.el (send-mail-item-name): New function.
;; global bar in modes which have `special' as their `mode-class'
;; properlty.)
+;; Todo: Somehow make tool bars easily customizable by the naive?
+
;;; Code:
;;;###autoload
(if elt
(setcdr elt lines)
(add-to-list 'default-frame-alist (cons 'tool-bar-lines lines)))))
- (if (and tool-bar-mode (display-graphic-p))
+ (if (and tool-bar-mode
+ (display-graphic-p)
+ (= 1 (length (default-value 'tool-bar-map)))) ; not yet setup
(tool-bar-setup)))
(defvar tool-bar-map (make-sparse-keymap)