Skip to content

Commit

Permalink
transient--parse-suffix: Improve recently added comment
Browse files Browse the repository at this point in the history
Added in [1: fb26ac3].

1: 2024-10-04 fb26ac3
   transient--parse-suffix: Fix regression breaking :setup-children

Suggested-by: Stefan Monnier <monnier@iro.umontreal.ca>
  • Loading branch information
tarsius committed Oct 6, 2024
1 parent fc03c0b commit 92df5a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1188,10 +1188,10 @@ commands are aliases for."
((symbolp car)
(setq args (plist-put args :command (macroexp-quote pop))))
;; During macro-expansion this is expected to be a `lambda'
;; expression. When this is called from a `:setup-children'
;; function, it may also be a byte-code function object or a
;; compiled function. However, we never treat a string as a
;; command, so we have to check for that explicitly.
;; expression (i.e., source code). When this is called from a
;; `:setup-children' function, it may also be a function object
;; (a.k.a a function value). However, we never treat a string
;; as a command, so we have to check for that explicitly.
((and (commandp car)
(not (stringp car)))
(let ((cmd pop)
Expand Down

0 comments on commit 92df5a4

Please sign in to comment.