From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OMVjNbMM8GUlHwAAqHPOHw:P1 (envelope-from ) for ; Tue, 12 Mar 2024 09:05:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OMVjNbMM8GUlHwAAqHPOHw (envelope-from ) for ; Tue, 12 Mar 2024 09:05:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tu-dresden.de header.s=dkim2022 header.b="PHShl/hQ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tu-dresden.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710230707; a=rsa-sha256; cv=none; b=DQVTTh7zhBKQMD74zIptVZGffqJnOe6rYEniFQdQYBzo7FCN3MmSryPnKJmkfkiwr1kxUC QfvJwaanJg4u7KGcosX/XdcbnF/uGCsrRQRDqQB6j9lrTdpdwq/JMAendRLUs/UdPHkX6G n4CjiHecF84q2Qhf1qqUQTag/sAfESDk+29EKu3vlNq2R4HmxYai3t/mhLWXmJv2E9xaU9 0s4A/bsZUgq/YDYB6GnGm26GlzGieZWqE4p83DTtyC7GN1swZvVdD5WxfNEm6NHKsWmXDW EhfKtHwD4njEFvMBwfbyv03A0VaO5V124zuHjt43qHQTKB6px9BeoNo++D0Tyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tu-dresden.de header.s=dkim2022 header.b="PHShl/hQ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tu-dresden.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710230707; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YU5Y4ALyGqmB2iSQRrbEjt3rMF29Y02iXmUDHy2f4GI=; b=ISNX9dhmkdLtUELBVIhjjHbUev7zckruK+/UyY7CGJWT2yKuFNukZjyKSWaoBkRocIGL3p jJjm007/6+5cKnB/gzIqDK5y7ObzxXrheE3Aw8mVwYEnjoLIOAg2jug+2R0Mr8P1hdBD+6 ex9mt1Wj3FzQFYpciIvPh3CY6+djB6UjVT2DHrVXofkbsVYGpw+crOJd681KIknmsMAqYZ eXtopwWWFAO96AJMIcGykZahM0tT6U/WcT/hiqYXscNlnRkwexxTkCmgVOLo6nDWxen5/q fRsQeADtsPBn8GGL5ZzBG3J3RUmwQshnBy7J9AAUGGbxWpJ9WvC0Db9XycFPIA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8FEC7277F7 for ; Tue, 12 Mar 2024 09:05:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjx6n-0008Ny-3E; Tue, 12 Mar 2024 04:03:37 -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 1rj2aC-0008TL-Rc for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 14:42:12 -0500 Received: from mailout4.zih.tu-dresden.de ([141.30.67.75]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rj2a9-00064P-LU for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 14:42:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-dresden.de; s=dkim2022; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YU5Y4ALyGqmB2iSQRrbEjt3rMF29Y02iXmUDHy2f4GI=; b=PHShl/hQXU0TKT12v+zYQP3PnB TxJKtk6Dt+57I9KSt8BbhdpXULu1uOAhy2uCzry67ZiuMr1Uz8lFbTT+NRtrDZSTvCf2v6MHrK3sd aGHOViXQRoli/UWKvG0J0z53UwDhalWCq0sr/dkFyZItziiUy3b2ZalouFXKXJI2AmkuiYvzgq/uB p5SDcm+sQswaRhEja/BRRWTCG2wAOz5AemQO/Lcn3uDMJVakqVpb4WMurKn0ga80/C0KlfahNxBWF Tcnh6AgNHXK4OlYMqXTIjvP0UAOiIxKky/NCBKXtwrFXs+hGzVorNwKkETaIswtjWGfFdBiUpadGK +PZeJFpQ==; Received: from [172.26.34.120] (helo=msx.tu-dresden.de) by mailout4.zih.tu-dresden.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rj2a6-002zMY-Eb for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 20:42:07 +0100 Received: from comonad (89.247.169.119) by msx-l320.msx.ad.zih.tu-dresden.de (172.26.34.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 9 Mar 2024 20:41:53 +0100 From: Tony Zorman To: Subject: The org--math-p advice around texmathp User-Agent: Notmuch/0.38.2, Emacs 30.0.50 Date: Sat, 9 Mar 2024 20:41:52 +0100 Message-ID: <878r2r5h1b.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: MSX-L315.msx.ad.zih.tu-dresden.de (172.26.34.115) To msx-l320.msx.ad.zih.tu-dresden.de (172.26.34.120) X-TUD-Virus-Scanned: mailout4.zih.tu-dresden.de Received-SPF: pass client-ip=141.30.67.75; envelope-from=tony.zorman@tu-dresden.de; helo=mailout4.zih.tu-dresden.de X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_MED=-2.3, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 12 Mar 2024 04:03:26 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8FEC7277F7 X-Migadu-Spam: Yes X-Migadu-Spam-Score: 10.31 X-Spam: Yes X-Spam-Score: 10.31 X-Migadu-Scanner: mx10.migadu.com X-TUID: EDemSNJNlYJQ Hi, I recently stumbled upon the fact that Org has some around advice for texmathp: org--math-p. For reasons that aren't entirely clear to me, this has some special handling for cdlatex-math-symbol, and recognises display and inline maths environments on its own, only calling out to texmathp if it could not find anything. In the former cases, it also populates the texmathp-why variable, although the position is just filled in with 0. I suppose my succinct question is: why? Is there any advantage in handling inline and display maths in this way, only deferring to texmathp as a last resort? I'm asking because I wrote a small package to switch between environments, and the position information that texmathp-why provides is very useful in choosing the closest environment. Thanks! Tony -- Tony Zorman | https://tony-zorman.com/