[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Implement draft highlighting using jit-lock-mode.
- To: Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
- Subject: Re: [PATCH] Implement draft highlighting using jit-lock-mode.
- From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
- Date: Wed, 07 May 2014 17:50:56 +0900
- Cc: David Maus <dmaus@ictsoc.de>, Wanderlust ML (English) <wl-en@ml.gentei.org>
- In-reply-to: <1399415803-6396-1-git-send-email-jch@pps.univ-paris-diderot.fr>
- References: <1399415803-6396-1-git-send-email-jch@pps.univ-paris-diderot.fr>
- Reply-to: wl-en@ml.gentei.org
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.4.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO)
> 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