summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2026-03-05 22:44:52 +0100
committerJonas Bernoulli <jonas@bernoul.li>2026-03-05 22:44:52 +0100
commite7cae38a1fd613c5dae43a60de14a72a9b48bc9c (patch)
tree3c4e9e65d51b1d57b65d5d7d8e8bef41122b72e9
parentb17dfd74f6d4bf99e5b34359891844f9f718b532 (diff)
transient--quit-kludge: Add comment
-rw-r--r--lisp/transient.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/transient.el b/lisp/transient.el
index 8b8f748..94e90e2 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3289,7 +3289,11 @@ identifying the exit."
(transient--post-exit this-command)))
(defun transient--quit-kludge (action)
- (static-if (boundp 'redisplay-can-quit) ;Emacs 31
+ ;; Fixing the bug that makes this kludge necessary was proposed in
+ ;; https://yhetil.org/emacs-bugs/m1ikl4iqtg.fsf@dancol.org/, but it
+ ;; does not look like that's gonna be merged any time soon. See also
+ ;; https://github.com/magit/transient/commit/45fbefdc5b112f0a15cd9365.
+ (static-if (boundp 'redisplay-can-quit)
action
(pcase-exhaustive action
('enable