branch: externals/leaf
commit 58d432689a23f440573e5a095b8b4998d8c7bfd0
Merge: 024ea5f 34f96a4
Author: Naoya Yamashita <con...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #499 from conao3/feature#497-2
    
    Use bound-and-true-p instead of just eval variable
---
 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