You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue where pressing ESC in any transient buffer fails to quit the transient if Magit has not yet been loaded. Instead, the message “Unbound suffix: ‘’ (Use ‘C-g’ to abort, ‘?’ for help) [evil-force-normal-state]” is displayed. Once Magit loads (e.g., after invoking one of its autoloaded commands), the ESC key properly quits the transient.
I found a workaround (the following snippet) after taking a look at the configurations within the :tools magit module:
(after! transient
;; Close transient with ESC
(define-key transient-map [escape] #'transient-quit-one))
There are other transient settings defined in the same location (under magit's use-package declaration). I use other transient-based packages before Magit is loaded, the changes placed under Magit’s use-package block do not take effect for those transients as well.
Wouldn't it seem more logical to configure transient in its own dedicated block so that transient functionality is consistent regardless of whether Magit is loaded?
Steps to Reproduce:
Open Emacs with Doom configuration.
Trigger a transient (e.g., from a package that uses transient) before Magit is loaded.
Press ESC to attempt quitting the transient.
Observe error “Unbound suffix: ‘’…”
Expected Behavior:
ESC should quit any transient buffer.
Actual Behavior:
ESC is unbound, causing an error message to be seen, until after Magit loads.
Proposed Solution:
Move all transient settings into a top-level use-package! or after! block for transient itself.
Thank you for your time and assistance in reviewing this issue. If there is more context I can provide or if I can help test potential fixes, please let me know.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am encountering an issue where pressing ESC in any transient buffer fails to quit the transient if Magit has not yet been loaded. Instead, the message “Unbound suffix: ‘’ (Use ‘C-g’ to abort, ‘?’ for help) [evil-force-normal-state]” is displayed. Once Magit loads (e.g., after invoking one of its autoloaded commands), the ESC key properly quits the transient.
I found a workaround (the following snippet) after taking a look at the configurations within the
:tools magit
module:There are other transient settings defined in the same location (under magit's use-package declaration). I use other transient-based packages before Magit is loaded, the changes placed under Magit’s use-package block do not take effect for those transients as well.
Wouldn't it seem more logical to configure transient in its own dedicated block so that transient functionality is consistent regardless of whether Magit is loaded?
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Proposed Solution:
Thank you for your time and assistance in reviewing this issue. If there is more context I can provide or if I can help test potential fixes, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions