From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel Subject: Re: PHP mode and mmm-mode Date: Wed, 03 May 2006 05:11:29 +0200 Organization: disorganized Message-ID: <87mzdz6bvi.fsf@robotron.kosmorama> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146626590 17324 80.91.229.2 (3 May 2006 03:23:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 03:23:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 03 05:23:08 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 1Fb7x9-0002m6-HW for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 05:23:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb7x9-0001GT-17 for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 23:23:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fb7wx-0001GO-UW for emacs-devel@gnu.org; Tue, 02 May 2006 23:22:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fb7wv-0001GC-JC for emacs-devel@gnu.org; Tue, 02 May 2006 23:22:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fb7wv-0001G9-D9 for emacs-devel@gnu.org; Tue, 02 May 2006 23:22:49 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fb7xD-0002LN-BG for emacs-devel@gnu.org; Tue, 02 May 2006 23:23:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fb7wn-0002jX-Uo for emacs-devel@gnu.org; Wed, 03 May 2006 05:22:41 +0200 Original-Received: from e178007041.adsl.alicedsl.de ([85.178.7.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 05:22:41 +0200 Original-Received: from david.hansen by e178007041.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 May 2006 05:22:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178007041.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:IwQp8PwxON+pO53dWKqdDJE6OJc= 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:53831 Archived-At: On Tue, 02 May 2006 22:29:04 +0200 Lars Magne Ingebrigtsen wrote: > I think using narrowing and auxiliary buffers would both be less than > optimal. When you program, you need to see the context. Have a look at Dave Loves multi-mode.el: http://www.loveshack.ukfsn.org/emacs/multi-mode.el It uses indirect buffers and only narrows to region for indentation or font-lock code. You always see the whole buffer. It's far away from being perfect but at least indentation within one region works well. Though it can't deal with mixed code like <% if (a) { %>

blah

<% // cc-mode thinks this is a top level funcall // and will indent it to `point-at-bol' foo (); } %> David