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: narrow-to-here-document Date: Thu, 03 Jul 2003 20:32:43 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307040032.h640WhKL015234@rum.cs.yale.edu> References: <20030620141028.GA1331@math.berkeley.edu> <20030621.012632.74543482.jet@gyve.org> <3EF73468.1030503@yahoo.com> <84r85cw0rk.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057278984 14728 80.91.224.249 (4 Jul 2003 00:36:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2003 00:36:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 04 02:36:22 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 19YEYo-0003pP-00 for ; Fri, 04 Jul 2003 02:36:22 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19YEgy-0000tz-00 for ; Fri, 04 Jul 2003 02:44:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YEWe-0004hW-Mu for emacs-devel@quimby.gnus.org; Thu, 03 Jul 2003 20:34:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19YEVm-0004Q7-4c for emacs-devel@gnu.org; Thu, 03 Jul 2003 20:33:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19YEVb-00041q-7S for emacs-devel@gnu.org; Thu, 03 Jul 2003 20:33:03 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YEVI-0003eW-HC; Thu, 03 Jul 2003 20:32:44 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h640WhHl015236; Thu, 3 Jul 2003 20:32:43 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h640WhKL015234; Thu, 3 Jul 2003 20:32:43 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: mmm-mode-discuss@lists.sourceforge.net 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:15358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15358 > The idea I had recently was to create an indirect buffer for each mode > that we want to use in the buffer, and then have a way of saying > "temporarily select the bindings of indirect buffer FOO for this > buffer". That way, each mode could have its own set of local bindings, > and Emacs would switch between sets. > > The switching could be done under the control of a text property, or > explicitly by post-command-hook. That's pretty much what mmm-mode does already, except that it doesn't use indirect buffers to store the various contexts (it just stores them in plain variables, using `buffer-local-variables' and things like that). I think we need feedback from the mmm-mode people before making any decision on such an issue. I haven't looked at mmm-mode recently, but it used to try and deal with font-lock, indentation and stuff like that. I'd actually expect them to need/want ad-hoc support from font-lock.el (for example) but haven't heard anything (maybe they complain about such things in their own .el files rather than here). Stefan