mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Handle :unless correctly
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/197
This commit is contained in:
parent
543935482f
commit
c65a334276
1 changed files with 1 additions and 4 deletions
|
@ -503,10 +503,7 @@ manually updated package."
|
|||
|
||||
(defalias 'use-package-normalize/:if 'use-package-normalize-test)
|
||||
(defalias 'use-package-normalize/:when 'use-package-normalize-test)
|
||||
|
||||
(defun use-package-normalize/:unless (name keyword args)
|
||||
(not (use-package-only-one (symbol-name keyword) args
|
||||
#'use-package-normalize-value)))
|
||||
(defalias 'use-package-normalize/:unless 'use-package-normalize-test)
|
||||
|
||||
(defun use-package-handler/:if (name keyword pred rest state)
|
||||
(let ((body (use-package-process-keywords name rest state)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue