From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Cannot use "\C-!" in a string in Emacs 22? Date: Mon, 26 Sep 2005 13:28:33 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127767320 22466 80.91.229.2 (26 Sep 2005 20:42:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2005 20:42:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 26 22:41:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EJzkQ-0005kd-RS for ged-emacs-devel@m.gmane.org; Mon, 26 Sep 2005 22:38:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJzg2-0006Nq-6h for ged-emacs-devel@m.gmane.org; Mon, 26 Sep 2005 16:34:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EJzcT-0003vX-9b for emacs-devel@gnu.org; Mon, 26 Sep 2005 16:30:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EJzcF-0003j0-Tc for emacs-devel@gnu.org; Mon, 26 Sep 2005 16:30:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJzcF-0003gT-Kj for emacs-devel@gnu.org; Mon, 26 Sep 2005 16:30:23 -0400 Original-Received: from [148.87.122.33] (helo=rgminet04.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EJzaZ-0001dt-J5 for emacs-devel@gnu.org; Mon, 26 Sep 2005 16:28:39 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j8QKSZIk014416 for ; Mon, 26 Sep 2005 14:28:36 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j8QKSZ07015538 for ; Mon, 26 Sep 2005 14:28:35 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j8QKSY7I015528 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 26 Sep 2005 14:28:35 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43267 Archived-At: > (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.