From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Re: bug/feature - emacs doesn't tell you about keys with multiple prefixes Date: Sun, 16 Mar 2003 23:52:15 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <15932.56789.564317.739477@hkn.eecs.berkeley.edu> <200303161014.h2GAE90Q009917@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1047876812 9345 80.91.224.249 (17 Mar 2003 04:53:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2003 04:53:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Mar 17 05:53:29 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18umcr-0002QN-00 for ; Mon, 17 Mar 2003 05:53:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18un2M-0000F5-00 for ; Mon, 17 Mar 2003 06:19:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18umct-00007a-02 for emacs-devel@quimby.gnus.org; Sun, 16 Mar 2003 23:53:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18umcb-00005v-00 for emacs-devel@gnu.org; Sun, 16 Mar 2003 23:53:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18umbu-0008Oi-00 for emacs-devel@gnu.org; Sun, 16 Mar 2003 23:52:31 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18umbg-0008LA-00 for emacs-devel@gnu.org; Sun, 16 Mar 2003 23:52:16 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18umbf-0003vw-00; Sun, 16 Mar 2003 23:52:15 -0500 Original-To: "Stefan Monnier" In-reply-to: <200303161014.h2GAE90Q009917@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Original-cc: quarl@hkn.eecs.berkeley.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12394 In accessible-keymaps (used by where-is-internal), there is an explicit check to remove any duplicate keymaps (i.e. the same keymap appearing under another prefix). I don't remember the reason for this. Perhaps the idea was that it is supposed to tell you all the keymaps, not all the prefixes. Preventing cycles is also necessary. There could be an optional 3rd arg ALLOW-DUPLICATES which, if non-nil, means that it only rejects actual cycles (where the prefix already recorded for the same keymap is an initial segment of the new prefix).