GNU bug report logs - #35140
12.1; Scan errors in doctex mode with ^^A-comments after braces

Previous Next

Package: auctex;

Reported by: Markus Kohm <komascript <at> gmx.info>

Date: Thu, 4 Apr 2019 12:38:02 UTC

Severity: normal

Found in version 12.1

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: emacs-devel <at> gnu.org
Cc: Markus Kohm <komascript <at> gmx.info>, 35140 <at> debbugs.gnu.org
Subject: bug#35140: 12.1; Scan errors in doctex mode with ^^A-comments after braces
Date: Wed, 02 Mar 2022 18:01:18 +0900
Greetings, Emacs developers.

I'd like to ask what to do with bug#35140. This was originally posted as
AUCTeX bug, but the same issue applies for Emacs built-in tex-mode.el as
well, as described below. That's the reason why I'm posting to
emacs-devel.

Please have a look at
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35140#5
to see what this bug is.

The reason of this error is the syntax-table property put on the closing
curly brace. In order to achieve different fontification on the docTeX
documentation and the comment after ^^A, the function
`font-latex-doctex-^^A' puts the "comment ender" syntax on the closing
"}", which hides the proper syntax "closing paren paired with {" and
thus leads to the reported error.

Actually, `font-latex-doctex-^^A' is essentially just a copy of
`doctex-font-lock-^^A' in `tex-mode.el', so the Emacs built-in
doctex-mode shares exactly the same problem with respect to the given
test file at double-clicking.

Are there any smart ways to address this issue?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




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

Previous Next


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