From: Andreas Schwab <schwab@suse.de>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: bypassing defining prefix keys
Date: Sun, 04 Feb 2007 22:19:21 +0100 [thread overview]
Message-ID: <je4pq1mxie.fsf@sykes.suse.de> (raw)
In-Reply-To: <BDEIJAFNGDOAGCJIPKPBAEGJCCAA.drew.adams@oracle.com> (Drew Adams's message of "Sun, 4 Feb 2007 11:58:33 -0800")
"Drew Adams" <drew.adams@oracle.com> 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, schwab@suse.de
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."
next prev parent reply other threads:[~2007-02-04 21:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 19:58 bypassing defining prefix keys Drew Adams
2007-02-04 21:19 ` Andreas Schwab [this message]
2007-02-04 21:27 ` Drew Adams
2007-02-04 22:03 ` Andreas Schwab
2007-02-04 22:19 ` Drew Adams
2007-02-05 19:10 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=je4pq1mxie.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.