From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Don March Newsgroups: gmane.emacs.bugs Subject: bug#7541: 24.0.50; define-key error message for non-prefix M-[char] Date: Sun, 3 Jul 2011 12:24:03 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309711273 7065 80.91.229.12 (3 Jul 2011 16:41:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 16:41:13 +0000 (UTC) Cc: 7541@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 03 18:41:04 2011 Return-path: Envelope-to: geb-bug-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 1QdPjE-0002kN-FZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 18:41:04 +0200 Original-Received: from localhost ([::1]:34959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPjD-0003e9-6X for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 12:41:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPTo-0008Rj-EG for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:25:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdPTi-0005ZF-No for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:25:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdPTi-0005Z9-6n for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdPTh-0004V0-Ou; Sun, 03 Jul 2011 12:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Don March Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2011 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 7541-submit@debbugs.gnu.org id=B7541.130971027417261 (code B ref 7541); Sun, 03 Jul 2011 16:25:01 +0000 Original-Received: (at 7541) by debbugs.gnu.org; 3 Jul 2011 16:24:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdPTG-0004UL-0t for submit@debbugs.gnu.org; Sun, 03 Jul 2011 12:24:34 -0400 Original-Received: from cl38.gs01.gridserver.com ([64.13.192.47]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdPTC-0004U4-UV for 7541@debbugs.gnu.org; Sun, 03 Jul 2011 12:24:32 -0400 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]:50782) by cl38.gs01.gridserver.com with esmtpsa (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.69) (envelope-from ) id 1QdPT6-0001Qd-40 for 7541@debbugs.gnu.org; Sun, 03 Jul 2011 09:24:25 -0700 Original-Received: by iye7 with SMTP id 7so4011731iye.3 for <7541@debbugs.gnu.org>; Sun, 03 Jul 2011 09:24:23 -0700 (PDT) Original-Received: by 10.42.5.132 with SMTP id 4mr435015icw.361.1309710263043; Sun, 03 Jul 2011 09:24:23 -0700 (PDT) Original-Received: by 10.42.174.3 with HTTP; Sun, 3 Jul 2011 09:24:03 -0700 (PDT) In-Reply-To: X-Authenticated-User: 14129 don@ohspite.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Jul 2011 12:25:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47845 Archived-At: I just sent an email to assign@gnu.org. I'll report back when the process is complete. On Sun, Jul 3, 2011 at 9:39 AM, Lars Magne Ingebrigtsen wr= ote: > Don March writes: > >> Typing and evaluating the following code in the scratch >> buffer results in an (appropriate) error, but with an incorrect >> message: >> >> (setq new-kmap (make-sparse-keymap)) >> (define-key new-kmap [?a 27] 'command) >> (define-key new-kmap [?a ?\M-x] 'command) >> ;; Debugger entered--Lisp error: >> ;; =A0 (error "Key sequence a M-x starts with non-prefix key a") >> ;; (should be: >> ;; =A0 =A0 =A0 =A0 =A0"Key sequence a M-x starts with non-prefix key a E= SC") >> >> The code in keymap.c loops over the characters in the key sequence and >> says to report everything before the current character as the >> non-prefix key. =A0But that misses the case when M-x is converted into >> [27 ?x] and it's the `27' part that causes the error. > > Your patch for this bug looks correct, but it's more than 10 lines long, > so the FSF needs copyright assignment papers for the code. > > Do you have such paperwork on file with the FSF? > > -- > (domestic pets only, the antidote for overdose, milk.) > =A0bloggy blog http://lars.ingebrigtsen.no/ >