Skip to content

Commit

Permalink
Compile suffix commands that are defined inside prefix definitions
Browse files Browse the repository at this point in the history
Closes #256.
  • Loading branch information
tarsius committed Sep 7, 2023
1 parent 361d8ac commit dd970cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,10 @@ example, sets a variable, use `transient-define-infix' instead.
`(prog1 ',sym
(put ',sym 'interactive-only t)
(put ',sym 'command-modes (list 'not-a-mode))
(defalias ',sym ,(macroexp-quote cmd)))))))
(defalias ',sym
,(if (eq (car-safe cmd) 'lambda)
cmd
(macroexp-quote cmd))))))))
((or (stringp car)
(and car (listp car)))
(let ((arg pop)
Expand Down

0 comments on commit dd970cd

Please sign in to comment.