how to insert an infix as last item in a group #320
-
i'm using i can use say is there a way to insert an infix as last item in a group? (also, i think there is some ambiguity about the LOC arg in the docs, sometimes it says it will be inserted after LOC, sometimes before.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There are two function for inserting a binding
Use
The docstrings of these functions mention the respective correct "direction". In the manual "before" and "after" appear in the shared item about - Function: transient-insert-suffix prefix loc suffix &optional keep-other ::
- Function: transient-append-suffix prefix loc suffix &optional keep-other ::
- These functions insert the suffix or group {{{var(SUFFIX)}}} into {{{var(PREFIX)}}} before
- or after {{{var(LOC)}}}.
+ These functions insert the suffix or group {{{var(SUFFIX)}}} into {{{var(PREFIX)}}} next
+ to the location specified by LOC. ~transient-insert-suffix~ inserts
+ before LOC and ~transient-append-suffix~ inserts after LOC. "before" does not appear a second time in this section. "after" does appear one more time, and it is clear that that instance is about |
Beta Was this translation helpful? Give feedback.
-
ah, sorry, that's the trick. problem solved. sorry i missed it in the docs, reading too fast...? |
Beta Was this translation helpful? Give feedback.
There are two function for inserting a binding
transient-insert-suffix
inserts before LOC.transient-append-suffix
inserts after LOC.Use
transient-append-suffix
.The docstrings of these functions mention the respective correct "direction". In the manual "before" and "after" appear in the shared item about
transient-insert-suffix
andtransient-append-suffix
. The function names and directions appear in the same order, unambiguously linking each direction to just one function, but I guess I …