]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix for single :custom (foo bar)
authorJohn Wiegley <johnw@newartisans.com>
Tue, 28 Nov 2017 22:39:59 +0000 (14:39 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 28 Nov 2017 22:39:59 +0000 (14:39 -0800)
lisp/use-package/use-package.el

index f6c21e0a903d1fd269f97ec3cb2162b61befecd0..a2ce335d1d8ed06315b8262ff1cc0b504f6ba126 100644 (file)
@@ -1471,7 +1471,9 @@ deferred until the prefix key sequence is pressed."
         (use-package-error
          (concat label " a (<symbol> <value> [comment])"
                  " or list of these")))
-      arg)))
+      (if (symbolp (car arg))
+          (list arg)
+        arg))))
 
 (defun use-package-handler/:custom (name keyword args rest state)
   "Generate use-package custom keyword code."