From: Gerd Moellmann Date: Tue, 26 Sep 2000 15:24:08 +0000 (+0000) Subject: (frame-notice-user-settings): Don't add a X-Git-Tag: emacs-pretest-21.0.90~1368 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=33a33c06cf1df247d89d1eec667163dc7076e2e7;p=emacs.git (frame-notice-user-settings): Don't add a tool-bar-lines frame parameter to default-frame-alist in batch mode. --- diff --git a/lisp/frame.el b/lisp/frame.el index 9b404a75356..743165e26e4 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -229,8 +229,13 @@ React to settings of `default-frame-alist', `initial-frame-alist' there." (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) default-frame-alist))))) - ;; Make tool-bar-mode and default-frame-alist consistent. - (when (boundp 'tool-bar-mode) + ;; Make tool-bar-mode and default-frame-alist consistent. Don't do + ;; it in batch mode since that would leave a tool-bar-lines + ;; parameter in default-frame-alist in a dumped Emacs, which is not + ;; what we want. For some reason, menu-bar-mode is not bound + ;; in this case, but tool-bar-mode is. + (when (and (boundp 'tool-bar-mode) + (not noninteractive)) (let ((default (assq 'tool-bar-lines default-frame-alist))) (if default (setq tool-bar-mode (not (eq (cdr default) 0)))