]> git.eshelyaron.com Git - emacs.git/commitdiff
* startup.el (command-line): Don't call tool-bar-setup in a tty-only build.
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 30 Jun 2010 22:58:19 +0000 (00:58 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 30 Jun 2010 22:58:19 +0000 (00:58 +0200)
lisp/ChangeLog
lisp/startup.el

index e32ff83ff5119fdcd4e7464edcf77531624bbcf9..c617ee323622a0ba70d7472ad3c69c7235f64d1f 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * startup.el (command-line): Don't call tool-bar-setup in a
+       tty-only build.
+
 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
 
        * ruler-mode.el (ruler--save-header-line-format): New fun.
index e954409497aeb92594ab571ac1d1f4a81741293d..76e11491c0c1cb97be10156fa6eb7ebbd25d0324 100644 (file)
@@ -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.