emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/git-commit 6c98ba3dac 13/13: Use fboundp instead of requir


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 6c98ba3dac 13/13: Use fboundp instead of requiring magit-wip
Date: Fri, 6 May 2022 15:58:12 -0400 (EDT)

branch: elpa/git-commit
commit 6c98ba3dac1c64c790d08d4b40bda2f16474bab3
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use fboundp instead of requiring magit-wip
    
    If the library hasn't been loaded yet, then the
    modes that it defines cannot possibly be in use.
---
 lisp/magit-log.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 47c3fb6baf..16c4e277ea 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -453,8 +453,8 @@ the upstream isn't ahead of the current branch) show."
     ("H" "HEAD"                magit-reflog-head)
     ("O" "other"               magit-reflog-other)]
    [:if (lambda ()
-          (require 'magit-wip)
-          (magit--any-wip-mode-enabled-p))
+          (and (fboundp 'magit--any-wip-mode-enabled-p)
+               (magit--any-wip-mode-enabled-p)))
     :description "Wiplog"
     ("i" "index"          magit-wip-log-index)
     ("w" "worktree"       magit-wip-log-worktree)]



reply via email to

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