Can I return information about a transient from a suffix invocation? #306
Hugo-Heagren
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I plan to implement support for "returning values", but I don't think I will get to it for a few more months. Sorry. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Transient is a very powerful and comfortable interface for choosing things. I want to use transient to select one or several elements of a list in a package I'm building. For minimal example, lets say the objects are
selectable
objects, which each have a name and key slot. I need a function which:selectable
objects as argument (e.g. selectable-list)I can't make the last bullet point happen. Is this something transient can or should do? If so, how can I do it? Here's what I have so far:
If I run
(setq var (transient-choose-selectable selectable-list))
, select something and press RET, then inspectvar
, the value ofvar
is still nil. I see why this is happening: the body oftransient-choose-selectable
finishes with transient setup and then exits (returning nil). Is there any way I can retain or access the return value of the final confirmation?Beta Was this translation helpful? Give feedback.
All reactions