# HG changeset patch # User Eli Zaretskii # Date 1223628794 0 # Node ID 6560d393fd4dc536784f71629eb7fb348c7a960f # Parent d26dc6b50206eeed396fe89033a5633bd71dce18 (command-line): Don't invoke tool-bar-mode if it is not fboundp. diff -r d26dc6b50206 -r 6560d393fd4d lisp/startup.el --- a/lisp/startup.el Thu Oct 09 19:31:51 2008 +0000 +++ b/lisp/startup.el Fri Oct 10 08:53:14 2008 +0000 @@ -902,6 +902,7 @@ ;; 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.