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



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to