On Wed, Dec 03, 2008 at 11:43:04AM +0100, David Kastrup wrote:
> Plamen Tanovski <[EMAIL PROTECTED]> writes:
> 
> > TeX-find-balanced-brace doesn't work if there are unbalanced
> > parentheses or brackets in between, like \textit{1) test}
> >
> > The function should modify temporary the syntax table to do the pair
> > matching only for the braces. Unfortunately I have no idea how to
> > change temporary the syntax table. save-excursion doesn't restore it
> > afterwards.
> 
> with-syntax-table uses a different syntax table.  Restoring things that
> should only ever be temporarily changed can be done using unwind forms:

Thanks. Digging into tex.el I realized that TeX-find-balanced-brace
already uses with-syntax-table and also the function
TeX-search-syntax-table, which returns "a syntax table for searching
purposes." Also TeX-find-balanced-brace work nice and actually as
expecteted. I apologize for the noise. 

best regards

-- 
Plamen Tanovski
Prager Str. 125, 04317 Leipzig
Tel. (03 41) 3 08 57 60


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

Reply via email to