From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CLguNEuJmWNSZwEAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 09:28:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8FU/NEuJmWPZSQAA9RJhRA (envelope-from ) for ; Wed, 14 Dec 2022 09:28:59 +0100 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 87D91B4FB for ; Wed, 14 Dec 2022 09:28:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5MvR-00083B-CL; Wed, 14 Dec 2022 03:15:37 -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 1p5MvN-00081w-Fj for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 03:15:33 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5MvL-0000Xw-Hq for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 03:15:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 16618240107 for ; Wed, 14 Dec 2022 09:15:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671005729; bh=F9fDjB74uSoTiOldutXv+kGEGysjVvqwAN597BW2g+Y=; h=From:To:Cc:Subject:Date:From; b=ADPxKkS6CpRg8fpPXdInc9qk9yI0535gygWvNkCu3nj8gqaJogQXerbyLIyl8K8ky vZRZx1kT/IRU+t9k1mThSqiW2eO+p4u7q3B+hSQ+DhIdSmHUxu9pOIWt336WbIo8sl qj82Q5jOQQYeSds8qgt8/b1As/s6Cn9BC89hkdMjG2Ny09lwhxmfAXUqKUaDmNdv8f GkFl4L2mX0UH6vmzsQxbzmimKlqeCgRCKEPUkb+uZ7piw8SaCGOntK7nhbEed8IcN0 3rVY3IbogWwYKpIx6baz0KEVzEZI3z/YQIGyS/qPFlyeY/omyzeoUEXrddzL95PbPG kfvlI2FOxZL3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NX7TX36zkz6tnX; Wed, 14 Dec 2022 09:15:28 +0100 (CET) From: Ihor Radchenko To: Justin Silverman Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] issue with texmathp [9.6 (release_9.6-22-g78d283 @ /home/jds6696/.emacs.d/straight/build/org-mode/)] In-Reply-To: <874jtzhypq.fsf@gmail.com> References: <87v8mktt38.fsf@gmail.com> <878rjfsj9o.fsf@localhost> <874jtzhypq.fsf@gmail.com> Date: Wed, 14 Dec 2022 08:15:26 +0000 Message-ID: <87tu1yqu3l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671006539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aQ85jT5zGCWUe0txWwBEYfu6dKTk43waLGJySmahRAE=; b=FwDrKhsqvP/lvRJLK2w8NwhzCKbdYMQqZUhuDL6r9yRmgu0civ/mVd3IF1lckVl0EtVrT5 JktwiGeZY2EynfDpzhI8Gr1VR0InM495wO/lL20rM6vkSR4RZbiFojFOLLyem7CYbM1W3G dhIxRwburXa9mvQWHwOEYoIT3PPY+vvrUQqUyEjx4i6Xg+ix3HMFVb+OOOFYuy791lM4uL 6dBJkT5QuKKcCiTgFSa+E9HzgYpY9TeMkjufKn+k+u2bd6oJDQfHRlULi61M3t+lB8Zp04 1mdhwTJSEAjRdG2rV1P25r/NocRstFQ7VuYX5OLxaXvFR0sLxyJmhyjRePhMig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ADPxKkS6; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671006539; a=rsa-sha256; cv=none; b=o4lHjNCwO02Ra6kG56KXfEBvbZfJXNR180SLhz7QYRG6yGgPPNvoFN/09mHdOxXF30TwDh cNg1TCNEkl3w7Eue5aDmKbNxHBpVfd2vrjs1MjIsNfPsWEL7LEkD4vAYhWUO6wtyRg7zyg iOFGlTuS8gkP77ARPPteSydw6drV9LR24W8xqNsKKKlztqga3X4cYWj/uzLQl/Z4GT34ho ec+rVFWa8miDGBd6BVaZcPin71JhMiVoOVI2FSrSkCnMXu8dpe0ZnEatzPJHhT0DKsNl7n HpjNQ5rUYc8mW+KHCnPAu6f70ciUWCLR6ZgvTXsFtXZPTdSjgvewFVE4nMRvbw== X-Migadu-Spam-Score: -9.47 X-Spam-Score: -9.47 X-Migadu-Queue-Id: 87D91B4FB X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ADPxKkS6; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: QMU/OB5KQubs Justin Silverman writes: > Thanks for the quick response. I just had a chance to check it out. Unfortunately (unless I am mistaken), with the change, `texmathp' is now always returning t... which is not very helpful. Not exactly. I just tried to follow the docstring (defun org--math-always-on (orig-fun &rest args) "Always return t in Org buffers. This is because we want to insert math symbols without dollars even outside the LaTeX math segments. If Org mode thinks that point is actually inside an embedded LaTeX fragment, let `texmathp' do its job. `\\[org-cdlatex-mode-map]'" So, `texmathp' will return t outside latex, inside inline latex, and _maybe_ inside latex environments. Only inside latex environments, Org delegates the job to `textmathp'. Let me know if this change broke any real workflows. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at