[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit ed073cf23b 2/2: Deal with unbound byte-compile-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit ed073cf23b 2/2: Deal with unbound byte-compile-current-file |
Date: |
Fri, 29 Apr 2022 13:58:12 -0400 (EDT) |
branch: elpa/git-commit
commit ed073cf23b3c3c2fdce36f603ff7781b6a7efed3
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Deal with unbound byte-compile-current-file
This is a proactive change. Other uses outside of bytecomp.el
itself do this too.
---
lisp/magit.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/magit.el b/lisp/magit.el
index e15ac5c678..42718228bf 100644
--- a/lisp/magit.el
+++ b/lisp/magit.el
@@ -617,7 +617,7 @@ and Emacs to it."
;; See comment above.
"https://github.com/magit/magit/wiki/Don't-set-$GIT_DIR-and-alike"))
;; Git isn't required while building Magit.
- (unless byte-compile-current-file
+ (unless (bound-and-true-p byte-compile-current-file)
(magit-git-version-assert))
(when (version< emacs-version magit--minimal-emacs)
(display-warning 'magit (format "\
@@ -673,7 +673,7 @@ For X11 something like ~/.xinitrc should work.\n"
(with-eval-after-load 'bookmark
(require 'magit-bookmark))
-(unless byte-compile-current-file
+(unless (bound-and-true-p byte-compile-current-file)
(if after-init-time
(progn (magit-startup-asserts)
(magit-version))