unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
Subject: Re: PHP mode and mmm-mode
Date: Wed, 03 May 2006 05:11:29 +0200	[thread overview]
Message-ID: <87mzdz6bvi.fsf@robotron.kosmorama> (raw)
In-Reply-To: m3iroo5fxr.fsf@quimbies.gnus.org

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) {
%>
  <h3>blah</h3>
<%
  // cc-mode thinks this is a top level funcall
  // and will indent it to `point-at-bol'
  foo ();
}
%>

David

  parent reply	other threads:[~2006-05-03  3:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-02  4:24 PHP mode and mmm-mode Michael Shulman
2006-05-02  8:10 ` martin rudalics
2006-05-02 14:57 ` Stefan Monnier
2006-05-02 20:29 ` Lars Magne Ingebrigtsen
2006-05-02 23:44   ` Nic
2006-05-03  3:11   ` David Hansen [this message]
2006-05-03  3:43   ` Stefan Monnier
2007-01-01  2:11   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mzdz6bvi.fsf@robotron.kosmorama \
    --to=david.hansen@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).