From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Better parse-partial-sexp; multiple major modes (was: Idea for syntax-ppss) Date: Mon, 01 Sep 2008 02:10:51 -0400 Message-ID: References: <20080726214429.GB3623@muc.de> <20080727145058.GA1598@muc.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1220249569 31726 80.91.229.12 (1 Sep 2008 06:12:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 06:12:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 01 08:13:43 2008 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 1Ka2fP-00035p-VW for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 08:13:36 +0200 Original-Received: from localhost ([127.0.0.1]:35087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka2eR-0002Xs-04 for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 02:12:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ka2eL-0002Xj-LK for emacs-devel@gnu.org; Mon, 01 Sep 2008 02:12:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka2eJ-0002XJ-Cb for emacs-devel@gnu.org; Mon, 01 Sep 2008 02:12:28 -0400 Original-Received: from [199.232.76.173] (port=42123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka2eJ-0002XF-92 for emacs-devel@gnu.org; Mon, 01 Sep 2008 02:12:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44371) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ka2eJ-0004dU-Ed for emacs-devel@gnu.org; Mon, 01 Sep 2008 02:12:27 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Ka2cl-000592-JM; Mon, 01 Sep 2008 02:10:51 -0400 In-reply-to: (message from Daniel Colascione on Sun, 31 Aug 2008 04:37:53 -0400) 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:103356 Archived-At: Maybe a core solution could be something like this: in a given buffer, each character has a chunk-name character property. You'd buffer- locally map chunk names to major modes. For each chunk name, create a buffer containing just the text assigned to that chunk. That is elegant but very expensive. Making so many buffers display as one buffer, or keeping them in sync, would mean major changes at a low level. Even coming up with a spec for how insertion and deletion should work in such a scheme is hard. We are much better off with MuMaMo.