all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: where-is-internal question
Date: Wed, 07 Sep 2005 11:11:46 -0400	[thread overview]
Message-ID: <jwvvf1cvrps.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICGEFNCMAA.drew.adams@oracle.com> (Drew Adams's message of "Wed, 7 Sep 2005 06:52:53 -0700")

>            (if (boundp 'this-original-command)
>                 (define-key my-map [remap self-insert-command] 'my-command)
>               (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 (whose docstring mentions the use of the [remap
<foo>] binding).


        Stefan

  reply	other threads:[~2005-09-07 15:11 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 [this message]
2005-09-07 16:03       ` Drew Adams
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=jwvvf1cvrps.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.