From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ikumi Keita Newsgroups: gmane.emacs.devel Subject: Re: bug#35140: 12.1; Scan errors in doctex mode with ^^A-comments after braces Date: Wed, 02 Mar 2022 18:01:18 +0900 Message-ID: <26626.1646211678@localhost> References: <1990475.NB1R35vEMU@komascript.de> <25610.1557200375@localhost> <12115.1646127291@localhost> <86pmn5j3eg.fsf@gnu.org> <24961.1646146234@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Markus Kohm , 35140@debbugs.gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 02 10:04:12 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPKu4-0008ge-Ks for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Mar 2022 10:04:12 +0100 Original-Received: from localhost ([::1]:60516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPKu3-0005H3-Bq for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Mar 2022 04:04:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPKrQ-0003tH-6R for emacs-devel@gnu.org; Wed, 02 Mar 2022 04:01:29 -0500 Original-Received: from smtp1a.inetd.co.jp ([210.129.88.11]:39980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPKrL-0006lE-QP for emacs-devel@gnu.org; Wed, 02 Mar 2022 04:01:27 -0500 Original-Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 881E82F0; Wed, 2 Mar 2022 18:01:20 +0900 (JST) In-reply-to: <24961.1646146234@localhost> Comments: In-reply-to Ikumi Keita message dated "Tue, 01 Mar 2022 23:50:34 +0900." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 Content-ID: <26625.1646211678.1@localhost> Received-SPF: pass client-ip=210.129.88.11; envelope-from=ikumi@ikumi.que.jp; helo=smtp1a.inetd.co.jp X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286765 Archived-At: 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