emacs-devel
[Top][All Lists]
Advanced

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

Re: Segfault after bad value for meta-prefix-char


From: Andreas Schwab
Subject: Re: Segfault after bad value for meta-prefix-char
Date: Thu, 20 Jan 2005 13:08:56 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Peter Heslin <address@hidden> writes:

> Ah.  Thanks, that works.  I had tried this:
>
> (global-set-key (kbd "<ESC>")   'keyboard-escape-quit)
>
> but that seems to disable the Meta key, which is why I started mucking
> around with meta-prefix-char.  Is it expected behavior that binding
> [escape] works while binding (kbd "<ESC>") doesn't?

Normally, [escape] is translated to "\e" via function-key-map, and the
latter is used for looking up meta keys (except function keys), thus if
you rebind "\e" they won't work any more.  Binding [escape] overrides the
entry in function-key-map, but "\e" still goes through the normal lookup,
thus it wouldn't change anything for a tty frame.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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