]> git.eshelyaron.com Git - emacs.git/commit
Update window-tool-bar
authorJared Finder <jared@finder.org>
Sun, 2 Feb 2025 18:11:20 +0000 (10:11 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:45:35 +0000 (09:45 +0100)
commit999fe6d21abadcc842c469870c658e9bff71dee1
treed26e269d768fd37ba07b6ed03b021afedbddb37d
parent629bab2a4a946e7c281993d05f6ea19d848e17da
Update window-tool-bar

Add support for the remaining tool bar item specs, new user
option `window-tool-bar-style', and add support for older
Emacs versions.

* doc/emacs/windows.texi (Window Tool Bar): Add documentation
for new user option `window-tool-bar-style'.
* lisp/window-tool-bar.el
(customize-package-emacs-version-alist): Add package-version to
Emacs version mapping.
(window-tool-bar-string): Do not show spacers after hidden
buttons.
(window-tool-bar--keymap-entry-to-string): Call new function
`window-tool-bar--style'.  Add handling for :visible, :filter,
:button, :vert-only, and :help item specs.  Show key bindings.
(window-tool-bar--last-command-triggers-refresh-p): Use "cannot"
in comment.
(window-tool-bar--allow-images): Delete this, it is replaced by
new user option `window-tool-bar-style'.
(window-tool-bar--use-images): Delete this, it is replaced by
new function `window-tool-bar--style'.
(window-tool-bar--turn-on): Move earlier in file, no changes.
(window-tool-bar-style): New user option supporting all values
`tool-bar-style' supports as well as inheriting from
tool-bar-style.
(window-tool-bar--style): New function to calculate active tool
bar style based on `window-tool-bar-style', `tool-bar-style',
and frame capabilities.
(global-window-tool-bar-mode, window-tool-bar-button)
(window-tool-bar-button-hover, window-tool-bar-button-disabled):
Retroactively add package-version.
(window-tool-bar-button-checked)
(window-tool-bar-button-checked-hover): New faces for :button
item spec.
(window-tool-bar--get-keymap): Call new function
`window-tool-bar--style'.  (Bug#75844)

(cherry picked from commit 72bbbff7e8128fe14c0b69c7282667788758b8b4)
doc/emacs/windows.texi
lisp/window-tool-bar.el