[Top][All Lists]

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

Re: [AUCTeX] Bug: TeX-find-balanced-brace

From: Plamen Tanovski
Subject: Re: [AUCTeX] Bug: TeX-find-balanced-brace
Date: Wed, 3 Dec 2008 14:31:16 +0100
User-agent: Mutt/1.5.14 (2007-02-12)

On Wed, Dec 03, 2008 at 11:43:04AM +0100, David Kastrup wrote:
> Plamen Tanovski <address@hidden> 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

reply via email to

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