opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 19 June 2012 • 6:39PM -0400

Re: web-mode.el
by Lennart Borgman

REPLY TO AUTHOR
 
REPLY TO GROUP




On Tue, Jun 19, 2012 at 5:09 AM, Stefan Monnier
<monnier@iro....> wrote:
>
>> It occurs to me that, once the supported interface is established,
>> introducing new syntax-table value becomes not strictly necessary because,
>> for example, a version of Lennart's `with-chunks' macro can be implemented
>> in Lisp by applying whitespace or comment-starter/ender syntax to foreign
>> chunks around the body calls (idea from mmm-noweb).
>> Is that right?
>
> That's right as long as you're willing to dynamically modify the buffer
> (with syntax-table text-properties) every time you move from one chunk
> to another.
>
> If you have many chunks, that can be a problem.

My idea with (with-chunks chunk-table ...) that chunk-table contains
this information instead. Then it can be cashed by the multi major
mode framework.


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.