From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: minibuffer and current-local-map Date: Thu, 08 Nov 2007 08:20:54 +0100 Message-ID: <873avh2ofd.fsf@escher.local.home> References: <877ikuyq5y.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194506493 19868 80.91.229.12 (8 Nov 2007 07:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2007 07:21:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 08 08:21:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iq1ho-0004e3-OD for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 08:21:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq1hd-00006W-7s for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 02:21:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq1ha-0008Vw-26 for emacs-devel@gnu.org; Thu, 08 Nov 2007 02:21:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq1hV-0008TT-Ob for emacs-devel@gnu.org; Thu, 08 Nov 2007 02:21:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq1hV-0008TQ-IM for emacs-devel@gnu.org; Thu, 08 Nov 2007 02:21:17 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iq1hV-0001hx-3a for emacs-devel@gnu.org; Thu, 08 Nov 2007 02:21:17 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iq1hJ-0002ph-Mj for emacs-devel@gnu.org; Thu, 08 Nov 2007 07:21:05 +0000 Original-Received: from 87.123.201.0 ([87.123.201.0]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2007 07:21:05 +0000 Original-Received: from Stephen.Berman by 87.123.201.0 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2007 07:21:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 87.123.201.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:82793 Archived-At: On Wed, 07 Nov 2007 23:42:33 -0500 Richard Stallman wrote: > The value returned by current-local-map for the minibuffer > > Inside which command? What function was used to invoke the > minibuffer? What map did it specify? I noticed this after typing `M-x', thus activating the minibuffer, and there typing C-down-mouse-3, popping up the confusing context menu seen in the screen shots attached to my OP. C-down-mouse-3 invokes mouse-popup-menubar-stuff, which calls mouse-major-mode-menu, which calls current-local-map. > seems to be > wrong (both in the trunk and in Emacs 22.1), containing partial > reduplication: > > Is the duplication present in the map that was passed as an argument > for use in the minibuffer? I'm not sure what you mean by "passed as an argument" here. I saw the value of current-local-map that I posted when I stepped through mouse-major-mode-menu with edebug. I also got this value by doing the following (is step 4 an instance of passing the map as an argument for use in the minibuffer?): 1. emacs -Q 2. M-: (setq enable-recursive-minibuffers t) RET 3. M-x 4. M-: (current-local-map) RET Steve Berman