1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00

Use-package now accepts function as argument

This commit is contained in:
John Wiegley 2012-07-30 17:36:13 -05:00
parent fe7997d2b7
commit 8b93cee99b

View file

@ -392,9 +392,12 @@
,(if (file-name-absolute-p path)
path
(expand-file-name path user-emacs-directory))))
(if (stringp pkg-load-path)
(list pkg-load-path)
pkg-load-path))
(cond ((stringp pkg-load-path)
(list pkg-load-path))
((functionp pkg-load-path)
(funcall pkg-load-path))
(t
pkg-load-path)))
(when byte-compile-current-file
,@defines-eval