GNU bug report logs - #41442
26.3; `forward-sexp' in LaTeX mode

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Thu, 21 May 2020 20:39:01 UTC

Severity: minor

Tags: moreinfo

Found in version 26.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41442 in the body.
You can then email your comments to 41442 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#41442; Package emacs. (Thu, 21 May 2020 20:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 21 May 2020 20:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; `forward-sexp' in LaTeX mode
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''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41442; Package emacs. (Wed, 09 Dec 2020 13:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 41442 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 41442 <at> debbugs.gnu.org
Subject: Re: bug#41442: 26.3; `forward-sexp' in LaTeX mode
Date: Wed, 09 Dec 2020 14:55:57 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> 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.

emacs -Q a.tex
\foo{bar (zot) gazonk}

I tried `C-M-f' on the first { character, and it skipped to the closing
} character.

Do you have a test case to reproduce this bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Dec 2020 13:57:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41442; Package emacs. (Wed, 09 Dec 2020 16:42:01 GMT) Full text and rfc822 format available.

Message #13 received at 41442 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 41442 <at> debbugs.gnu.org
Subject: RE: bug#41442: 26.3; `forward-sexp' in LaTeX mode
Date: Wed, 9 Dec 2020 08:41:34 -0800 (PST)
> Do you have a test case to reproduce this bug?

No.  As I made clear, I just reported what was signaled
on emacs.SE.  See the URL in the bug report - maybe that
will help (or not).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41442; Package emacs. (Wed, 09 Dec 2020 16:51:01 GMT) Full text and rfc822 format available.

Message #16 received at 41442 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 41442 <at> debbugs.gnu.org
Subject: Re: bug#41442: 26.3; `forward-sexp' in LaTeX mode
Date: Wed, 09 Dec 2020 17:49:49 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

>> Do you have a test case to reproduce this bug?
>
> No.  As I made clear, I just reported what was signaled
> on emacs.SE.  See the URL in the bug report - maybe that
> will help (or not).

OK, without a test case it's unlikely that we'll make progress here, and
I'm closing this bug report.  If progress can be made, respond to the
debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 41442 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 09 Dec 2020 16:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Jan 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.