changeset 83897:0433e66465f6

(custom-buffer-create-internal): Check tool-bar-mode is bound.
author Glenn Morris <rgm@gnu.org>
date Wed, 05 Sep 2007 03:49:13 +0000
parents 0fc42eec71c0
children 5c17bb0d4390
files lisp/cus-edit.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-edit.el	Wed Sep 05 03:47:22 2007 +0000
+++ b/lisp/cus-edit.el	Wed Sep 05 03:49:13 2007 +0000
@@ -1550,7 +1550,8 @@
     ;; 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"))