From c3a4b03b5f198be2743a8bf80c405dc2e8014fb5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Mar 2015 00:38:51 -0500 Subject: [PATCH] Fix a bug in the :delight support --- lisp/use-package/use-package.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 7396677ac0a..093188e141f 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -934,13 +934,13 @@ deferred until the prefix key sequence is pressed." "Normalize arguments to delight." (cond ((and (= (length args) 1) - (symbolp (cdr args))) + (symbolp (car args))) (list (car args) nil name-symbol)) ((and (= (length args) 2) - (symbolp (cdr args))) + (symbolp (car args))) (list (car args) (cadr args) name-symbol)) ((and (= (length args) 3) - (symbolp (cdr args))) + (symbolp (car args))) args) (t (use-package-error ":delight expects same args as delight function")))) @@ -949,11 +949,7 @@ deferred until the prefix key sequence is pressed." (let ((body (use-package-process-keywords name-symbol rest state))) (use-package-concat body - `((delight - (quote ,(nth 0 args)) - ,(nth 1 args) - (quote ,(nth 2 args))) - t)))) + `((delight (quote ,(nth 0 args)) ,(nth 1 args) (quote ,(nth 2 args))) t)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- 2.39.2