emacs-devel
[Top][All Lists]
Advanced

[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.    




reply via email to

[Prev in Thread] Current Thread [Next in Thread]