all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Cannot use "\C-!" in a string in Emacs 22?
Date: Mon, 26 Sep 2005 13:28:33 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMENDCMAA.drew.adams@oracle.com> (raw)
In-Reply-To: <jwv7jd3k4aj.fsf-monnier+emacs@gnu.org>

    > (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	other threads:[~2005-09-26 20:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-26 18:56 Cannot use "\C-!" in a string in Emacs 22? Drew Adams
2005-09-26 19:44 ` Stefan Monnier
2005-09-26 20:28   ` Drew Adams [this message]
2005-09-26 20:50 ` Edward O'Connor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICMENDCMAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.