summaryrefslogtreecommitdiff
path: root/lisp/cus-start.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-05-07 16:52:25 +0300
committerEli Zaretskii <eliz@gnu.org>2010-05-07 16:52:25 +0300
commitc0162ade6f6f1300bdf087627f7d19afa480f1fc (patch)
treed1432a6097a2cf671e4771ef0ef0d5e9d4f96eaf /lisp/cus-start.el
parentd16bdfc3a1e288643e340848d260bac6443cf445 (diff)
downloademacs-c0162ade6f6f1300bdf087627f7d19afa480f1fc.tar.gz
cus-start.el (all): Add native condition for tool-bar-* symbols.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r--lisp/cus-start.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 07f7702e9d6..bc48aa88cc5 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -408,6 +408,10 @@ since it could result in memory overflow and make Emacs crash."
(fboundp 'define-fringe-bitmap))
((equal "font-use-system-font" (symbol-name symbol))
(featurep 'system-font-setting))
+ ;; Conditioned on x-create-frame, because that's
+ ;; the condition for loadup.el to preload tool-bar.el.
+ ((string-match "tool-bar-" (symbol-name symbol))
+ (fboundp 'x-create-frame))
(t t))))
(if (not (boundp symbol))
;; If variables are removed from C code, give an error here!