emacs-devel
[Top][All Lists]
Advanced

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

Re: bypassing defining prefix keys


From: Andreas Schwab
Subject: Re: bypassing defining prefix keys
Date: Sun, 04 Feb 2007 22:19:21 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> Here's why. In dired.el, instead of defining `*' and `%' as prefix keys, a
> shortcut is taken. `*' and `%' are each bound to nil, so that they are
> undefined in `dired-mode-map', and then each of the `*-<whatever>' and
> `%-<whatever> key sequences is bound directly in `dired-mode-map'. That is:
>
>  (define-key dired-mode-map "*" nil)
>  (define-key dired-mode-map "*/" 'dired-mark-directories)
>  ...
>
> This explains the behavior I get, but I wonder if `*' and `%' should be
> defined this way.

Before the remap feature existed you had to remove the existing binding
for "*" (from suppress-keymap) before you could redefine it as a prefix
key.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP 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]