summaryrefslogtreecommitdiff
path: root/docs/transient.texi
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-05-29 18:31:50 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-05-29 18:31:50 +0200
commit45fbefdc5b112f0a15cd936570b00629a9a2fda0 (patch)
treec5a9ad80c73367b2fbe5a8435f9b6c5cd94318fe /docs/transient.texi
parentdf5856bb960933c91ec391de79f75ecd2cb55e52 (diff)
Inhibit quitting while a menu is active
Like the somewhat similar but much less complex `read-key-sequence', for example, Transient menus should inhibit quitting, otherwise C-g might, for example, kill some subprocess, when the user intended to exit the menu. Due to how Transient is implemented, there is nothing around which we could let-bind `inhibit-quit', like that is usually done. Instead we have to set the global value and make sure we reset that when exiting the menu. The resetting has to happen on `post-command-hook' but at that time a let-binding for `inhibit-quit' is in effect, so we have to use `set-default-toplevel-value', instead of `setq'. Closes #388.
Diffstat (limited to 'docs/transient.texi')
0 files changed, 0 insertions, 0 deletions