From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Enhancements to "minor-mode-map-alist" functionality. Date: Fri, 12 Apr 2002 14:46:34 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200204121846.g3CIkZY16909@rum.cs.yale.edu> References: <5xbscpg7zl.fsf@kfs2.cua.dk> <200204112243.g3BMhmI01190@rum.cs.yale.edu> <5xd6x5i7ps.fsf@kfs2.cua.dk> <5x4rih12b2.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018637307 26812 127.0.0.1 (12 Apr 2002 18:48:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 18:48:27 +0000 (UTC) Cc: "Stefan Monnier" , 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 16w65y-0006yL-00 for ; Fri, 12 Apr 2002 20:48:26 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16w6MM-0007Bj-00 for ; Fri, 12 Apr 2002 21:05:22 +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 16w65l-0003l1-00; Fri, 12 Apr 2002 14:48:13 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16w64C-0003gp-00 for ; Fri, 12 Apr 2002 14:46:36 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g3CIkZY16909; Fri, 12 Apr 2002 14:46:35 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: storm@cua.dk (Kim F. Storm) 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:2590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2590 > 2) A keymap may be nested with > > (keymap ... (keymap ...) ... (keymap ...) ...) > > The idea is that when we scan through a keymap (searching for a binding), > if we encounter a nested keymap, we will [recursively] scan that > keymap before continuing through the original keymap. I like this idea so much that I have implemented it already, but for the purpose of multiple inheritance and to get rid of the infamous fix_submap_inheritance ugliness. It requires several non-trivial changes, tho. And I haven't finished taking care of all the "problems" it introduces (not all of them need to be addressed right away: for example, it doesn't work for menus yet). > So doing this would remove the need for the emulation-mode-map-alists > (which you dislike :-) as well > > I can easily ensure that cua-mode-map stays at the beginning of > minor-mode-map-alist [will be simple in a post-command hook, or maybe > by adding it to minor-mode-overriding-map-alist :-) ] I don't understand. In what way is it easier ? It still seems like you need some kind of post-command-hook thingy. Stefan