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

[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))
 
 



reply via email to

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