[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple major modes

From: Lennart Borgman (gmail)
Subject: Re: Multiple major modes
Date: Tue, 12 Jun 2007 20:48:17 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070326 Thunderbird/ Mnenhy/

Stefan Monnier wrote:
Multiple major mode support is a separate issue from nxml,

100% agreement, obviously.

Of course. I just thought it was a good time to mention it.

and something that should be addressed without imposing restrictions on
specialized major modes.

Actually, I think that in order to address it well, we will need to impose
restrictions on major modes (though only on the ones involved in
multiple-major-mode buffers) and maybe also on minor modes.

I think so to. I have seen some areas where some form of coherence is necessary:

- fontification
- indentation
- parsing

I think nxml-mode is a very good candidate for those that can be used in a multiple-major-mode buffers, since a mix of for example XHTML and PHP is common.

This might seem impossible, since such code could not be valid XHTML. Actually it is not, the rng parser used in nxhtml-mode is quite good on guessing an apropriate state for completion. (But do not ask me what the rng parser does, I do not understand it.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]