mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(command-line): If frame was created with a non-zero
tool-bar-lines parameter, switch tool-bar-mode on.
This commit is contained in:
parent
80585273bd
commit
7d1eb6a4c0
1 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue