]> git.eshelyaron.com Git - emacs.git/commit
Add user option to only display default tool bar
authorJared Finder <jared@finder.org>
Fri, 26 Jan 2024 18:08:30 +0000 (10:08 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:55:05 +0000 (20:55 +0200)
commit1be7a8c95b781c3f7003c9e24de6f15be3957fa4
tree3a21d554b174024ff02a06372d4b4e8fcadf3d21
parente788f5a37698deb1982e6b0175918cc0cc4f636a
Add user option to only display default tool bar

This works well with `window-tool-bar-mode', to be added in upcoming
commit.  Then the default tool bar is displayed frame-wide and
mode-specific tool bars are displayed in the window that mode is
active in.

* lisp/tool-bar.el (tool-bar-always-show-default): New user option.
(tool-bar--cache-key, tool-bar-make-keymap-1): Return default tool bar
when option is set.

(cherry picked from commit da325ff7b29b0becdd1356021428fa100d240ec4)
lisp/tool-bar.el