- Subject: Re: [RFC/RFT] format_paragraph for JLM
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Tue, 9 Sep 2008 13:32:35 +0000 (UTC)
Hallo G.,
"G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On 9.09.08, Jörg Sommer wrote:
>> "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
>> > On 6.09.08, Jörg Sommer wrote:
>> >
>> And I have the problem that I need to know some informations about the
>> environment. Determining them for every line in indent_hook is
>> expensive.
>
> The parse_to_point() internal function is fast.
But it's to simple for TeX: {\{} or [foo={]}] or {\verb+}+} or ranges in
math ]-\infty,0] or [0,\infty). The same holds for $ and I had problems
mixing dollar and comments, i.e. defining $ as begin of strings and
wringing $% the comment is not recognized. But the most time, I'm
searching for \begin and \end to find the environment where the editing
point is in.
> Some caching in the indent_hook might help, if getting the remaining
> info is still too slow.
Do you use caching anywhere? How do you detect and handle changes?
Schöne Grüße, Jörg.
--
“Computer games don't affect kids. If Pacman would have affected us as
children, we would now run around in darkened rooms, munching yellow
pills and listening to repetetive music.”
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2008 date index]
[2008 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]