diff options
| author | Gerd Moellmann | 2000-09-26 15:24:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-26 15:24:08 +0000 |
| commit | 33a33c06cf1df247d89d1eec667163dc7076e2e7 (patch) | |
| tree | e4490423900a4cdb76498ca0772d199d45d5b515 | |
| parent | 63900fcf00b94b4e474fbc07b66eeb4354bd084f (diff) | |
| download | emacs-33a33c06cf1df247d89d1eec667163dc7076e2e7.tar.gz emacs-33a33c06cf1df247d89d1eec667163dc7076e2e7.zip | |
(frame-notice-user-settings): Don't add a
tool-bar-lines frame parameter to default-frame-alist in batch
mode.
| -rw-r--r-- | lisp/frame.el | 9 |
1 files changed, 7 insertions, 2 deletions
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." | |||
| 229 | (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) | 229 | (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) |
| 230 | default-frame-alist))))) | 230 | default-frame-alist))))) |
| 231 | 231 | ||
| 232 | ;; Make tool-bar-mode and default-frame-alist consistent. | 232 | ;; Make tool-bar-mode and default-frame-alist consistent. Don't do |
| 233 | (when (boundp 'tool-bar-mode) | 233 | ;; it in batch mode since that would leave a tool-bar-lines |
| 234 | ;; parameter in default-frame-alist in a dumped Emacs, which is not | ||
| 235 | ;; what we want. For some reason, menu-bar-mode is not bound | ||
| 236 | ;; in this case, but tool-bar-mode is. | ||
| 237 | (when (and (boundp 'tool-bar-mode) | ||
| 238 | (not noninteractive)) | ||
| 234 | (let ((default (assq 'tool-bar-lines default-frame-alist))) | 239 | (let ((default (assq 'tool-bar-lines default-frame-alist))) |
| 235 | (if default | 240 | (if default |
| 236 | (setq tool-bar-mode (not (eq (cdr default) 0))) | 241 | (setq tool-bar-mode (not (eq (cdr default) 0))) |