* 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.

-- 
Ralf


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to