[Top][All Lists]

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

Re: convert regex.c, strftime.c mktime.c to standard C

From: Lennart Borgman
Subject: Re: convert regex.c, strftime.c mktime.c to standard C
Date: Mon, 22 Nov 2010 17:59:23 +0100

On Mon, Nov 22, 2010 at 5:45 PM, Lars Magne Ingebrigtsen <address@hidden> wrote:
> If the new, gapless regex code is much faster than the old, gap-aware
> regex code, then this might be a net win.  Or not.

I have a question "in the opposite direction".

As you perhaps know I have written some code for multiple major modes
in a buffer, mumamo.el in nXhtml. Different chunks of the buffer have
different major modes. Some part of mumamo.el becomes quite complex
and is easily broken because it is hard to stop a major mode from
looking in chunks that are for other major modes.

Examples of this problem are parsers of all kinds that belongs to a
certain major mode.

This is quite hard to fix and I have been thinking about a low level
change where you could "hide" all the chunks has a different major
mode when the major mode in question for a parser etc.

Fixing the regexp code looked like something that could be
troublesome. Do you have any opinion about if this is doable and if it
would slow down the code very much when such a restriction as above
would be active?

reply via email to

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