From: Glenn Morris Date: Wed, 5 Sep 2007 03:49:26 +0000 (+0000) Subject: (custom-buffer-create-internal): Check tool-bar-mode is bound. X-Git-Tag: emacs-pretest-23.0.90~11105 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0da8f91f119cd33b7778739411b81b394d9a530;p=emacs.git (custom-buffer-create-internal): Check tool-bar-mode is bound. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c237c28d24a..e3bd85f1db3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2007-09-05 Glenn Morris + + * cus-edit.el (custom-buffer-create-internal): Check tool-bar-mode + is bound. + +2007-09-05 Johan Bockg,Ae(Brd + + * emacs-lisp/advice.el (ad-make-advised-docstring): Highlight note + in doc string. + 2007-09-04 Dan Nicolaescu * server.el (server-start, server-unload-hook): Undo previous diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 869533b3c3e..9d313c2344d 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1550,7 +1550,8 @@ possibly because you started Emacs with `-q'.") ;; Insert custom command buttons if the toolbar is not in use. (widget-insert "\n") - (when (not (and tool-bar-mode (display-graphic-p))) + ;; tool-bar is not dumped in builds without x. + (when (not (and (bound-and-true-p tool-bar-mode) (display-graphic-p))) (if custom-buffer-verbose-help (widget-insert "\n Operate on all settings in this buffer that are not marked HIDDEN:\n"))