1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.

Use 'bound-and-true-p' to check for non-nil 'outline-minor-mode'.
This commit is contained in:
Juri Linkov 2024-09-01 20:05:02 +03:00
parent 0155f2ae2c
commit 92ea393a16

View File

@ -1359,8 +1359,7 @@ mail status in mode line"))
:visible (seq-some #'local-variable-p
'(outline-search-function
outline-regexp outline-level))
:button (:toggle . (and (boundp 'outline-minor-mode)
outline-minor-mode))))
:button (:toggle . (bound-and-true-p outline-minor-mode))))
(bindings--define-key menu [showhide-tab-line-mode]
'(menu-item "Window Tab Line" global-tab-line-mode