[Top][All Lists]

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

Re: /srv/bzr/emacs/trunk r101338:*lisp/emacs-lisp/syntax.el(syntax-ppss)

From: Dmitry Gutov
Subject: Re: /srv/bzr/emacs/trunk r101338:*lisp/emacs-lisp/syntax.el(syntax-ppss): More sanity check to catchtch
Date: Sun, 16 Feb 2014 03:52:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 14.02.2014 17:38, E Sabof wrote:
For org-mode, org-babel would be the proper place to handle the chunk
boundaries, I believe.

Not sure how they handle it. But fontification is the only thing that is 

They probably use a similar approach to mmm-mode and haml-mode: define a fontify-region-function that calls each subregion function's in turn.

How would html-mode know about js and css? Or, more generally, how would
Emacs know about *new* modes and their delimiters that need to be handled?

The "parent" mode gives emacs a "child" region, and tells it which mode to use 
in it.

In other words, the parent mode suddenly has to become multiple-mode aware. So html-mode, for example, wouldn't be suitable anymore.

And if we want to make the multiple-mode functionality somehow reusable, extracting it to some common framework might be in order. You see where this is going.

reply via email to

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