mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-25 22:50:37 -08:00
Fix a bug in the :delight support
This commit is contained in:
parent
800669d9da
commit
c3a4b03b5f
1 changed files with 4 additions and 8 deletions
|
|
@ -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))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue