From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.emacs.devel Subject: define key with "\s-" super modifier in string? Date: Wed, 07 Dec 2005 20:27:47 +0100 Organization: lilypond-design.com Message-ID: <874q5kr9l8.fsf@peder.flower> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133985372 7090 80.91.229.2 (7 Dec 2005 19:56:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 19:56:12 +0000 (UTC) Cc: epronk@muftor.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 20:56:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ek5LU-0007yi-7P for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 20:52:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ek5Lj-0002oh-1R for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 14:53:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ek4xW-0002dX-OL for emacs-devel@gnu.org; Wed, 07 Dec 2005 14:28:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ek4xT-0002bK-1h for emacs-devel@gnu.org; Wed, 07 Dec 2005 14:28:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ek4xS-0002b9-Pl for emacs-devel@gnu.org; Wed, 07 Dec 2005 14:28:06 -0500 Original-Received: from [194.109.24.29] (helo=smtp-vbr9.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ek4yL-00055n-QB for emacs-devel@gnu.org; Wed, 07 Dec 2005 14:29:02 -0500 Original-Received: from peder.flower (appel.xs4all.nl [80.126.34.178]) by smtp-vbr9.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB7JRmED080229; Wed, 7 Dec 2005 20:27:49 +0100 (CET) (envelope-from janneke@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=peder.flower) by peder.flower with esmtp (Exim 4.54) id 1Ek4x9-0004oc-SO; Wed, 07 Dec 2005 20:27:47 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by XS4ALL Virus Scanner 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:47151 Archived-At: With CVS emacs, I get (global-set-key "\s-n" 'compile) Debugger entered--Lisp error: (error "Key sequence SPC - n uses invalid prefix characters") ... Is this a bug? I can understand what sort of thing happens, and (global-set-key [?\s-n] 'compile) works, but it isn't very friendly eps. as the documentation has examples using strings, eg (global-set-key "\C-z" 'shell) The documentation mentions exceptions, but does not include \s When the key sequence includes function keys or mouse button events, or non-ASCII characters such as `C-=' or `H-a', you must use the more general method of rebinding, which uses a vector to specify the key sequence. Jan. -- Jan Nieuwenhuizen | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org