aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-10 08:54:08 +0000
committerEli Zaretskii2008-10-10 08:54:08 +0000
commit41b3bdd3c4885a79eeca54476aa3df9bb01ed478 (patch)
treed9af605f5b0b233dd7b190e546ad70403eb8ac05
parent008330eadaa236adb62611f4ad12c944b2309906 (diff)
downloademacs-41b3bdd3c4885a79eeca54476aa3df9bb01ed478.tar.gz
emacs-41b3bdd3c4885a79eeca54476aa3df9bb01ed478.zip
(command-line): Don't invoke tool-bar-mode if it is not fboundp.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/startup.el1
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bed3852d9f5..cb4bd363f8c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-10-10 Eli Zaretskii <eliz@gnu.org>
2
3 * startup.el (command-line): Don't invoke tool-bar-mode if it is
4 not fboundp.
5
12008-10-09 Chong Yidong <cyd@stupidchicken.com> 62008-10-09 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * startup.el (command-line): Enable tool-bar-mode as long as it is 8 * startup.el (command-line): Enable tool-bar-mode as long as it is
diff --git a/lisp/startup.el b/lisp/startup.el
index 0ffb6b8ffec..8c2fd91c3f7 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -902,6 +902,7 @@ opening the first frame (e.g. open a connection to an X server).")
902 ;; even in tty frames, which means that there is a tool-bar if Emacs 902 ;; even in tty frames, which means that there is a tool-bar if Emacs
903 ;; later opens a graphical frame. 903 ;; later opens a graphical frame.
904 (unless (or noninteractive emacs-basic-display 904 (unless (or noninteractive emacs-basic-display
905 (not (fboundp 'tool-bar-mode))
905 ;; The tool-bar-lines parameter is nil if starting on a 906 ;; The tool-bar-lines parameter is nil if starting on a
906 ;; tty; it is 0 if starting on a graphical display with 907 ;; tty; it is 0 if starting on a graphical display with
907 ;; the toolbar disabled via X resources. 908 ;; the toolbar disabled via X resources.