branch: externals/leaf commit 34f96a45d22913eaccf84fc382092d51c0fc5dd4 Author: Naoya Yamashita <con...@gmail.com> Commit: Naoya Yamashita <con...@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))