From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: PHP mode and mmm-mode Date: Tue, 02 May 2006 23:43:10 -0400 Message-ID: <87wtd3epz4.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146627812 19517 80.91.229.2 (3 May 2006 03:43:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 03:43:32 +0000 (UTC) Cc: Lennart Borgman , Michael Shulman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 03 05:43:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fb8Gs-0004ml-7n for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 05:43:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb8Gr-0007Z1-QZ for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 23:43:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fb8Gg-0007Ym-7U for emacs-devel@gnu.org; Tue, 02 May 2006 23:43:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fb8Gd-0007Ya-Tk for emacs-devel@gnu.org; Tue, 02 May 2006 23:43:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb8Gd-0007YX-O8 for emacs-devel@gnu.org; Tue, 02 May 2006 23:43:11 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fb8Gv-0004AG-VM for emacs-devel@gnu.org; Tue, 02 May 2006 23:43:30 -0400 Original-Received: from alfajor ([70.55.146.223]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060503034310.KSWX20622.tomts10-srv.bellnexxia.net@alfajor>; Tue, 2 May 2006 23:43:10 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 84E90D734F; Tue, 2 May 2006 23:43:10 -0400 (EDT) Original-To: Lars Magne Ingebrigtsen In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 02 May 2006 22:29:04 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53832 Archived-At: > Well, that's to be expected, but if a convention for telling modes > what regions belongs to what modes, then these things can be fixed in > the relevant major modes. > We're not talking about hundreds of modes, either -- the number of > modes where mixing types is likely is probably pretty low. Say > 10 to 20. Even if that's not true, it's not a problem: there is simply no other way to to fix each mode one by one anyway, and every mode that's adjusted is a step forward. > I just had a gross idea. Before calling any of the major-mode > functions (in response to, say, `TAB'), you'd make all the text that's > not in the current major mode invisible and intangible. Then each > major mode function would believe there was nothing but its own type > of text in the buffer. I'd rather play with syntax-tables to mark them as comments. Or use narrowing (together with some convention for how to transfer parse-state-info from one chunk to another). The `intangible' property is just extremely difficult to live with. Stefan