]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle :unless correctly
authorJohn Wiegley <johnw@newartisans.com>
Thu, 25 Feb 2016 23:08:32 +0000 (15:08 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 25 Feb 2016 23:08:32 +0000 (15:08 -0800)
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/197

lisp/use-package/use-package.el

index cf5b2814d45bb30b218366078b830956aed781c3..674861941690e06b3a5621cb4dcc1735365269f2 100644 (file)
@@ -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)))