Skip to content

Commit

Permalink
transient--make-transient-map: Handle conflicts with keys from maps
Browse files Browse the repository at this point in the history
If the binding comes from a keymap such as `transient-base-map',
then there is no suffix object yet.
  • Loading branch information
tarsius committed Apr 14, 2024
1 parent c356d1b commit 2698d62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,8 @@ of the corresponding object."
(define-key map kbd cmd))
((eq alt cmd))
((transient--inapt-suffix-p obj))
((transient--inapt-suffix-p (transient-suffix-object alt))
((and-let* ((obj (transient-suffix-object alt)))
(transient--inapt-suffix-p obj))
(define-key map kbd cmd))
(transient-detect-key-conflicts
(error "Cannot bind %S to %s and also %s"
Expand Down

0 comments on commit 2698d62

Please sign in to comment.