[Top][All Lists]

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

Re: [Bug-AUCTeX] 11.84; Font replacing doesn't work for unbalanced paren

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.84; Font replacing doesn't work for unbalanced parentheses.
Date: Tue, 06 Mar 2007 21:31:48 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

* Ikumi Keita (2007-03-06) writes:

>>>>>> Ralf Angeli writes:
>> The variable is not supposed to be used directly.  If a syntax table
>> for searching is required, the function `TeX-search-syntax-table'
>> should be used.  Working with only a single syntax was a deliberate
>> decision because syntax tables are quite large data structures and I
>> didn't want to waste memory by making that variable buffer-local or do
>> something similar.
> Sorry, I didn't give an example concrete enough.  Here is the detail.

Thanks, now I see what you mean.  I believe I fixed the bug in CVS.

>>> In addition, the way the function TeX-search-syntax-table treats the
>>> variable TeX-search-syntax-table does not seem good to me.  The function
>>> directly modifies the syntax table stored in the variable, so the
>>> modified table is shared between all the buffers.  For examle, the char
>>> `@' is given escape syntax in texinfo-mode buffer, which should be
>>> avoided in latex-mode buffer.
> In other words, the function TeX-search-syntax-table should initialize
> the variable every time if a single syntax table is to be shared between
> all the buffers of dirrerent modes.

Yes.  Currently this is done by cleaning entries which might have been
set before.


reply via email to

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