emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cannot use "\C-!" in a string in Emacs 22?


From: Drew Adams
Subject: RE: Cannot use "\C-!" in a string in Emacs 22?
Date: Mon, 26 Sep 2005 13:28:33 -0700

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




reply via email to

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