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

Re: [PATCH] Implement draft highlighting using jit-lock-mode.



> This uses Emacs' 21 native highlighting mechanism, and is enabled
> by default if available.  Unlike the timer code, it avoids highlighting
> the parts of the buffer that are not currently visible.

The timer code doesn't highlight the parts of the buffer because of
wl-highlight-message's restriction.  wl-highlight-message function
needs to highlight the whole body at a time for the correct
highlighting.  Even if you use jit-lock-mode, the same problem would
occur.

Please try input a message has multi citation depths by hand under
your jit-lock-mode patch.

> > > For expample, 
> > When you input this text as is into draft buffer by hand,
> all cited text has the same face.
> > > > Try C-l (wl-draft-highlight-and-recenter) after inputs.

You would need the new highlighting algorithm which could highlight
the part of buffer correctly.

-- 
Kazuhiro Ito