> (define-key my-map "\C-!" 'my-cmd), which works in Emacs 20, but > gives this error in Emacs 22: "Invalid modifier in string". It worked under Emacs-20, but returned the same as "\C-a"
Thanks. In Emacs-21 this was fixed to return an error > I settled on (define-key my-map [C-!] 'my-cmd) - it seems to > work for key bindings in both versions. You probably meant to use (define-key my-map [?\C-!] 'my-cmd) That's what I meant. Sorry for the typo. I'd recommend (define-key my-map [(control ?!)] 'my-cmd) OK. Thanks. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel