From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Is it possible to bind "C-)" in emacs23? Date: Thu, 01 Oct 2009 22:08:33 +0200 Message-ID: <87bpkq5132.fsf@thinkpad.tsdh.de> References: <6e86d656-84e6-4d30-8f2c-a4f061eed5fd@g31g2000yqc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254427771 25436 80.91.229.12 (1 Oct 2009 20:09:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 20:09:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 22:09:24 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtRxs-00046O-3P for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 22:09:24 +0200 Original-Received: from localhost ([127.0.0.1]:45428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtRxr-0008BJ-Fg for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 16:09:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtRxO-0008B7-3n for help-gnu-emacs@gnu.org; Thu, 01 Oct 2009 16:08:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtRxJ-00089f-R9 for help-gnu-emacs@gnu.org; Thu, 01 Oct 2009 16:08:53 -0400 Original-Received: from [199.232.76.173] (port=33699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtRxJ-00089b-6G for help-gnu-emacs@gnu.org; Thu, 01 Oct 2009 16:08:49 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58474) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtRxI-00009m-Oz for help-gnu-emacs@gnu.org; Thu, 01 Oct 2009 16:08:48 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MtRxG-0003sn-DY for help-gnu-emacs@gnu.org; Thu, 01 Oct 2009 22:08:46 +0200 Original-Received: from p54af2762.dip0.t-ipconnect.de ([84.175.39.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 22:08:46 +0200 Original-Received: from tassilo by p54af2762.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 22:08:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af2762.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:vC9qb3yyl95BfY+K1+8u0U9+cf8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68613 Archived-At: quodlibetor writes: > I would really like to bind C-). > > I've tried: (all of the following with both local- and global- set > key) > > (local-set-key "\C-)" 'foo) ;error, invalid modifier in string > "\C-\S-0" ;same > [C-)] ;unbalanced parenthesis. > [C-S-0] ; no error, but doesn't work > [C-(kbd (self-insert-command ")")] ;totally borked > [C-(kbd ")")] ; doesn't error, but really weird result That's the right syntax: (local-set-key (kbd "C-)") 'foo) Bye, Tassilo