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: narrow-to-here-document Date: Tue, 01 Jul 2003 11:17:09 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030620141028.GA1331@math.berkeley.edu> <20030621.012632.74543482.jet@gyve.org> <3EF73468.1030503@yahoo.com> <20030625.151015.68035851.jet@gyve.org> <84r85cw0rk.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1057073430 26434 80.91.224.249 (1 Jul 2003 15:30:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2003 15:30:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 01 17:30:28 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 19XN39-0006fv-00 for ; Tue, 01 Jul 2003 17:28:07 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19XNA9-0004oL-00 for ; Tue, 01 Jul 2003 17:35:21 +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 19XN3C-0007Rb-9B for emacs-devel@quimby.gnus.org; Tue, 01 Jul 2003 11:28:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19XMvN-000579-AE for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:20:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19XMvB-0004x9-DB for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:19:54 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19XMsX-0003Bf-DD for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:17:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19XMsX-0003Zv-2c; Tue, 01 Jul 2003 11:17:09 -0400 Original-To: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) In-reply-to: <84r85cw0rk.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@gmx.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:15333 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15333 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. You can think of this as themes for local variable values.