[issue] shouldn't substitute-command-keys remove duplicates?

Stephen J. Turnbull stephen at xemacs.org
Fri Mar 21 13:58:48 EDT 2008


Make a text for this:

Drew Adams writes:

 > Shouldn't substitute-command-keys remove duplicates?
 >  
 > If you explicitly bind a key to the same command in both a
 > keymap km
 > and its parent pkm, and then you call this, the binding is
 > written
 > twice:
 >  
 > (define-key km  "a" 'foo)
 > (define-key pkm "a" 'foo)
 >  
 > (substitute-command-keys "\\{km\\}")
 >  
 > key             binding
 > ---             -------
 >  
 > ...
 > a  foo
 > a  foo


More information about the XEmacs-Tracker mailing list