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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/leaf 39c3bac 12/18: use leaf-this-file instead of hardc


From: Stefan Monnier
Subject: [elpa] externals/leaf 39c3bac 12/18: use leaf-this-file instead of hardcoding
Date: Wed, 2 Jun 2021 18:28:03 -0400 (EDT)

branch: externals/leaf
commit 39c3bacb68271833d56662223d21f9bd7b2867b2
Author: Naoya Yamashita <conao3@gmail.com>
Commit: Naoya Yamashita <conao3@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)))))



reply via email to

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