Commit 7d1eb6a4 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(command-line): If frame was created with a non-zero

tool-bar-lines parameter, switch tool-bar-mode on.
parent 80585273
......@@ -652,6 +652,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)))
(menu-bar-mode t))
;; If frame was created with a tool bar, switch tool-bar-mode on.
(when (and (not noninteractive)
(memq window-system '(x w32))
(> (frame-parameter nil 'tool-bar-lines) 0))
(tool-bar-mode t))
;; Can't do this init in defcustom because window-system isn't set.
(when (and (not noninteractive)
(not (eq system-type 'ms-dos))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment