From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.help Subject: Re: Adventures in key mapping Date: Tue, 10 May 2011 15:45:40 +0200 Message-ID: <87iptipt2z.fsf@gmail.com> References: <20110510133113.5E0E751023A@outside.256.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305035181 9083 80.91.229.12 (10 May 2011 13:46:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 13:46:21 +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:46:17 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 1QJnGO-0007gl-2U for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2011 15:46:12 +0200 Original-Received: from localhost ([::1]:49128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJnGN-0005S1-6x for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2011 09:46:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJnGH-0005Rw-P8 for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJnGC-0006c4-28 for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:46:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJnGB-0006bv-SP for help-gnu-emacs@gnu.org; Tue, 10 May 2011 09:46:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJnG9-0007Tz-4U for help-gnu-emacs@gnu.org; Tue, 10 May 2011 15:45:57 +0200 Original-Received: from portable53.ceremade.dauphine.fr ([193.48.71.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2011 15:45:57 +0200 Original-Received: from antoine.levitt by portable53.ceremade.dauphine.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2011 15:45:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: portable53.ceremade.dauphine.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:80958 Archived-At: 10/05/11 15:31, sdn.gnuem@mailnull.com > I wanted to assign something to the C-, (control comma) key sequence. > My first attempt was: > > > > (local-set-key "\C-," 'some-function) Why don't people use "kbd" more? It translates user-friendly bindings to low-level representation. Here, you'd just use (local-set-key (kbd "C-,") 'some-function) or whatever gets reported by C-h k. No need to wander into the intricacies of emacs key system.