Hi, many thanks for your patience, and I hope all this is not due to some mistake I am making. In any case, the first expression leads to the point moving to the end of the second \citep, while the second expression moves the point to the end of the first \citep. In both cases I run a bare emacs using /Applications/Emacs.app/Contents/MacOS/Emacs -Q ~/test.tex thanks again, E
On Sun, Nov 10, 2013 at 2:00 PM, Ralf Angeli <[email protected]> wrote: > * emacs user (2013-11-09) writes: > > > closing brace of the second one > > Strange. > > I've stripped some stuff from the code which should not be relevant for > the case at hand. Does the following code also make point end up behind > the second closing brace? > > (re-search-forward "\\\\cite[A-Za-z]*\\(\\[.*\\]\\)?{[^}]*}" nil t) > > And does the following statement lead to a different result? > > (re-search-forward "\\\\cite[A-Za-z]*\\(\\[[^]]*\\]\\)*{[^}]*}" nil t) > > -- > Ralf >
_______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
