[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a control
bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a controlling tty
Sat, 20 Feb 2016 22:37:56 +1100
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
On 20/02/16 20:40, Eli Zaretskii wrote:
> I don't think this patch will work reliably, because the parts of code
> you changed are not the whole picture. C-g is supported implicitly
> and explicitly in many more places. Grep the Lisp sources for C-g to
> see that.
I think it should be possible to rebind C-g. If it cannot be rebound, then
that is an exceptional wart which significantly compromises emacs'
It is extremely common for lisp code, whether in emacs or an external
to make assumptions about default bindings. C-g is far from unique in this
respect and while it would be nice if emacs had a way of globally changing
these assumptions, this is an understood cost when one deviates
from emacs defaults. I accept that changing something fundamental like this
requires scouring through lisp source and finding all the places this
assumption is made. Anything in lisp can be patched or configured at
so I am not particularly concerned about such issues.
This patch is required because in this specific instance an assumption
in the C code about the user's intended purpose of C-g, which has an
a graphical frame (demonstrated by my example), but that cannot be
through lisp from a graphical frame.
> That's documented in the doc string of set-quit-char, so this is by
> design. On a TTY, C-g triggers a signal, and Emacs uses a system API
> to change the character which does that. But on GUI frames, this is
> not possible.
If this is the intended behaviour of set-quit-char, then how is one supposed
to set quit_char from a graphical frame? quit_char is demonstrably not
TTY-specific, so it should be configurable and I cannot see a better place
> FWIW, my NSHO is that we should deprecate set-quit-char and remove it
> in a future Emacs version. It is no longer reasonable to have a
> feature that only works on text terminals.
Do you mean that quit_char should be removed entirely from the C code?
that would be best, I do not know enough to have an informed
optinion. However, as long as quit_char exists I have a demonstrated need to
be able to configure it at runtime.