From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sdn.gnuem@mailnull.com Newsgroups: gmane.emacs.help Subject: Adventures in key mapping Date: Tue, 10 May 2011 09:31:13 -0400 (EDT) Message-ID: <20110510133113.5E0E751023A@outside.256.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1305034298 3536 80.91.229.12 (10 May 2011 13:31:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 13:31:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 10 15:31:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJn2D-0007YH-Dj for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2011 15:31:33 +0200 Original-Received: from localhost ([::1]:47875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJn2C-0004CJ-3Q for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2011 09:31:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJn26-0004Bx-Lc for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:31:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJn20-0003wx-Pf for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:31:26 -0400 Original-Received: from outside.256.com ([72.93.100.124]:50343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJn20-0003wY-NB for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:31:20 -0400 Original-Received: by outside.256.com (Postfix, from userid 33) id 5E0E751023A; Tue, 10 May 2011 09:31:13 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 72.93.100.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80957 Archived-At: I wanted to assign something to the C-, (control comma) key sequence. My first attempt was: (local-set-key "\C-," 'some-function) This gives the error "Invalid modifier in string", although I'm not sure why. Then I tried: (local-set-key [C-,] 'some-function) This gave no error or warning, but it also apparently had no effect. It did not assign anything to C-,. After much experimentation and frustration, I hit upon this: (local-set-key [(control ,)] 'some-function) which works. One day, I byte-compiled the elisp file that contains the above line. I got a most curious warning message: !! The file uses old-style backquotes !! This functionality has been obsolete for more than 10 years already and will be removed soon. See (elisp)Backquote in the manual. I wonder if this message is a bug. I have no clue what "old-style backquotes" are, and the Backquote section of the elisp manual makes no mention of them. The backquote character (ascii 0x60) does not appear anywhere in the source file. After more trial-and-error, I crafted the following: (local-set-key [(control ?,)] 'some-function) which works and does not result in any byte-compilation warnings. Also, I have found that: (local-set-key [?\C-,] 'some-function) works as well. I don't really have a question for the list, since I got it to work. I'm posting this to help anyone in the future who may have similar problems. But does anyone think that the backquote warning is a bug that should be reported? Or perhaps the documentation should be updated? ---------- This message was sent from a MailNull anti-spam account. You can get your free account and take control over your email by visiting the following URL. http://mailnull.com/