From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: bypassing defining prefix keys
Date: Sun, 4 Feb 2007 13:27:19 -0800 [thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMCEKNCOAA.drew.adams@oracle.com> (raw)
In-Reply-To: <je4pq1mxie.fsf@sykes.suse.de>
> > 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.
I'm not sure what you're responding to. Yes, any existing binding has been
removed by binding them to nil. And?
`*' and `%' are _not_ then defined as prefix keys. The question is whether
they should be. Is there a good reason not to define them as prefix keys?
next prev parent reply other threads:[~2007-02-04 21:27 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
2007-02-04 21:27 ` Drew Adams [this message]
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=EIENLHALHGIMHGDOLMIMCEKNCOAA.drew.adams@oracle.com \
--to=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.