branch: elpa/git-commit commit 8ea1df1cd03922262d928fe2abc12477ca1569bc Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@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))