2

I would like to add a group of options to a transient, but I cannot figure out the POS parameter I should use.

(transient-append-suffix 'magit-push "-n" ;; after the last option of the first group
  ["My group"
   '("-M" "My option" "--my-option")
    ])

does not work, it throws this error: "Cannot place ["My group"] into magit-push at -n; suffixes and groups cannot be siblings".

(transient-append-suffix 'magit-push '(0) ;; after the first group
  ["My group"
   '("-M" "My option" "--my-option")
    ])

does not throw any error, but when I try to open the push transient, I have this error: "No key for quote".

What is the correct way to add my custom group after the first group?

2

I found the issue, the infixes in the group should not be quoted:

(transient-append-suffix 'magit-push '(0) ;; after the first group
  ["My group"
   ("-M" "My option" "--my-option")
    ])
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.