Subject: bug#41442: 26.3; `forward-sexp' in LaTeX mode

From: Drew Adams <[email-masked]>
Date: Thu, 21 May 2020 13:38:42 -0700 (PDT)

Dunno whether this is a bug (haven't used LaTeX in 30 years).

See https://emacs.stackexchange.com/q/58644/105

Seems like `forward-sexp', with cursor before the `{', should move past
the `}'.  Instead, it takes account of parens in between: if they are
balanced then it moves to the `}'.  Else it moves to a `)' that seems to
balance the `{'.

In LaTeX does it ever really make sense for `)' to balance `{'?
If not, then I think we have a bug.  Hopefully someone familiar with
LaTeX will be able to judge.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''