Questions tagged [transient-library]
The transient-library tag has no usage guidance.
10
questions
0
votes
0
answers
19
views
Unknown fix for error: cl--generic-build-combined-method: Cyclic definition: %S: loadhist-unload-element
I'm using emacs 27.2 and magit version 20231109.935. When I'm inside a directory and try to run magit-status or magit-init I get the error message in the title:
cl--generic-build-combined-method: ...
1
vote
1
answer
37
views
Is it possible to eval code as a transient group description?
I want to customize the title of a transient group based on the value of some variable, my--current-section. The following doesn't work
(transient-define-prefix my--prefix ()
"Sample docstring&...
0
votes
1
answer
119
views
Why is the last run in transient-define-prefix?
I use transient.el
Press key a but (insert "B") is executed
;; NG case
;; desc is same
;; press a -> B
(progn
(transient-define-prefix my-test1 ()
[("a" "desc" (...
2
votes
0
answers
102
views
how to teach magit to pass multiple push-options at once
GitLab has a few push options for which I'd like to create switches in magit-push's transient.
Causing -n to add -oci.skip is simple enough:
(transient-append-suffix 'magit-push "-n" '("...
3
votes
1
answer
53
views
Acceptance test for a flow that uses the transient package?
I am trying to write a test around a flow that uses transient. Here is the sample code:
;; -*- lexical-binding: t; coding: utf-8 -*-
(require 'transient)
(require 'buttercup)
(require 'with-simulated-...
0
votes
1
answer
242
views
How to persist a transient to make a command repeatable?
I am converting some of my Hydras to Transient. One of them includes a command with shrinks or enlarges one of my split windows, so I hit it repeatedly until I like my size. How to do this in ...
0
votes
1
answer
228
views
Defining a simple transient with a default value
I'm trying to add a very simple transient thus:
(transient-define-prefix simple-transient ()
"A simple transient"
["Arguments"
("-a" "Address (...
0
votes
0
answers
35
views
How can I define a new group on an existent transient?
I want to customize the forge-dispatch transient. Specifically I want to add new group, Remote, to the right side of Create. And add the new suffix there.
As far as I know, transient-{append,replace}-...
1
vote
1
answer
107
views
Can a transient suffix have a value like an infix?
I'm writing a transient for invoking debchange. It has a number of regular options like --multimaint which I am adding infixes for, and then a handful of mutually exclusive options like --append of ...
6
votes
1
answer
625
views
How to change the default transient level temporarily? ("Show hidden magit commands")
Many commands that are rarely used in magit are hidden by default. Magit uses the transient.el library for popups and the visibility of infix and suffix commands are controlled by transient-default-...