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

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

[elpa] externals/setup 2503ad0 25/25: Expand load path for :load-from


From: Stefan Monnier
Subject: [elpa] externals/setup 2503ad0 25/25: Expand load path for :load-from
Date: Wed, 14 Apr 2021 18:49:04 -0400 (EDT)

branch: externals/setup
commit 2503ad033299f52e0ab11df3e446d2420dc445a0
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Expand load path for :load-from
---
 setup.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.el b/setup.el
index 11babe7..8e46680 100644
--- a/setup.el
+++ b/setup.el
@@ -496,7 +496,7 @@ the first PACKAGE."
 
 (setup-define :load-from
   (lambda (path)
-    `(add-to-list 'load-path ,path))
+    `(add-to-list 'load-path (expand-file-name ,path)))
   :documentation "Add PATH to load path.
 This macro can be used as HEAD, and it will replace itself with
 the nondirectory part of PATH."



reply via email to

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