From unknown Tue Jun 17 01:46:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69681: 14.0.3; texmathp misbehaves in Org mode Resent-From: Tony Zorman Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 09 Mar 2024 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69681 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 69681@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171001252929098 (code B ref -1); Sat, 09 Mar 2024 19:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2024 19:28:49 +0000 Received: from localhost ([127.0.0.1]:34871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2NE-0007ZG-Ss for submit@debbugs.gnu.org; Sat, 09 Mar 2024 14:28:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:55380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2NA-0007Z5-G8 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 14:28:48 -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 1rj2Mc-0005ZV-Nb for bug-auctex@gnu.org; Sat, 09 Mar 2024 14:28:11 -0500 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rj2Ma-0003le-24 for bug-auctex@gnu.org; Sat, 09 Mar 2024 14:28:09 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TsY3N59sWz9spm for ; Sat, 9 Mar 2024 20:28:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1710012480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PehxsMXC+VdjyfcHJW+QKnHV3fX0N3nxjPlWFZPZTko=; b=nnZRUNlarDAX8DRNxAymZDmuPGPF2ZxM8APDRE/r3Qjb7F4UCTi85QrT2NR9DNHRNFknkx oWKl5ypxgXUV33zbks6WI3td7XyoWGgnOiQMx/UpzcXMN53a8opD//2K3NWJofvvUsKRQ0 TzEwaUk5Dt3NAV9oqlPrLNsm7VHFu8Jj2XZ52cWCjYxhPZv5HAocTNxqiwkEtsf3K74csr rdsKqVVCq5maPrzPdM1BsoOyvTHRcQe3J5Fw5nehFkbZXMDGORS9aUmj8zHslyLt0vJnTs A2kcKEDDX7QINPP25kn8MqjvP8twAWDKspodAXp5XTFclLmCfHl2aryzfgDTGg== From: Tony Zorman Date: Sat, 09 Mar 2024 20:27:59 +0100 Message-ID: <87bk7n5hog.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-RS-META: jdph94itodydj5jkrj3qgmhtgqfxzt4w X-MBO-RS-ID: 83cb5a2d31a7f95c175 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=soliditsallgood@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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-Spam-Score: -1.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: -2.3 (--) Hi, this is mostly a follow-up on [#61410], in which texmathp.el was made aware of verbatim constructs. The current check for this is (if (and (fboundp 'LaTeX-verbatim-p) (LaTeX-verbatim-p (cdr match))) =E2=80=A6) The comment above that code snippet mentions texmathp running as standalone, but perhaps it was still intended to run in a TeX buffer. The actual check in LaTeX-verbatim-p is just to see whether (nth 3 (syntax-ppss)) returns nil or not. However, Org mode seems to treat inline and display maths as a string, which causes texmathp to misbehave. (I know that Org has org--math-p as an around advice, but I disabled that for the purposes of this test.) Would it perhaps be possible to amend the above check to see whether the current major mode is a TeX-derived one? Thanks! Tony [#61410]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61410 Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3= .8, cairo version 1.18.0) Package: 14.0.3 --=20 Tony Zorman | https://tony-zorman.com/ From unknown Tue Jun 17 01:46:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69681: 14.0.3; texmathp misbehaves in Org mode Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 10 Mar 2024 08:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69681 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 69681@debbugs.gnu.org Cc: soliditsallgood@mailbox.org X-Debbugs-Original-To: Tony Zorman via bug-auctex via Bug reporting list for AUCTeX X-Debbugs-Original-Cc: 69681@debbugs.gnu.org, Tony Zorman Received: via spool by submit@debbugs.gnu.org id=B.171005765017846 (code B ref -1); Sun, 10 Mar 2024 08:01:03 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 08:00:50 +0000 Received: from localhost ([127.0.0.1]:35546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjE6z-0004d9-M1 for submit@debbugs.gnu.org; Sun, 10 Mar 2024 04:00:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:33596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjE6w-0004XQ-Su for submit@debbugs.gnu.org; Sun, 10 Mar 2024 04:00:47 -0400 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 1rjE6P-0005ce-Fj for bug-auctex@gnu.org; Sun, 10 Mar 2024 04:00:13 -0400 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 1rjE6O-0003cC-Si; Sun, 10 Mar 2024 04:00:12 -0400 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=Zsjhnf0DjZSKbIlvro7/MKfJ/gCdSwU0fnKRqg3kbcA=; b=Zbc3Uptv+EIvWhrft7Ye +zY/GXVIpXM8dW8pVtLH0dBtqCuUbWNtohiDZpzMNalci/BvgOMQt0KBY0eq3hJcxHRPTDdawYWuL zkU7B6KKKg35+t9kAmqZvotAVrktN0s4HX1s4TWuyJ0zZfSLEP2BqM4jFFXcdI9WGMrj4CK5R/4R7 C4zydeSYwKnUp2qx92ouMh8H5reWlEWKQ1/N8bMa0LSDhDceTY3sza18GHiy5ISKLnxysi3S7osl2 wArb86ZJk2DAbLd+fqDnTHY0rZmMx8AxfMh3gLdYYPfPWCJl6+CGPVl1GRffaLsXRdaAMj2c3xBvH jGrNZrf0YHTgYQ==; From: Arash Esbati In-Reply-To: <87bk7n5hog.fsf@hyperspace> (Tony Zorman via bug-auctex via Bug reporting list for AUCTeX's message of "Sat, 09 Mar 2024 20:27:59 +0100") References: <87bk7n5hog.fsf@hyperspace> Date: Sun, 10 Mar 2024 09:00:08 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Tony, Tony Zorman via bug-auctex via Bug reporting list for AUCTeX writes: > this is mostly a follow-up on [#61410], in which texmathp.el was made > aware of verbatim constructs. The current check for this is > > (if (and (fboundp 'LaTeX-verbatim-p) > (LaTeX-verbatim-p (cdr match))) > =E2=80=A6) > > The comment above that code snippet mentions texmathp running as > standalone, but perhaps it was still intended to run in a TeX buffer. > The actual check in LaTeX-verbatim-p is just to see whether > > (nth 3 (syntax-ppss)) > > returns nil or not. However, Org mode seems to treat inline and display > maths as a string, which causes texmathp to misbehave. (I know that Org > has org--math-p as an around advice, but I disabled that for the > purposes of this test.) > > Would it perhaps be possible to amend the above check to see whether the > current major mode is a TeX-derived one? I don't use Org so maybe I don't understand the above correctly, but does this change meets your requirement? --8<---------------cut here---------------start------------->8--- diff --git a/texmathp.el b/texmathp.el index 3316c461..ec553a3a 100644 --- a/texmathp.el +++ b/texmathp.el @@ -326,7 +326,8 @@ See the variable `texmathp-tex-commands' about which co= mmands are checked." ;; `LaTeX-verbatim-p'. We add a check here in case this library ;; is used stand-alone without latex.el provided by AUCTeX ;; (bug#61410): - (if (and (fboundp 'LaTeX-verbatim-p) + (if (and (derived-mode-p 'TeX-mode) + (fboundp 'LaTeX-verbatim-p) (LaTeX-verbatim-p (cdr match))) (progn (setq texmathp-why `(nil . ,(cdr match))) --8<---------------cut here---------------end--------------->8--- Best, Arash From unknown Tue Jun 17 01:46:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69681: 14.0.3; texmathp misbehaves in Org mode Resent-From: Tony Zorman Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 10 Mar 2024 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69681 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: arash@gnu.org, 69681@debbugs.gnu.org X-Debbugs-Original-To: Arash Esbati , Tony Zorman via bug-auctex via Bug reporting list for AUCTeX X-Debbugs-Original-Cc: 69681@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171007283515198 (code B ref -1); Sun, 10 Mar 2024 12:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 12:13:55 +0000 Received: from localhost ([127.0.0.1]:35749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjI3u-0003x3-Lm for submit@debbugs.gnu.org; Sun, 10 Mar 2024 08:13:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:49838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjI3t-0003ww-6P for submit@debbugs.gnu.org; Sun, 10 Mar 2024 08:13:53 -0400 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 1rjI3L-0001dB-IN for bug-auctex@gnu.org; Sun, 10 Mar 2024 08:13:19 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rjI3J-0008Ch-Gq; Sun, 10 Mar 2024 08:13:19 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4TszMC67k9z9scX; Sun, 10 Mar 2024 13:13:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1710072791; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/CFJ1WQlBLrado1P5Sbg7foiMk4T2WWsUC+hgt0rqg4=; b=GnmxqNQPS5A0fk7vrfD0V32qYSsfNwJtYI22Jw0KZrEYL2/xtMTTc9roz40lBKlmPmw1aC abTEnhuidzQjZIJdX4bAWs7UenigG4PPW4F5LqsyyZbhLWgV8ef8adu0YAMIJsuQXFETu3 GRwHbTz3Wwf+Tw8kR746qupke+J46N1UokwI+SD7joK9dVu9TxAVAEy1mepf4Vo9kAS/x3 GRc+MvkSgC7NV6yfq+NayusZR7HAmPgNM6MVnAYCKVyK+JAwwSC7KPNxniKVLRaOPOWz6q U7EaFAa5sOl4Q/jRRkG4NQ2QWtDrqiyOk5dE1WD7xdGkNt/loxZ4NO5+dnN2hg== From: Tony Zorman In-Reply-To: References: <87bk7n5hog.fsf@hyperspace> Date: Sun, 10 Mar 2024 13:13:10 +0100 Message-ID: <87h6hep9nt.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-RS-ID: 21f36819e3603a41122 X-MBO-RS-META: ftx4feg4bsgnknjb487bbq3jqu1g1r4m Received-SPF: pass client-ip=80.241.56.171; envelope-from=soliditsallgood@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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-Spam-Score: -1.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: -2.3 (--) Hi Arash, On Sun, Mar 10 2024 09:00, Arash Esbati wrote: > I don't use Org so maybe I don't understand the above correctly, but > does this change meets your requirement? > > [=E2=80=A6 16 lines elided =E2=80=A6] indeed, this is along the lines that I was thinking about. I should probably have rather sent a patch instead of opening a bug report (sorry! :)), but I wasn't exactly sure what people would want to do about this (if anything). Thanks! Tony --=20 Tony Zorman | https://tony-zorman.com/ From unknown Tue Jun 17 01:46:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69681: 14.0.3; texmathp misbehaves in Org mode Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 11 Mar 2024 10:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69681 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tony Zorman Cc: 69681@debbugs.gnu.org, 69681-done@debbugs.gnu.org X-Debbugs-Original-Cc: Tony Zorman via bug-auctex via Bug reporting list for AUCTeX , 69681-done@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17101535596740 (code B ref -1); Mon, 11 Mar 2024 10:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2024 10:39:19 +0000 Received: from localhost ([127.0.0.1]:38927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjd3v-0001kd-0a for submit@debbugs.gnu.org; Mon, 11 Mar 2024 06:39:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:51584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjd3t-0001kN-2N for submit@debbugs.gnu.org; Mon, 11 Mar 2024 06:39:18 -0400 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 1rjd3H-0005WB-A3 for bug-auctex@gnu.org; Mon, 11 Mar 2024 06:38:39 -0400 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 1rjd3G-0003sH-J7; Mon, 11 Mar 2024 06:38:38 -0400 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=UEG6zsceOrsU7bVP+hiOz+39jK6keqTUoWq239995XA=; b=f14o+LIzMwUUU3oz++Or 6KFvauF6XK6XVcp6ei8KRVjMNDwFs53wnOaBlB7XFAJLjNG2CB/pp5hyvokxRhi+GTe+c8ks81thg Jg5bxcFFix0mwggX8etqIvVyghj2v8h52PowRbzdCyhd9h9b9vr7yWQXuws6YlCIPFJrItxwyxQB3 SKrP0VpHeC13E+PaRLJ4Pdb09/yGa0qELOAr9iUhr8sVdXiVdOUAS4dZQGTYZ09oqtcrQQ8AapvMC UjmFGdz0hE6Oh66wB7y2buRc7wSN6ssK+bvddo+j4vrANWmUw6kB7zOutwLeOCu/wDDn57BcO1XkH 954KxyyqnT3Jpw==; From: Arash Esbati In-Reply-To: <87h6hep9nt.fsf@hyperspace> (Tony Zorman's message of "Sun, 10 Mar 2024 13:13:10 +0100") References: <87bk7n5hog.fsf@hyperspace> <87h6hep9nt.fsf@hyperspace> Date: Mon, 11 Mar 2024 11:38:28 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (---) Tony Zorman writes: > On Sun, Mar 10 2024 09:00, Arash Esbati wrote: >> I don't use Org so maybe I don't understand the above correctly, but >> does this change meets your requirement? >> >> [=E2=80=A6 16 lines elided =E2=80=A6] > > indeed, this is along the lines that I was thinking about. Great, I installed that change now (806bdb01ca). > I should probably have rather sent a patch instead of opening a bug > report (sorry! :)), but I wasn't exactly sure what people would want to > do about this (if anything). Sending a patch as a bug report is the best option, actually. It can't go lost and we can track it more easily. I'm closing this report. Best, Arash From unknown Tue Jun 17 01:46:28 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: Tony Zorman Subject: bug#69681: closed (Re: bug#69681: 14.0.3; texmathp misbehaves in Org mode) Message-ID: References: <87bk7n5hog.fsf@hyperspace> X-Gnu-PR-Message: they-closed 69681 X-Gnu-PR-Package: auctex Reply-To: 69681@debbugs.gnu.org Date: Mon, 11 Mar 2024 10:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1710153602-6810-1" This is a multi-part message in MIME format... ------------=_1710153602-6810-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #69681: 14.0.3; texmathp misbehaves in Org mode 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 69681@debbugs.gnu.org. --=20 69681: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69681 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1710153602-6810-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69681-done) by debbugs.gnu.org; 11 Mar 2024 10:39:32 +0000 Received: from localhost ([127.0.0.1]:38929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjd3x-0001kn-BW for submit@debbugs.gnu.org; Mon, 11 Mar 2024 06:39:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjd3u-0001kK-4u for 69681-done@debbugs.gnu.org; Mon, 11 Mar 2024 06:39:18 -0400 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 1rjd3G-0003sH-J7; Mon, 11 Mar 2024 06:38:38 -0400 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=UEG6zsceOrsU7bVP+hiOz+39jK6keqTUoWq239995XA=; b=f14o+LIzMwUUU3oz++Or 6KFvauF6XK6XVcp6ei8KRVjMNDwFs53wnOaBlB7XFAJLjNG2CB/pp5hyvokxRhi+GTe+c8ks81thg Jg5bxcFFix0mwggX8etqIvVyghj2v8h52PowRbzdCyhd9h9b9vr7yWQXuws6YlCIPFJrItxwyxQB3 SKrP0VpHeC13E+PaRLJ4Pdb09/yGa0qELOAr9iUhr8sVdXiVdOUAS4dZQGTYZ09oqtcrQQ8AapvMC UjmFGdz0hE6Oh66wB7y2buRc7wSN6ssK+bvddo+j4vrANWmUw6kB7zOutwLeOCu/wDDn57BcO1XkH 954KxyyqnT3Jpw==; From: Arash Esbati To: Tony Zorman Subject: Re: bug#69681: 14.0.3; texmathp misbehaves in Org mode In-Reply-To: <87h6hep9nt.fsf@hyperspace> (Tony Zorman's message of "Sun, 10 Mar 2024 13:13:10 +0100") References: <87bk7n5hog.fsf@hyperspace> <87h6hep9nt.fsf@hyperspace> Date: Mon, 11 Mar 2024 11:38:28 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69681-done Cc: Tony Zorman via bug-auctex via Bug reporting list for AUCTeX , 69681-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: -1.0 (-) Tony Zorman writes: > On Sun, Mar 10 2024 09:00, Arash Esbati wrote: >> I don't use Org so maybe I don't understand the above correctly, but >> does this change meets your requirement? >> >> [=E2=80=A6 16 lines elided =E2=80=A6] > > indeed, this is along the lines that I was thinking about. Great, I installed that change now (806bdb01ca). > I should probably have rather sent a patch instead of opening a bug > report (sorry! :)), but I wasn't exactly sure what people would want to > do about this (if anything). Sending a patch as a bug report is the best option, actually. It can't go lost and we can track it more easily. I'm closing this report. Best, Arash ------------=_1710153602-6810-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Mar 2024 19:28:49 +0000 Received: from localhost ([127.0.0.1]:34871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2NE-0007ZG-Ss for submit@debbugs.gnu.org; Sat, 09 Mar 2024 14:28:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:55380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2NA-0007Z5-G8 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 14:28:48 -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 1rj2Mc-0005ZV-Nb for bug-auctex@gnu.org; Sat, 09 Mar 2024 14:28:11 -0500 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rj2Ma-0003le-24 for bug-auctex@gnu.org; Sat, 09 Mar 2024 14:28:09 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TsY3N59sWz9spm for ; Sat, 9 Mar 2024 20:28:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1710012480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PehxsMXC+VdjyfcHJW+QKnHV3fX0N3nxjPlWFZPZTko=; b=nnZRUNlarDAX8DRNxAymZDmuPGPF2ZxM8APDRE/r3Qjb7F4UCTi85QrT2NR9DNHRNFknkx oWKl5ypxgXUV33zbks6WI3td7XyoWGgnOiQMx/UpzcXMN53a8opD//2K3NWJofvvUsKRQ0 TzEwaUk5Dt3NAV9oqlPrLNsm7VHFu8Jj2XZ52cWCjYxhPZv5HAocTNxqiwkEtsf3K74csr rdsKqVVCq5maPrzPdM1BsoOyvTHRcQe3J5Fw5nehFkbZXMDGORS9aUmj8zHslyLt0vJnTs A2kcKEDDX7QINPP25kn8MqjvP8twAWDKspodAXp5XTFclLmCfHl2aryzfgDTGg== From: Tony Zorman To: bug-auctex@gnu.org Subject: 14.0.3; texmathp misbehaves in Org mode Date: Sat, 09 Mar 2024 20:27:59 +0100 Message-ID: <87bk7n5hog.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-RS-META: jdph94itodydj5jkrj3qgmhtgqfxzt4w X-MBO-RS-ID: 83cb5a2d31a7f95c175 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=soliditsallgood@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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-Spam-Score: -1.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: -2.3 (--) Hi, this is mostly a follow-up on [#61410], in which texmathp.el was made aware of verbatim constructs. The current check for this is (if (and (fboundp 'LaTeX-verbatim-p) (LaTeX-verbatim-p (cdr match))) =E2=80=A6) The comment above that code snippet mentions texmathp running as standalone, but perhaps it was still intended to run in a TeX buffer. The actual check in LaTeX-verbatim-p is just to see whether (nth 3 (syntax-ppss)) returns nil or not. However, Org mode seems to treat inline and display maths as a string, which causes texmathp to misbehave. (I know that Org has org--math-p as an around advice, but I disabled that for the purposes of this test.) Would it perhaps be possible to amend the above check to see whether the current major mode is a TeX-derived one? Thanks! Tony [#61410]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61410 Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3= .8, cairo version 1.18.0) Package: 14.0.3 --=20 Tony Zorman | https://tony-zorman.com/ ------------=_1710153602-6810-1--