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

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

[nongnu] elpa/git-commit 8ea1df1cd0 03/12: Wrap git-commit-mode with bou


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 8ea1df1cd0 03/12: Wrap git-commit-mode with bound-and-true-p
Date: Fri, 13 May 2022 10:58:11 -0400 (EDT)

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

    Wrap git-commit-mode with bound-and-true-p
---
 lisp/magit-mode.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 246b7a6489..f0344ada74 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -35,8 +35,6 @@
 (require 'help-mode)
 (require 'transient)
 
-;; For `magit-display-buffer-fullcolumn-most-v1' from `git-commit'
-(defvar git-commit-mode)
 ;; For `magit-refresh-buffer'
 (declare-function magit-process-unset-mode-line-error-status "magit-process" 
())
 ;; For `magit-refresh-get-relative-position'
@@ -798,7 +796,7 @@ the mode of the current buffer derives from 
`magit-log-mode' or
 `magit-cherry-mode'."
   (display-buffer
    buffer
-   (cond ((and (or git-commit-mode
+   (cond ((and (or (bound-and-true-p git-commit-mode)
                    (derived-mode-p 'magit-log-mode
                                    'magit-cherry-mode
                                    'magit-reflog-mode))



reply via email to

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