Skip to content

Commit ed5d4a0

Browse files
committed
[maybe] Prefer quoting top-level included groups
1 parent d5d4c70 commit ed5d4a0

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

lisp/transient.el

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,10 +1255,19 @@ commands are aliases for."
12551255
(setq class v)
12561256
(push k keys)
12571257
(push v keys))))
1258-
(while (let ((arg (car args)))
1259-
(or (vectorp arg)
1260-
(and arg (symbolp arg))))
1261-
(push (pop args) suffixes))
1258+
(while-let
1259+
((arg (car args))
1260+
(arg (cond
1261+
;; Inline group definition.
1262+
((vectorp arg)
1263+
(pop args))
1264+
;; Quoted include, as one would expect.
1265+
((eq (car-safe arg) 'quote)
1266+
(cadr (pop args)))
1267+
;; Unquoted include, for compatibility.
1268+
((and arg (symbolp arg))
1269+
(pop args)))))
1270+
(push arg suffixes))
12621271
(when (eq (car-safe (car args)) 'declare)
12631272
(setq declare (car args))
12641273
(setq args (cdr args))

0 commit comments

Comments
 (0)