From: Eli Zaretskii Date: Fri, 10 Oct 2008 08:54:08 +0000 (+0000) Subject: (command-line): Don't invoke tool-bar-mode if it is not fboundp. X-Git-Tag: emacs-pretest-23.0.90~2579 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=41b3bdd3c4885a79eeca54476aa3df9bb01ed478;p=emacs.git (command-line): Don't invoke tool-bar-mode if it is not fboundp. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bed3852d9f5..cb4bd363f8c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-10-10 Eli Zaretskii + + * startup.el (command-line): Don't invoke tool-bar-mode if it is + not fboundp. + 2008-10-09 Chong Yidong * 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).") ;; even in tty frames, which means that there is a tool-bar if Emacs ;; later opens a graphical frame. (unless (or noninteractive emacs-basic-display + (not (fboundp 'tool-bar-mode)) ;; The tool-bar-lines parameter is nil if starting on a ;; tty; it is 0 if starting on a graphical display with ;; the toolbar disabled via X resources.