From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
Peter Heslin <pj@heslin.eclipse.co.uk>
Subject: Re: PHP mode in Emacs?
Date: Mon, 01 May 2006 16:58:55 +0200 [thread overview]
Message-ID: <4456222F.9030401@student.lu.se> (raw)
In-Reply-To: <m3mze2rmxf.fsf@quimbies.gnus.org>
Lars Magne Ingebrigtsen wrote:
> Richard Stallman <rms@gnu.org> writes:
>
>
>> I do not know PHP. All I can say is that I would welcome addition of
>> a good PHP mode.
>>
>
> Has the inclusion of mmm-mode (written by Michael Shulman and others)
> been discussed previously? It looks like the approach taken to this
> problem (multi-mode programming languages) is promising.
>
I do not know whether it has been discussed, but it seems to me there
are currently unfortunately problems with this approach. I believe a
number of things have to be addressed in Emacs before something like
mm-mode can work for all modes. But I am not sure, it is quite complex.
Below are however my thoughts about it.
I think the idea of having different modes in different regions in a
buffer is very good. So I tried it with nxml-mode (actually
nxhtml-mode), but without any real success. Dean Scarff says he had some
success, but still problems with that nxml-mode re-fontifies region that
has another submode (see
http://www.emacswiki.org/cgi-bin/wiki/NxmlModeForXHTML). This is also
what I found.
I can really see no way to stop different modes from stomping at each
other with mmm-mode. And I can not see that it is possible to do that
with Emacs (even the CVS version) today. To do that there must be some
way to tell a mode only to care about a region or a list of regions and
I can not see how to do that now. (Maybe some more things are required,
but this is a minimum.)
For the moment I would therefore suggest either html-script.el or
html-inlined.el. They use narrowing and changes the buffers major mode
temporarily during narrowing.
For the future I would sugges investigating ways to do what mm-mode
tries to do.
next prev parent reply other threads:[~2006-05-01 14:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-30 14:30 PHP mode in Emacs? Lars Magne Ingebrigtsen
2006-04-30 14:37 ` Nic
2006-04-30 14:49 ` Lars Magne Ingebrigtsen
2006-04-30 15:04 ` Stefan Monnier
2006-04-30 15:14 ` Lars Magne Ingebrigtsen
2006-04-30 15:47 ` Stefan Monnier
2006-04-30 20:54 ` Richard Stallman
2006-05-01 11:42 ` Lars Magne Ingebrigtsen
2006-05-01 14:58 ` Lennart Borgman [this message]
2006-05-01 16:17 ` Stefan Monnier
2006-05-01 16:36 ` Lennart Borgman
2006-05-01 16:51 ` Lars Magne Ingebrigtsen
2006-05-01 17:38 ` Stefan Monnier
2006-05-01 20:22 ` Lennart Borgman
2006-05-02 6:48 ` Gian Uberto Lauri
2006-05-02 2:04 ` Richard Stallman
2006-05-01 17:29 ` Edward O'Connor
2006-05-01 18:52 ` Stefan Monnier
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=4456222F.9030401@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=larsi@gnus.org \
--cc=pj@heslin.eclipse.co.uk \
/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).