all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: where-is-internal question
Date: Wed, 7 Sep 2005 09:03:44 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIEFOCMAA.drew.adams@oracle.com> (raw)
In-Reply-To: <jwvvf1cvrps.fsf-monnier+emacs@gnu.org>

    >               (dolist (key (where-is-internal 'self-insert-command
    >                                               global-map))
    >                 (define-key my-map key 'my-command)))

    Also the above dolist is advantageously replaced by a call to
    substitute-key-definition

Of course! I've used substitute-key-definition a lot, but I forgot about its
optional OLDMAP arg. Thanks.

BTW, I wonder about the decision to not mention the PREFIX arg in the doc
string of substitute-key-definition. It is visible anyway, when you do C-h
f. I think it would be clearer to explicitly mention it, saying that it is
for internal use only, or that it is for recursive calls only. That is,
describe it, but tell people not to use it.

  reply	other threads:[~2005-09-07 16:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07  0:54 where-is-internal question Drew Adams
2005-09-07  3:19 ` Drew Adams
2005-09-07  8:37   ` Kim F. Storm
2005-09-08  2:41     ` Richard M. Stallman
2005-09-08 10:14       ` Kim F. Storm
2005-09-07  8:28 ` Kim F. Storm
2005-09-07 12:12   ` Stefan Monnier
2005-09-07 13:05     ` Kim F. Storm
2005-09-07 13:52   ` Drew Adams
2005-09-07 15:11     ` Stefan Monnier
2005-09-07 16:03       ` Drew Adams [this message]
2005-09-07 20:04     ` Drew Adams
2005-09-07 20:25       ` Stefan Monnier
2005-09-08  1:59         ` Drew Adams
2005-09-08  9:04         ` Richard M. 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=DNEMKBNJBGPAOPIJOOICIEFOCMAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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.