emacs-devel
[Top][All Lists]
Advanced

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

Re: Why js2-mode in Emacs 23.2?


From: Daniel Colascione
Subject: Re: Why js2-mode in Emacs 23.2?
Date: Sun, 9 Aug 2009 20:06:56 -0400

On Aug 9, 2009, at 8:00 PM, Lennart Borgman wrote:
On Mon, Aug 10, 2009 at 1:58 AM, Daniel Colascione<address@hidden > wrote:

 ;; Important to fontify the whole buffer syntactically!

Ah, yes, that was what broke it in mumamo. Could you please find a way
to fix this? There a different levels of fontification in JIT-lock
that probably can help.

It's not really JIT-lock's fault. It's that regular expressions are not stringified until they're seen by JIT-lock. Instead of using syntactic-keywords to mark regular expressions, we could scan the buffer manually. But that would cause exactly the same problems that the fontificaton call would, if I understand correctly.

Is there another way to solve the problem? Can mumamo tell espresso to ignore certain parts of the buffer?

Other things to look for are of course key bindings and using
define-derived-mode. (And probably more that I have forgotten.)

Keybindings are standard, IIRC. espresso-mode does override the normal tag binding, but it implements the same functionality in a different way. That sort of keybinding is explicitly allowed.

As for define-derived-mode: nope, espresso-mode doesn't use that.




reply via email to

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