From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: define key with "\s-" super modifier in string? Date: Wed, 07 Dec 2005 23:54:01 -0500 Message-ID: References: <874q5kr9l8.fsf@peder.flower> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134017867 940 80.91.229.2 (8 Dec 2005 04:57:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 04:57:47 +0000 (UTC) Cc: epronk@muftor.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 08 05:57:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkDqL-000362-Nc for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 05:57:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkDqc-0007E7-FA for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2005 23:57:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkDo1-0006C9-M6 for emacs-devel@gnu.org; Wed, 07 Dec 2005 23:54:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkDo0-0006BV-F3 for emacs-devel@gnu.org; Wed, 07 Dec 2005 23:54:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkDo0-0006BK-7E for emacs-devel@gnu.org; Wed, 07 Dec 2005 23:54:56 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkDoy-0005qx-1z for emacs-devel@gnu.org; Wed, 07 Dec 2005 23:55:56 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EkDn7-00041U-Ne; Wed, 07 Dec 2005 23:54:01 -0500 Original-To: Jan Nieuwenhuizen In-reply-to: <874q5kr9l8.fsf@peder.flower> (message from Jan Nieuwenhuizen on Wed, 07 Dec 2005 20:27:47 +0100) 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:47205 Archived-At: (global-set-key "\s-n" 'compile) Debugger entered--Lisp error: (error "Key sequence SPC - n uses invalid prefix characters") ... Is this a bug? It is correct to signal an error, because you can't put a super-char in a string. Maybe the error message should say that more specifically. works, but it isn't very friendly eps. as the documentation has examples using strings, eg (global-set-key "\C-z" 'shell) The manual explains using vectors for this. Would you please be more precise than "the documentation"? Where precisely are you talking about? 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. It does not say this is a complete list of non-ASCII characters, so why are you surprised that there are others?