branch: externals/leaf commit 39c3bacb68271833d56662223d21f9bd7b2867b2 Author: Naoya Yamashita <con...@gmail.com> Commit: Naoya Yamashita <con...@gmail.com>
use leaf-this-file instead of hardcoding --- leaf.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/leaf.el b/leaf.el index ce62eda..4f8242f 100644 --- a/leaf.el +++ b/leaf.el @@ -1067,10 +1067,7 @@ FN also accept list of FN." (defmacro leaf-handler-leaf-path (name) "Meta handler for :leaf-path for NAME." - `(let ((file (or leaf--load-file-name - load-file-name - buffer-file-name - byte-compile-current-file))) + `(let ((file (leaf-this-file))) (unless (boundp 'leaf--paths) (defvar leaf--paths nil)) (when file (add-to-list 'leaf--paths (cons ',name file)))))