From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ahmed Khaled <akregeb@gmail.com>
Cc: 49080@debbugs.gnu.org
Subject: bug#49080: 28.0.50; latex-forward-sexp scan error (unbalanced parens) when parens are balanced
Date: Sat, 19 Jun 2021 15:32:32 +0200 [thread overview]
Message-ID: <877diqx9n3.fsf@gnus.org> (raw)
In-Reply-To: <CAKFjJAX6PyiqXq-JnS4WAFyP498UF+tSXwbq29RWpe9ioBcgvA@mail.gmail.com> (Ahmed Khaled's message of "Thu, 17 Jun 2021 22:12:14 +0200")
Ahmed Khaled <akregeb@gmail.com> writes:
> In tex-mode, latex-forward-sexp does not correctly handle parentheses
> like this \[ \]. In particular, it says the expression is not balanced
> when it is.
>
> Steps to reproduce the bug:
> 1. Start with emacs -Q (with -nw or without doesn't make a difference)
> 2. Open any .tex file (I attached test.tex which I used).
> 3. Navigate to any LaTeX equation delimited by \[ and \], like this:
> \[ 1 + 1 = 2 \]
> 4. Put the cursor on the first [ in the line:
> 5. Call latex-forward-sexp
>
> That's it. On test.tex, the error I get is:
> Scan error: "Unbalanced parentheses", 126, 157
> Note that if the cursor is on the backslash, rather than [, then there
> is no error.
I think that's correct behaviour? The parentheses start is \[ and not
just [.
Anybody have any opinion here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-06-19 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 20:12 bug#49080: 28.0.50; latex-forward-sexp scan error (unbalanced parens) when parens are balanced Ahmed Khaled
2021-06-19 13:32 ` Lars Ingebrigtsen [this message]
2021-07-17 19:23 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877diqx9n3.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=49080@debbugs.gnu.org \
--cc=akregeb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.