]> git.eshelyaron.com Git - emacs.git/commit
Move over optional arguments in parentheses correctly
authorArash Esbati <arash@gnu.org>
Tue, 9 Apr 2024 12:08:17 +0000 (14:08 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 20:30:11 +0000 (22:30 +0200)
commit638659cee14046970d745b8cd645eb937fb1f8df
tree1b8cff04b5ddd595ff097b777bb7486d54cd54a8
parentdc65dbbde54d9700f4fcd0ed35ab88768b9d09c9
Move over optional arguments in parentheses correctly

* lisp/textmodes/reftex-parse.el (reftex-move-to-previous-arg):
Recognize ')' as closing delimiter for optional argument.
Fix docstring.
(reftex-what-macro): Identify LaTeX macros with optional arguments
in parentheses correctly.  This is necessary to make
`reftex-view-crossref' work with biblatex on entries like:
\parencites(Glob.Pre)(Glob.Post)[Pre][Post]{key1}[Pre][Post]{key2}
(bug#31132)

(cherry picked from commit 7236010d2e1d3525943bb50598d29061a4c25b58)
lisp/textmodes/reftex-parse.el