[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/leaf 34f96a4 09/13: use bound-and-true-p instead of jus
From: |
Stefan Monnier |
Subject: |
[elpa] externals/leaf 34f96a4 09/13: use bound-and-true-p instead of just eval variable |
Date: |
Wed, 23 Jun 2021 21:24:17 -0400 (EDT) |
branch: externals/leaf
commit 34f96a45d22913eaccf84fc382092d51c0fc5dd4
Author: Naoya Yamashita <conao3@gmail.com>
Commit: Naoya Yamashita <conao3@gmail.com>
use bound-and-true-p instead of just eval variable
with situations where user don't (require 'leaf).
---
leaf.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/leaf.el b/leaf.el
index 3c1a1d8..0f8d725 100644
--- a/leaf.el
+++ b/leaf.el
@@ -638,9 +638,9 @@ see `alist-get'."
(defsubst leaf-this-file ()
"Return path to this file."
- (or leaf--load-file-name
+ (or (bound-and-true-p leaf--load-file-name)
+ (bound-and-true-p byte-compile-current-file)
load-file-name
- (and (boundp 'byte-compile-current-file) byte-compile-current-file)
buffer-file-name))
- [elpa] externals/leaf c66dede 03/13: rewrite Fix `leaf-find'in embedded leaf block, (continued)
- [elpa] externals/leaf c66dede 03/13: rewrite Fix `leaf-find'in embedded leaf block, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 0bd023a 05/13: fix testcases, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 024ea5f 08/13: Merge pull request #498 from conao3/feature#497, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 9a20d00 12/13: tagged v4.5.2, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf af0d4d8 06/13: Merge pull request #496 from Z572/fix-leaf-find-in-embedded-leaf-block-2, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf ed1b50d 02/13: Revert "fix testcases", Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 37dd2ba 07/13: defun -> defsubst; leaf-this-file is expanded in :leaf-path Sexp, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 58d4326 10/13: Merge pull request #499 from conao3/feature#497-2, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf db9676b 11/13: add added doc keyword, Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 99d64eb 01/13: Revert "add :leaf-defer-let system keyword and move :leaf-defer `let` hack", Stefan Monnier, 2021/06/23
- [elpa] externals/leaf 34f96a4 09/13: use bound-and-true-p instead of just eval variable,
Stefan Monnier <=
- [elpa] externals/leaf a4fd520 13/13: Merge pull request #500 from conao3/feature-leaf-keywords#145, Stefan Monnier, 2021/06/23