[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ESC C-% is seen as ESC C-5
From: |
Dan Jacobson |
Subject: |
Re: ESC C-% is seen as ESC C-5 |
Date: |
10 Jan 2001 14:12:51 +0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
>>>>> "Ehud" == Ehud Karni <ehud@unix.simonwiesel.co.il> writes:
Ehud> On Sun, 7 Jan 2001 09:11:38 +0200 (IST), Eli Zaretskii
Ehud> <eliz@is.elta.co.il> wrote:
>> On 7 Jan 2001, Dan Jacobson wrote: > Is it all my fault that > ESC
>> C-% query-replace-regexp > is seen as > ESC C-5 digit-argument > on
>> my 'US' keyboard?
>>
>> ??? query-replace-regexp is bound to "ESC %", not "ESC C-%". The
>> latter won't work on a tty, I think.
Ehud> Eli, for a change, this time Mr. Jacobson is right. `replace.el'
Ehud> defines: (define-key esc-map "%" 'query-replace) and (define-key
Ehud> esc-map [?\C-%] 'query-replace-regexp)
Ehud> but when he type ESC C-%, he does not hold the shift so he ends
Ehud> up with C-5. I checked both NTemacs and Emacs on X windows and
Ehud> ESC C-% works as defined.
Ehud> Of course you are right that it won't work on tty (no C-% in
Ehud> ASCII).
(By the way, the independant actions "ctrl shift" and "shift ctrl"
[with no other keystrokes attached] toggle many Chinese input methods
here... I will expect it to conflict with XCIN in the next emacs... ?)
I found another, C-^, I wish they would stick to ASCII.
I don't think it's to safe to assign this:
(defcustom terminal-escape-char ?\C-^
"*All characters except for this are passed verbatim through the
terminal-emulator. This character acts as a prefix for commands
to the emulator program itself. Type this character twice to send
it through the emulator. Type ? after typing it for a list of
possible commands.
This variable is local to each terminal-emulator buffer."
Indeed, one would think that one would need terminal-emulator most
when one is on a simpler terminal and even lacks C-^ further...
--
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. 積丹尼