summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-09-05 03:49:26 +0000
committerGlenn Morris <rgm@gnu.org>2007-09-05 03:49:26 +0000
commitd0da8f91f119cd33b7778739411b81b394d9a530 (patch)
tree4d071fffac02643e226edda30bd7edfc9fc70375 /lisp/cus-edit.el
parentfeb47a092cce60fbdb6f591ddab2ec09729e6511 (diff)
(custom-buffer-create-internal): Check tool-bar-mode is bound.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el3
1 files changed, 2 insertions, 1 deletions
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"))