diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2010-07-01 00:58:19 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2010-07-01 00:58:19 +0200 |
commit | 55702e89b8a408d0037911009c01c9536541907e (patch) | |
tree | e5d9c87a6c77db326fa40b0975fce72c814360b1 /lisp/startup.el | |
parent | dc9a226c7a4cbfa8909f493ee22cf31e0bb425f7 (diff) | |
download | emacs-55702e89b8a408d0037911009c01c9536541907e.tar.gz |
* startup.el (command-line): Don't call tool-bar-setup in a tty-only build.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r-- | lisp/startup.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index e954409497a..76e11491c0c 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -899,10 +899,11 @@ opening the first frame (e.g. open a connection to an X server).") (setq no-blinking-cursor t))))) (frame-initialize)) - ;; Set up the tool-bar (even in tty frames, since Emacs might open a - ;; graphical frame later). - (unless noninteractive - (tool-bar-setup)) + (when (fboundp 'x-create-frame) + ;; Set up the tool-bar (even in tty frames, since Emacs might open a + ;; graphical frame later). + (unless noninteractive + (tool-bar-setup))) ;; Turn off blinking cursor if so specified in X resources. This is here ;; only because all other settings of no-blinking-cursor are here. |