From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Enhancements to "minor-mode-map-alist" functionality. Date: 13 Apr 2002 00:08:38 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xd6x4o9i1.fsf@kfs2.cua.dk> References: <5xbscpg7zl.fsf@kfs2.cua.dk> <200204112243.g3BMhmI01190@rum.cs.yale.edu> <5xd6x5i7ps.fsf@kfs2.cua.dk> <200204121820.g3CIKkA16739@rum.cs.yale.edu> <5xy9fsocfg.fsf@kfs2.cua.dk> <200204122030.g3CKU8P17707@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018645769 10103 127.0.0.1 (12 Apr 2002 21:09:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 21:09:29 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16w8IT-0002cj-00 for ; Fri, 12 Apr 2002 23:09:29 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16w8Yt-0001xW-00 for ; Fri, 12 Apr 2002 23:26:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16w8IA-00065g-00; Fri, 12 Apr 2002 17:09:10 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16w8Gr-00061M-00 for ; Fri, 12 Apr 2002 17:07:49 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 827647C047; Fri, 12 Apr 2002 21:07:47 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200204122030.g3CKU8P17707@rum.cs.yale.edu> Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2603 "Stefan Monnier" writes: > > But I still think the use of the minor-mode-overriding-map-alist for > > this purpose is pretty obscure (although I suspect that is the > > purpose for which it was invented...) > > I still think it's the best solution so far. > Better than a `keymap' text-property (help-follow also works on non-buttons > and I care about it, since I wrote the code for it ;-). What you want to accomplish is that RET runs help-follow in a help buffer. But view-mode [accidentally] has a binding for RET which shadows the help buffer's local binding of RET. Now, using the minor-mode-overriding-map-alist fixes this, but the reason I think it is obscure is that it explicitly has to mention which minor-mode is obscuring its binding... But after having discussed this with you, I now believe that the minor-mode-overriding-map-alist *is* the proper way to deal with this situation, since other minor modes may also [temporarily] rebind RET for valid reasons, so it is the view-mode binding which must be specifically overridden. As always, I appreciate the education. Thanks! -- Kim F. Storm http://www.cua.dk