* Re: What is a safe way to bind ESC to quit
@ 2021-04-06 18:05 scame
2021-04-06 19:19 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: scame @ 2021-04-06 18:05 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
> Also, the above won't help you interrupt code with `escape` while
> it's running. You might also want to check `set-quit-char` for that.
You're right, the changed escape won't stop running code like C-g
does. I tried calling set-quit-char with 27, but it had no effect,
running code still can't be stopped, so C-g's function is not
replicated on ESC.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What is a safe way to bind ESC to quit
2021-04-06 18:05 What is a safe way to bind ESC to quit scame
@ 2021-04-06 19:19 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2021-04-06 19:19 UTC (permalink / raw)
To: help-gnu-emacs
>> Also, the above won't help you interrupt code with `escape` while
>> it's running. You might also want to check `set-quit-char` for that.
> You're right, the changed escape won't stop running code like C-g
> does. I tried calling set-quit-char with 27, but it had no effect,
> running code still can't be stopped, so C-g's function is not
> replicated on ESC.
It might work for C-[ (which is indeed ASCII char 27), but not for the
`escape` key. For that you'll need to change the C code.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-06 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-06 18:05 What is a safe way to bind ESC to quit scame
2021-04-06 19:19 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).