[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: where-is-internal question
From: |
Drew Adams |
Subject: |
RE: where-is-internal question |
Date: |
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)))
Since you are (probably) going to use my-map as a local map, it will
be searched before other maps which may also have remapped
self-insert-command so your mapping will take precedence.
Thanks. I'll give it a try when I get a chance.
- where-is-internal question, Drew Adams, 2005/09/06
- Re: where-is-internal question, Kim F. Storm, 2005/09/07
- Re: where-is-internal question, Stefan Monnier, 2005/09/07
- RE: where-is-internal question,
Drew Adams <=
- RE: where-is-internal question, Drew Adams, 2005/09/07
- Re: where-is-internal question, Stefan Monnier, 2005/09/07
- RE: where-is-internal question, Drew Adams, 2005/09/07
- Re: where-is-internal question, Richard M. Stallman, 2005/09/08