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 ms13.migadu.com with LMTPS id eBXwBGc91Gb2TgAAqHPOHw:P1 (envelope-from ) for ; Sun, 01 Sep 2024 10:09:43 +0000 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 eBXwBGc91Gb2TgAAqHPOHw (envelope-from ) for ; Sun, 01 Sep 2024 12:09:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=epJz+I1L; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="p/AMs3Vr"; 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=1725185383; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=J5pdoyL+N+7kp6clWGIZb1XbawwpbJThiwYGg1wqD3I=; b=UqC0CBmNia9mW5N4aKZMHL0ro5DAFzuHSogrXDsBBeA1Jg2onUfqAXm7o3Zfk1ixMIKaEK SMPcaRUXv7Tr0XHMrQgn4n/GR/ftVy9LZ1KTKwrRp0EY0qgqAOSHUIaGMgkGKT6Zg1HVmf UObba2ZcoIepeZCXaBbxUSBHm+yPahR/OAsokNzdGa2U+u+7cMZQOqqE4mr97JbwtDZ+SQ RIGtyV/k9dkF8O5UimZboQIb7IDVItg2pQfL2c0RfWyaiqmRzj47Ed6pxkS+NgLbrJxHic abH2OEmap+9eF98JjjIDaZBwpuNeuwoBh634vKPAoYvZ6Jn3vtI8eLdQySsvRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=epJz+I1L; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="p/AMs3Vr"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1725185383; a=rsa-sha256; cv=none; b=ZPDmBzi3l+7N5hp9dB5a4tvjj9GTklcDI90O+stuR84KSY02/UKFs+jYSeV8yUTbnTZFYq bAv3knZM2POA6kcT+ekT+pvWKHETNXUnjSu9ziccfNcMc/yaeKnTxA6TVnFWGXPWnOxUn8 +rQNty6eP6fYNwho8hn2IDIA+vsIwgOaM3oi3NMA/FTjxnx7wnfMOF0ygc9jGJFY0KQHC5 d++JshLD5LoVY+zy/Xl33Q+JBLgI7TDc1CdnLXTLsAsgO+2IXZaHUjLK0ttcJaBvJIjd65 tbyNNg0U5wITfSvab4/d4tFLorAjzJO/ylGKSp4tt3/De1hLRS+QmMWNFOcolQ== 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 C9A4E72BF4 for ; Sun, 1 Sep 2024 12:09:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skhVs-0008FR-2l; Sun, 01 Sep 2024 06:08:52 -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 1skhVq-0008FD-Bh for emacs-orgmode@gnu.org; Sun, 01 Sep 2024 06:08:50 -0400 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skhVn-00075W-TK for emacs-orgmode@gnu.org; Sun, 01 Sep 2024 06:08:49 -0400 Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id F14D011402A6 for ; Sun, 1 Sep 2024 06:08:45 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sun, 01 Sep 2024 06:08:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc: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=fm2; t=1725185325; x=1725271725; bh=J5pdoyL+N+ 7kp6clWGIZb1XbawwpbJThiwYGg1wqD3I=; b=epJz+I1L6viM/kMArUdvtV3EFi GJsZKnUd9pNOgzPp9cO1fuem6IP960I97tYo3luttpYshUTjye05nyKI3RkbIYb0 dcYUJBmafp3GIGtrgoijHQcSgho4tcNfmZWoFQls8chxEYVNOTqIu6H4IsUUN2d6 V/sp0EweDhNO9bWv8aJpZcPG3brTXkten8Bk8A9AHkZN7LpHE7ndNe1BelyZMTYf CUTuRmKHR4X303NsKsC1DmbaZ32MHYC+kW+4NNnCGeiWX0RGtwC0zIDkNmWBTeYW AfrVFtvAH+CWxYpMUdEGqd6wSfZyjKxijyS4jLJYNS+kJsqEKOYC4qJE8jLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1725185325; x=1725271725; bh=J5pdoyL+N+7kp6clWGIZb1Xbawwp bJThiwYGg1wqD3I=; b=p/AMs3VrMKaAqGJNTKGbt/FCJitgNNVQ94rfIMelaH39 jM5Wr6/Gj8+WEiP713PelBn3cZP7mq5NE6lFW3tOlC94qgWIdUuIdiZ3YHZbgnNr TQjnIbqXaQAjEKwpZAwU8BJX1Q9nmtysZbzfVAO3Gth+Mnq1yokQ2/nEm07mZrbR dKMz/7B/VNW7EwlAZH/okBuspuHBTp9Yl/Hj0vhXiz4ftnKsAL46bbsbC4Wi9D17 PdCY9hU3QUhSqT6covsAGY7jvL3yViqU5GtDSXB5TeFTuFaQLU0Vgtx3KhNHM1pS C3N4OxB9RkwFfpVP5731+3UlmtiMtJpoHNcAKS1vbg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeghedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujg hffffkgggtsehmtderredttdejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhi tgcuoehruhguohhlfhesrggurghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnh epieekjeeljeegieejieetjefgkeeuhfelteffjeehfeefleefgeffgeeivedtvdfhnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholh hfsegruggrmhhkohhvihgtrdhorhhgpdhnsggprhgtphhtthhopedupdhmohguvgepshhm thhpohhuthdprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 1 Sep 2024 06:08:45 -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: Sun, 01 Sep 2024 12:08:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=103.168.172.153; envelope-from=rudolf@adamkovic.org; helo=fhigh2-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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Spam-Score: -10.67 X-Migadu-Queue-Id: C9A4E72BF4 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.67 X-TUID: +FxgF9/5gpgL --=-=-= Content-Type: text/plain Oops, I found a bug in the patch. Now fixed. Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-texinfo-Check-for-math-support-without-warnings-a.patch >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 = 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" output-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-file))) + (ignore-errors (let ((inhibit-message t)) + (org-texinfo-compile input-file)))) (output-content (with-temp-buffer (insert-file-contents output-file) (buffer-string)))) -- 2.39.3 (Apple Git-146) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=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 --=-=-=--