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: M-g in dired Date: Thu, 03 Nov 2005 16:41:51 -0500 Message-ID: References: <873bnf36mr.fsf@jurta.org> <878xwap86u.fsf@jurta.org> <8764rcye8k.fsf@jurta.org> <877jbqmrbc.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1131054259 27608 80.91.229.2 (3 Nov 2005 21:44:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2005 21:44:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 03 22:44:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EXmrx-0002nt-2J for ged-emacs-devel@m.gmane.org; Thu, 03 Nov 2005 22:43:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXmrv-0007mX-AF for ged-emacs-devel@m.gmane.org; Thu, 03 Nov 2005 16:43:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EXmqK-0007OJ-Lx for emacs-devel@gnu.org; Thu, 03 Nov 2005 16:41:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EXmqJ-0007NF-0Q for emacs-devel@gnu.org; Thu, 03 Nov 2005 16:41:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXmqI-0007N7-P6 for emacs-devel@gnu.org; Thu, 03 Nov 2005 16:41:54 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EXmqI-0006e6-8n for emacs-devel@gnu.org; Thu, 03 Nov 2005 16:41:54 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EXmqF-00064o-5Z; Thu, 03 Nov 2005 16:41:51 -0500 Original-To: Juri Linkov In-reply-to: <877jbqmrbc.fsf@jurta.org> (message from Juri Linkov on Thu, 03 Nov 2005 09:48:54 +0200) 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:45370 Archived-At: But in dired-mode-map, where "C-x `" is undefined, lookup-key currently returns: (lookup-key dired-mode-map "\C-x") => nil (lookup-key dired-mode-map "\C-x`") => 1 The return value `1' of the last expression seems wrong. It is correct, because C-x ` is too long to be a valid key sequence. For the case of dired-mode-map where lookup-key returns 1 for "\C-x`", 1 is not a number of events at the front of "\C-x`" that compose a complete key, because "C-x" alone is not a valid key in dired-mode-map. Yes it is. Every one-character key is valid, always. So there is no bug in lookup-key. No need to consider changing it.