From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AD6oBVSf6GayRgEAqHPOHw:P1 (envelope-from ) for ; Mon, 16 Sep 2024 21:12:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AD6oBVSf6GayRgEAqHPOHw (envelope-from ) for ; Mon, 16 Sep 2024 23:12:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b="Fg/EJfO8"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="W S77M3+"; 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=adamkovic.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726521172; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1LW4jcXP7Rq9n3kPca4T+SqIPCnW5Z+spp7F8pzOrd0=; b=WfZLGHQgFh4KLE3iqlwgW5M1iFLKwGu0vsh/77NKiojSiQlwZ779gmqIVnXZo0H4LIdlPa Ml898wWtqvFf0TAEW6o2+cbpY831bZ5emrxwQIgAqLrRzMDMfR3KDMdaMPHIeCQNi4BHZX 50gA+pq8usXesVSw4PXQ+tI4mO0ytT+NtiMe4vVx/60swRkOgyB+bMVZmn4yiXmPOwHxYc qcpHwUv3FM+rvvlefOmZL7Iw29I1dVKfsOnTBtub46Dd/QsZJLT7f65/ruipZcPGF8I3VI CpKsCa4DEXD3TkpXxDVakEZUY+opWw2U8CiIy32BzgX0O1y36C3oKHfCpNNsLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726521172; a=rsa-sha256; cv=none; b=GEcW3w+GZEHfCD6g9EoVP/XXs7b8EJGZjtaohjR0YAqg2UyD6bqFUR7vHaOs/rqrl7zBJC Y1DnryERnaaZx3AvB6wpSn+NNWXHq7xV1CNuaYskofRMIYcwbblSod9UXxK0YH1JDKD54a dy9Fc+G0LuLwaG8dgCoI4YFxTuHkCKr2h7nLP1lq8YuX6T7+q6hf113OBpuSnQZdUGUD6s gXs5MWDhIikd3Q5nrq2V2+5ISA0xwkstMW85tcBEvKFFBr6wrymyWkndCA79WQ9Ssa114z EJjcPSYSMweb7GGvlzeVZwmTkjtQGxtt8S4bOVW+Ry/7Kr8pC3hMVVv86RMmvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b="Fg/EJfO8"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="W S77M3+"; 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=adamkovic.org 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 2B77B7C39D for ; Mon, 16 Sep 2024 23:12:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqJ0w-0004iy-FW; Mon, 16 Sep 2024 17:12:06 -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 1sqJ0v-0004iZ-04 for emacs-orgmode@gnu.org; Mon, 16 Sep 2024 17:12:05 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqJ0t-0003NS-47 for emacs-orgmode@gnu.org; Mon, 16 Sep 2024 17:12:04 -0400 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 06C831140097 for ; Mon, 16 Sep 2024 17:12:02 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 16 Sep 2024 17:12:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1726521122; x=1726607522; bh=1LW4jcXP7Rq9n3kPca4T+SqIPCnW5Z+spp7F8pzOrd0=; b= Fg/EJfO8OaPmzb/GmqGB7liFceSlruSkwT/M6eZ0I4PBw0CO5+VJKuFn8utdgMiD DpfQgj9fMzP3/8VrzplgN47ToqeykwAo2iNoFL5JO6JrA13yCNtzHEsYm7qTKwCn xot0JRLHARvDpz2wDqbE63E29hQpnHYPehY1D152rCnh/3eV2ycd+RLcETHrThsa qG/qp3sNEWTZb9tCS8V0stFjD/vpjBpQKRuKoNU2G3QXG1mjiw2rLXOuhDsRxHJ+ vo47iso4mEPMAhZwOJ607g/E9FvtZiO1g7pF8qjcHOrVpLa6bFbSRwJfrOlNyODX yA1IrXO45KpH48tx4vjfuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726521122; x= 1726607522; bh=1LW4jcXP7Rq9n3kPca4T+SqIPCnW5Z+spp7F8pzOrd0=; b=W S77M3+tVDM8wP+CpBskGIR/7JrmJpeqAJuccCNwaQM0Id4m5Olylvq3tqit+UwRs /SPlDQinyZkSJ+MdmjyFjR/btZr0NMg/eV/4jqaIn0gL0pVERLgEwxHT8VovZrGF jfkeQ1/08fko3Kfo9YWM68OgGPK058lR+Zw+qcNL4fphXFqKRQzsMrnsV1pmGA+A skF9N4wdVN03Juu3YQnZcNjNdC/nIsDyZUoi+KWJozXCg9eJT4TnuoezKM7/U/46 yPMOcRwnh3s/QtyKsPM/KrfU+ZdbOYnwYwOLWPy584hVWG22ahTVc/F3J9gpb0K/ IbiMa8tjuuw6NPUzL+ADg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekhedgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhho vhhitgcuoehruhguohhlfhesrggurghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvg hrnhephefghffhfeetheeitdevffelffetveduteejkeehvdfhjeevvdeukeehgfffheet necuffhomhgrihhnpegruggrmhhkohhvihgtrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholhhfsegruggrmhhkohhvihgt rdhorhhgpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtth hopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 16 Sep 2024 17:12:00 -0400 (EDT) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Re: [PATCH] Texinfo: Check for math support without warnings and quietly (was: Improve Texinfo math checking) In-Reply-To: References: Date: Mon, 16 Sep 2024 23:11:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.158; envelope-from=rudolf@adamkovic.org; helo=fhigh7-smtp.messagingengine.com 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_PASS=-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.69 X-Migadu-Queue-Id: 2B77B7C39D X-Spam-Score: -10.69 X-TUID: dYI8fU7rTM41 A friendly ping. :) Rudolf Adamkovi=C4=8D writes: > Oops, I found a bug in the patch. > > Now fixed. > > Rudy > From a99cb0ecafb6a0a1d4ef841dd20be5fa2da43cff Mon Sep 17 00:00:00 2001 > From: Rudolf Adamkovic > Date: Tue, 27 Aug 2024 11:10:56 +0200 > Subject: [PATCH] ox-texinfo: Check for math support without warnings and > quietly > > * lisp/ox-texinfo.el (org-texinfo-supports-math-p): Two > improvements: (1) Fix the incorrect `.info' extension used for the > temporary `.texi' file. This removes the warning "makeinfo: warning: > input file testXXX.info; did you mean testXXX.texi?" (2) Suppress > output when compiling the "Is math supported?" test file. This is to > avoid user confusion, as the user cares about their Texinfo file, not > implementation details. This removes the message "Processing Texinfo > file /var/.../testXXX.info...". > --- > lisp/ox-texinfo.el | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el > index 6adee9fca..b11808ed5 100644 > --- a/lisp/ox-texinfo.el > +++ b/lisp/ox-texinfo.el > @@ -2037,9 +2037,12 @@ Once computed, the results remain cached." > (unless (boundp 'org-texinfo-supports-math--cache) > (setq org-texinfo-supports-math--cache > (let ((math-example "1 + 1 =3D 2")) > - (let* ((input-file (make-temp-file "test" nil ".info")) > + (let* ((input-file (make-temp-file "test" nil ".texi")) > + (output-file > + (file-name-with-extension > + (file-name-sans-extension input-file) "info")) > (input-content (string-join > - (list (format "@setfilename %s" input= -file) > + (list (format "@setfilename %s" outpu= t-file) > "@node Top" > "@displaymath" > math-example > @@ -2050,7 +2053,8 @@ Once computed, the results remain cached." > (when-let* ((output-file > ;; If compilation fails, consider math to > ;; be not supported. > - (ignore-errors (org-texinfo-compile input-fil= e))) > + (ignore-errors (let ((inhibit-message t)) > + (org-texinfo-compile input-f= ile)))) > (output-content (with-temp-buffer > (insert-file-contents output= -file) > (buffer-string)))) > --=20 > 2.39.3 (Apple Git-146) > > --=20 > "I love deadlines. I love the whooshing noise they make as they go by." > --- Douglas Adams, The Salmon of Doubt, 2002 > > Rudolf Adamkovi=C4=8D [he/him] > http://adamkovic.org --=20 "One can begin to reason only when a clear picture has been formed in the imagination." --- Walter Warwick Sawyer, Mathematician's Delight, 1943 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org