help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a safe way to bind ESC to quit


From: Stefan Monnier
Subject: Re: What is a safe way to bind ESC to quit
Date: Tue, 06 Apr 2021 15:19:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]