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: Sat, 05 Nov 2005 18:43:39 -0500 Message-ID: References: <873bnf36mr.fsf@jurta.org> <878xwap86u.fsf@jurta.org> <8764rcye8k.fsf@jurta.org> <877jbqmrbc.fsf@jurta.org> <87r79xzsl5.fsf-monnier+emacs@gnu.org> <87zmok96ry.fsf@jurta.org> <87pspfa8ig.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 1131234375 569 80.91.229.2 (5 Nov 2005 23:46:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2005 23:46:15 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 06 00:46:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYXjB-0006uK-94 for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2005 00:45:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYXjA-0008PU-QW for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 18:45:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYXhF-0007gI-Aw for emacs-devel@gnu.org; Sat, 05 Nov 2005 18:43:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYXhE-0007fy-Kv for emacs-devel@gnu.org; Sat, 05 Nov 2005 18:43:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYXhE-0007ft-F4 for emacs-devel@gnu.org; Sat, 05 Nov 2005 18:43:40 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYXhE-0002fz-MQ for emacs-devel@gnu.org; Sat, 05 Nov 2005 18:43:40 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EYXhD-0001ig-QF; Sat, 05 Nov 2005 18:43:39 -0500 Original-To: Juri Linkov In-reply-to: <87pspfa8ig.fsf@jurta.org> (message from Juri Linkov on Sat, 05 Nov 2005 09:55:35 +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:45485 Archived-At: `shadow_lookup' iterates over two maps (dired and global) and calls `Flookup_key' on them. When `Flookup_key' returns 1 for the key "M-gn" on the dired map, the loop in `shadow_lookup' skips it That's the place that has to be changed. When this call to `Flookup_key' returns a number N, `shadow_lookup' should look up a sub-key-sequence of the first N events. If that returns non-nil, the longer key is shadowed, so don't mention it at all. If that returns non-nil, the longer key is not shadowed. That avoids duplicating lots of code and avoids changing the calling convention of Flookup_key.