[mew-int 00392] Re: keybinding on DEL
Kazu Yamamoto ( 山本和彦 )
kazu at example.com
Tue Jul 17 22:19:10 JST 2001
From: HAYATA Takahiro <hayata at example.com>
Subject: [mew-int 00388] keybinding on DEL
> REPORT:
> In Emacs-21.0.103, I think it is an idea to add
>
> (define-key mew-summary-mode-map [delete] 'mew-summary-prev-page)
>
> to "mew-key.el". I found
>
> (define-key mew-summary-mode-map "\177" 'mew-summary-prev-page)
>
> does not work due to (perhaps) the difference of Emacs21's handling
> of [backspace] and [delete].
I investigate this problem deeply. When we type a "KEY", it converts a
"CHARACTER".
"\010" (^H) and "\177" (^?) belong to the character level.
'delete and 'backspace belong to the key level.
And if we load "term/keyswap", the definition of the ^H *key* changes.
Emacs 20.7:
KEY ^H DEL BS
CHARACTER ^H ^? ^?
CHARACTER with keywwap ^? ^? ^?
Emacs 21:
KEY ^H DEL BS
CHARACTER ^H ^D ^?
CHARACTER with keywwap ^? ^D ^?
I guess you typed the "DEL" key on Emacs 21.
Probabley workaround is to write both of the following lines:
(define-key mew-summary-mode-map "\177" 'mew-summary-prev-page)
(define-key mew-summary-mode-map [delete] 'mew-summary-prev-page)
--Kazu
More information about the Mew-int
mailing list