emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 92ea393a16e: ; * lisp/menu-bar.el (menu-bar-showhide-menu): Small


From: Juri Linkov
Subject: master 92ea393a16e: ; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.
Date: Sun, 1 Sep 2024 13:05:22 -0400 (EDT)

branch: master
commit 92ea393a16e5c99a8860dab368c6ca3ca6abc3c5
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    ; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.
    
    Use 'bound-and-true-p' to check for non-nil 'outline-minor-mode'.
---
 lisp/menu-bar.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index efce55032c8..b85cc834588 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]