From unknown Sat Aug 16 16:21:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61410: texmathp and literal $ Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 10 Feb 2023 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61410 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 61410@debbugs.gnu.org X-Debbugs-Original-To: auctex-bugs Received: via spool by submit@debbugs.gnu.org id=B.167606022826405 (code B ref -1); Fri, 10 Feb 2023 20:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2023 20:17:08 +0000 Received: from localhost ([127.0.0.1]:38195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQZpU-0006rp-4d for submit@debbugs.gnu.org; Fri, 10 Feb 2023 15:17:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:48924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQZpP-0006rc-1c for submit@debbugs.gnu.org; Fri, 10 Feb 2023 15:17:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpO-00016g-1z for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpN-0000Ew-30 for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Ho99cD9vyWeT9amE3GuwUnNiA/4xk8DgapquxEPJtZw=; b=jCGZmj9e+XcsTT jk8CEx8+fmY1DGWPvOzCH1ayuiQmWjCINqeqwymnadPs7StnX1WBTt1kdLqW3uDx7Y67fccFWw6lM QXjzh4HEk/7orsWq3vrRIVLr1ESUbmsH5Z7fwCdXp/R4P9Uezd733d4TAduHZQOXN5AVAp7hwiYQT ajcke713Om4t2TMMlxg+qyHg47ZyXE2Nu9agQGOot/X1xMb8zZoZPGyBbc3fu70tfynef4vy4BZ6t pSh5D1Q4qOq/qtMM5wC7W0Wdry8ikzoTHpVr78w8phFVrpzrYncC2bW3GWpwhk/UDUrEcXc14fnb7 Dl0I91u2gUU5F4KdXDdw==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpC-00061k-Bl for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:00 -0500 From: Arash Esbati Date: Fri, 10 Feb 2023 21:16:22 +0100 Message-ID: <86edqx9syx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi all, please consider this small example: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{document} text \verb|$| \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: --8<---------------cut here---------------end--------------->8--- Now do: M-: (goto-char 58) RET C-c C-f C-t and AUCTeX insert \mathtt{} at point. Doing 'M-x texmathp RET' returns: math-mode is on: $ begins at buffer position 55 texmathp ignores the verb macro completely. The similar scenario can be created for a verbatim-like environment. Can others reproduce this? And if yes, any idea about course of action? Best, Arash From unknown Sat Aug 16 16:21:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61410: texmathp and literal $ Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 11 Feb 2023 09:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61410 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: 61410@debbugs.gnu.org Received: via spool by 61410-submit@debbugs.gnu.org id=B61410.16761063928873 (code B ref 61410); Sat, 11 Feb 2023 09:07:02 +0000 Received: (at 61410) by debbugs.gnu.org; 11 Feb 2023 09:06:32 +0000 Received: from localhost ([127.0.0.1]:38660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQlq4-0002J2-Bw for submit@debbugs.gnu.org; Sat, 11 Feb 2023 04:06:32 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:53228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQlq2-0002Ir-9f for 61410@debbugs.gnu.org; Sat, 11 Feb 2023 04:06:30 -0500 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 762B65C; Sat, 11 Feb 2023 18:06:29 +0900 (JST) From: Ikumi Keita In-reply-to: <86edqx9syx.fsf@gnu.org> References: <86edqx9syx.fsf@gnu.org> Comments: In-reply-to Arash Esbati message dated "Fri, 10 Feb 2023 21:16:22 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <78018.1676106388.1@localhost> Date: Sat, 11 Feb 2023 18:06:28 +0900 Message-ID: <78020.1676106388@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Arash, >>>>> Arash Esbati writes: > texmathp ignores the verb macro completely. The similar scenario can be > created for a verbatim-like environment. Can others reproduce this? Yes. As far as I can see, texmathp.el doesn't pay attention to verbatim constructs at all. I think that's an intention of Carsten Dominik. > And if yes, any idea about course of action? Maybe we can make texmathp syntax-aware (that is, to look into "string quotes" syntax.) Currently, I'm not sure whether that's easy or not. Do you think it's important to have this feature? (I'm neutral to the importance.) Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine From unknown Sat Aug 16 16:21:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61410: texmathp and literal $ Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 12 Feb 2023 13:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61410 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 61410@debbugs.gnu.org Received: via spool by 61410-submit@debbugs.gnu.org id=B61410.167620762114716 (code B ref 61410); Sun, 12 Feb 2023 13:14:02 +0000 Received: (at 61410) by debbugs.gnu.org; 12 Feb 2023 13:13:41 +0000 Received: from localhost ([127.0.0.1]:44368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRCAm-0003pG-Uv for submit@debbugs.gnu.org; Sun, 12 Feb 2023 08:13:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRCAk-0003oq-0g for 61410@debbugs.gnu.org; Sun, 12 Feb 2023 08:13:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRCAd-0001GV-Bi; Sun, 12 Feb 2023 08:13:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=qxfwWpwXEz3G25DQd18DvQPIW9lQjqHCPl1nnJvRzqg=; b=pKi39FNZsqHW4M5WebtR RiwwffXljo7BVdWen+eu8juCDNVMS616tK4tBHdOuyxWoovyyUKFH/w9W2y8oHZEkI4BL2ctXY7xl +WPxLMl28vj+zpNgk5lY07VqDde2zFNO+5//cZYZ/F+vQ1nNV71A0EexA/bLYYmpEkFmp3OC/PKyT 1tcxr7Kt57CnYqNDsUPO2bfcuDKoCNFR21Fe67k4AgAX28c/TEU2QY4Z0eCHuTQ9Za6TJmUIDnQd2 kz+kC8I5vKRO07WeBQJMG2raVum7JICRE60Myq7q9vBzBO18qnrDsimBdMD04oWRa2d1MKqQ+XB4O /L8Zxj0VR+IisQ==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRCAd-00060o-1p; Sun, 12 Feb 2023 08:13:31 -0500 From: Arash Esbati In-Reply-To: <78020.1676106388@localhost> (Ikumi Keita's message of "Sat, 11 Feb 2023 18:06:28 +0900") References: <86edqx9syx.fsf@gnu.org> <78020.1676106388@localhost> Date: Sun, 12 Feb 2023 12:27:13 +0100 Message-ID: <86k00nktta.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Keita, Ikumi Keita writes: > Yes. As far as I can see, texmathp.el doesn't pay attention to verbatim > constructs at all. I think that's an intention of Carsten Dominik. Thanks for confirming. I'm not sure about the intention behind it, but I think we should if we can fix this issue. > Maybe we can make texmathp syntax-aware (that is, to look into "string > quotes" syntax.) Currently, I'm not sure whether that's easy or not. My simple idea was to have an extra check at the end of `texmathp' itself in terms of: Pass the possible point for math-on to `LaTeX-verbatim-p' and see what it returs. I think the possibility for $ a \verb|$| $ <= invoke texmathp here is next to zero while this $ a $ \verb|$| <= invoke texmathp here or this \begin{verbatim} $ \begin{end} <= invoke texmathp here are not so far away, from user POV. > Do you think it's important to have this feature? (I'm neutral to the > importance.) I'd say yes: Imagine you want to write a trivial example of bash command in your document: \begin{verbatim} $ touch foo \begin{end} currently breaks. Best, Arash From unknown Sat Aug 16 16:21:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61410: texmathp and literal $ Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 13 Feb 2023 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61410 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 61410@debbugs.gnu.org Received: via spool by 61410-submit@debbugs.gnu.org id=B61410.167629758919300 (code B ref 61410); Mon, 13 Feb 2023 14:14:02 +0000 Received: (at 61410) by debbugs.gnu.org; 13 Feb 2023 14:13:09 +0000 Received: from localhost ([127.0.0.1]:48045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRZZs-00051E-Qk for submit@debbugs.gnu.org; Mon, 13 Feb 2023 09:13:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRZZr-00050z-OL for 61410@debbugs.gnu.org; Mon, 13 Feb 2023 09:13:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRZZk-00082r-Kk; Mon, 13 Feb 2023 09:13:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+x3q4RPfwHBzRwZc9DChX2G2Z203qsJE+rAbLWYkq/Y=; b=ioIgKE91Uz9KjncIgSSc kK9P7exI4RQFRJ4UyR3ndmeT9ut9zNeb6Vb/Fa1H09viapu3Gdwrspgm0MdMh0WVxdxlO9pfpkghK 0drnCTol6FhXj/B1C0KGcgZl07BXGUEHQNVOlLGbcgcEqzYBiAz7a0+z93QO3coDwgspDL4LGMNWz xmb9FkFMfLENB+HFJ2yx3u0ddKNZw9dRvGW0IgSCUUegtcABhMRTeCOozx6nnrZzKdwyXT4Vp5OjS zc2M2kUOS4AYt+W5F9GpdxHIEehq/Y+6XXnOOeGox4Er83kfivJLBPfe6qE8uqOKCwOZLQI30PN/c 06TlQ0HKuikClg==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRZZj-0006xL-WB; Mon, 13 Feb 2023 09:13:00 -0500 From: Arash Esbati In-Reply-To: <86k00nktta.fsf@gnu.org> (Arash Esbati's message of "Sun, 12 Feb 2023 12:27:13 +0100") References: <86edqx9syx.fsf@gnu.org> <78020.1676106388@localhost> <86k00nktta.fsf@gnu.org> Date: Mon, 13 Feb 2023 15:11:55 +0100 Message-ID: <86r0ut64es.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Arash Esbati writes: > My simple idea was to have an extra check at the end of `texmathp' > itself in terms of: Pass the possible point for math-on to > `LaTeX-verbatim-p' and see what it returs. Following up myself, I was thinking about something like in the attached patch. Any comments welcome. Best, Arash --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=texmathp.diff diff --git a/texmathp.el b/texmathp.el index ad008986..d4b0b007 100644 --- a/texmathp.el +++ b/texmathp.el @@ -283,7 +283,7 @@ See the variable `texmathp-tex-commands' about which commands are checked." (if (eq major-mode 'doctex-mode) "[\n\r]%*[ \t]*[\n\r]" "[\n\r][ \t]*[\n\r]") - nil 1 texmathp-search-n-paragraphs) + nil 1 texmathp-search-n-paragraphs) (match-beginning 0) (point-min)))) (mac-match (texmathp-match-macro bound)) @@ -321,12 +321,24 @@ See the variable `texmathp-tex-commands' about which commands are checked." ;; Store info, show as message when interactive, and return (setq texmathp-why match) - (and (called-interactively-p 'any) - (message "math-mode is %s: %s begins at buffer position %d" - (if math-on "on" "off") - (or (car match) "new paragraph") - (cdr match))) - (and math-on t))) + ;; Check also if the is match inside a verbatim construct and + ;; return immediately nil. This relies on the function + ;; `LaTeX-verbatim-p'. We add a check here in case this library + ;; is used stand-alone without latex.el provided by AUCTeX: + (if (and (fboundp 'LaTeX-verbatim-p) + (save-excursion (LaTeX-verbatim-p (cdr match)))) + (progn + (setq texmathp-why `(nil . ,(cdr match))) + (when (called-interactively-p 'any) + (message "math-mode is off: Math command in verbatim construct at buffer position %d" + (cdr match))) + nil) + (and (called-interactively-p 'any) + (message "math-mode is %s: %s begins at buffer position %d" + (if math-on "on" "off") + (or (car match) "new paragraph") + (cdr match))) + (and math-on t)))) (defun texmathp-match-environment (bound) "Find out if point is inside any of the math environments. --=-=-=-- From unknown Sat Aug 16 16:21:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61410: texmathp and literal $ Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 13 Feb 2023 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61410 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: 61410@debbugs.gnu.org Received: via spool by 61410-submit@debbugs.gnu.org id=B61410.16763063984627 (code B ref 61410); Mon, 13 Feb 2023 16:40:01 +0000 Received: (at 61410) by debbugs.gnu.org; 13 Feb 2023 16:39:58 +0000 Received: from localhost ([127.0.0.1]:51319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRbrx-0001CY-RI for submit@debbugs.gnu.org; Mon, 13 Feb 2023 11:39:58 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:57922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRbru-0001CM-A9 for 61410@debbugs.gnu.org; Mon, 13 Feb 2023 11:39:57 -0500 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 38A9360; Tue, 14 Feb 2023 01:39:52 +0900 (JST) From: Ikumi Keita In-reply-to: <86r0ut64es.fsf@gnu.org> References: <86edqx9syx.fsf@gnu.org> <78020.1676106388@localhost> <86k00nktta.fsf@gnu.org> <86r0ut64es.fsf@gnu.org> Comments: In-reply-to Arash Esbati message dated "Mon, 13 Feb 2023 15:11:55 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27341.1676306389.1@localhost> Date: Tue, 14 Feb 2023 01:39:49 +0900 Message-ID: <27343.1676306389@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Arash, >>>>> Arash Esbati writes: > Following up myself, I was thinking about something like in the attached > patch. Any comments welcome. This looks good to me. It takes care of all possible difficulties I worried. :-) Bye, Ikumi Keita #StandWithUkraine #StopWarInUkraine From unknown Sat Aug 16 16:21:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Arash Esbati Subject: bug#61410: closed (Re: bug#61410: texmathp and literal $) Message-ID: References: <86cz6dw8cw.fsf@gnu.org> <86edqx9syx.fsf@gnu.org> X-Gnu-PR-Message: they-closed 61410 X-Gnu-PR-Package: auctex Reply-To: 61410@debbugs.gnu.org Date: Mon, 13 Feb 2023 21:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1676324582-1961-1" This is a multi-part message in MIME format... ------------=_1676324582-1961-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61410: texmathp and literal $ which was filed against the auctex package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61410@debbugs.gnu.org. --=20 61410: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61410 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1676324582-1961-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61410-done) by debbugs.gnu.org; 13 Feb 2023 21:42:33 +0000 Received: from localhost ([127.0.0.1]:51851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRgan-0000UF-2t for submit@debbugs.gnu.org; Mon, 13 Feb 2023 16:42:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRgal-0000Tz-9T for 61410-done@debbugs.gnu.org; Mon, 13 Feb 2023 16:42:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRgad-00082q-LV; Mon, 13 Feb 2023 16:42:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ROYCsobCoUdWSk4m7GLq2r3+obitMy1EZ633WvGv74E=; b=UqRKR9p0k8jUDM1JHVet dgsQtlw7xBL3VSs0AklsdHmH8Tvch/Rcv+fuAWjsSivNkT5yL35nthZgmxuVr2Qxuu0qBqPRDQygI ymAxwup5mlhqeHsTsrSVJXzT5ZXZRlIpMl1/YTEk4jgiJMxciXVt/PQWhXbVa+NSEXJhZcbFnHU0Q ZnAJAQQR6LMk+8PpZ4OynNTXBMvCBBSPAPxZam2SZ3AKdBjhfHeu2IMe6Y/8O0Fe/5bzsMz/AfQna tdcgbxRTOmNpjA4Ppi5RLCpCAOVYRyfFQNOY7zIW/av48t95tdL8NWwcmvJotybgkkqC8dFd/tiA0 sJVD6iK5rH9cmw==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRgac-0000se-V7; Mon, 13 Feb 2023 16:42:23 -0500 From: Arash Esbati To: Ikumi Keita Subject: Re: bug#61410: texmathp and literal $ In-Reply-To: <27343.1676306389@localhost> (Ikumi Keita's message of "Tue, 14 Feb 2023 01:39:49 +0900") References: <86edqx9syx.fsf@gnu.org> <78020.1676106388@localhost> <86k00nktta.fsf@gnu.org> <86r0ut64es.fsf@gnu.org> <27343.1676306389@localhost> Date: Mon, 13 Feb 2023 22:42:07 +0100 Message-ID: <86cz6dw8cw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61410-done Cc: 61410-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ikumi Keita writes: > This looks good to me. It takes care of all possible difficulties I > worried. :-) What, maximum score? ;-) I installed the change incl. a test with commit de6aa05d7 and closing this report. Many thanks for your comments. Best, Arash ------------=_1676324582-1961-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Feb 2023 20:17:08 +0000 Received: from localhost ([127.0.0.1]:38195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQZpU-0006rp-4d for submit@debbugs.gnu.org; Fri, 10 Feb 2023 15:17:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:48924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQZpP-0006rc-1c for submit@debbugs.gnu.org; Fri, 10 Feb 2023 15:17:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpO-00016g-1z for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpN-0000Ew-30 for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Ho99cD9vyWeT9amE3GuwUnNiA/4xk8DgapquxEPJtZw=; b=jCGZmj9e+XcsTT jk8CEx8+fmY1DGWPvOzCH1ayuiQmWjCINqeqwymnadPs7StnX1WBTt1kdLqW3uDx7Y67fccFWw6lM QXjzh4HEk/7orsWq3vrRIVLr1ESUbmsH5Z7fwCdXp/R4P9Uezd733d4TAduHZQOXN5AVAp7hwiYQT ajcke713Om4t2TMMlxg+qyHg47ZyXE2Nu9agQGOot/X1xMb8zZoZPGyBbc3fu70tfynef4vy4BZ6t pSh5D1Q4qOq/qtMM5wC7W0Wdry8ikzoTHpVr78w8phFVrpzrYncC2bW3GWpwhk/UDUrEcXc14fnb7 Dl0I91u2gUU5F4KdXDdw==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQZpC-00061k-Bl for bug-auctex@gnu.org; Fri, 10 Feb 2023 15:17:00 -0500 From: Arash Esbati To: auctex-bugs Subject: texmathp and literal $ Date: Fri, 10 Feb 2023 21:16:22 +0100 Message-ID: <86edqx9syx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi all, please consider this small example: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{document} text \verb|$| \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: --8<---------------cut here---------------end--------------->8--- Now do: M-: (goto-char 58) RET C-c C-f C-t and AUCTeX insert \mathtt{} at point. Doing 'M-x texmathp RET' returns: math-mode is on: $ begins at buffer position 55 texmathp ignores the verb macro completely. The similar scenario can be created for a verbatim-like environment. Can others reproduce this? And if yes, any idea about course of action? Best, Arash ------------=_1676324582-1961-1--