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

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

[elpa] externals/setup bc0edb4 24/25: Handle argument list for :load-fro


From: Stefan Monnier
Subject: [elpa] externals/setup bc0edb4 24/25: Handle argument list for :load-from properly
Date: Wed, 14 Apr 2021 18:49:04 -0400 (EDT)

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

    Handle argument list for :load-from properly
---
 setup.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.el b/setup.el
index d2b786e..11babe7 100644
--- a/setup.el
+++ b/setup.el
@@ -500,7 +500,7 @@ the first PACKAGE."
   :documentation "Add PATH to load path.
 This macro can be used as HEAD, and it will replace itself with
 the nondirectory part of PATH."
-  :shorthand (lambda (path) (intern (file-name-nondirectory path))))
+  :shorthand (lambda (args) (intern (file-name-nondirectory (cadr args)))))
 
 (setup-define :file-match
   (lambda (pat)



reply via email to

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