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 kD3iE0afzWZjXAAAqHPOHw:P1 (envelope-from ) for ; Tue, 27 Aug 2024 09:41:26 +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 kD3iE0afzWZjXAAAqHPOHw (envelope-from ) for ; Tue, 27 Aug 2024 11:41:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=c4NEO18Q; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Oa8tSItc; dmarc=pass (policy=none) header.from=adamkovic.org; 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=1724751341; 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=U63yfR45UkP0HApiJZOBy3YDJ4i2Id/wTX9+CF7H2BA=; b=boJkz6BYgImhN16jWUm/8Pz38xBI12Q4pFdopdfaUjW2VYJ3MX3leNh4FRj4WfTIPyIvIS FRcF1t+KjplTX8/pREum0dg8Bqt6lnvulyrXjhs5fRCmkZ4SMPm7099IqU8ABwwkY9s0Od eOio258hPXttVYZNZOuKwHMQYiZp5NDU21HWF5kdNPQhNJduSCLqnfmnsqSDVtmHdHFMhA lVImxchz7aqMv4lrKI24wAb8QmHb3Y2XA55tGtIx/s+P5k8d9SmOTZEoy73NIF3qgSTpxv y3yh6GEsVktZaHuQhQtvXZBl+3UZ8LVeD5v0ozb2OYT6WH/ohXGwTBNlN4UykQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724751341; a=rsa-sha256; cv=none; b=SCrJCVVRqCNPItNzZVB5m4Fw9HF8r9YLdD2/QCEhH4IqF0OYHZb9ddw8rE5r5XBc6Tu7dh jqOEv2I97M4ATMf7EGDqJfXeB/GzzuypgU4kJlMBN8JMOTUfjTWyikD3g+EH7OhUvmuRX2 2ZtSFCM5aqOi87+D4dAVAcEMHNr8lAaxp37dO7TDNvqfsJ45h+kj6lrzMW5CZivgKat1qQ E8tCPM2K+vYMmUivf7aQquzkybnCNFUkyrqRtQsoPEUkEMKeaSDY2jVEjdGIqZwXIbzoZw HtsG8u/sq5sngoIirs02yMHFDb4ycLDWe+pPys3Nq4TVZan6pM7gyuWg+QDAtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=c4NEO18Q; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Oa8tSItc; dmarc=pass (policy=none) header.from=adamkovic.org; 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" 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 327096FA7D for ; Tue, 27 Aug 2024 11:35:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sisbD-0007i2-5m; Tue, 27 Aug 2024 05:34:51 -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 1sisbB-0007fn-CP for emacs-orgmode@gnu.org; Tue, 27 Aug 2024 05:34:49 -0400 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sisb3-0006I1-RB for emacs-orgmode@gnu.org; Tue, 27 Aug 2024 05:34:43 -0400 Received: from phl-compute-01.internal (phl-compute-01.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id B9007138FFDB for ; Tue, 27 Aug 2024 05:34:40 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 27 Aug 2024 05:34:40 -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 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1724751280; x=1724837680; bh=U63yfR45UkP0HApiJZOBy3YDJ4i2Id/w TX9+CF7H2BA=; b=c4NEO18QWHhutUPUSw7lEyXs4SqPLpE2qljOQix/XilzkQuk PYP46T9DmQBdFmfw3hxNpcFAVqnpVU6fQ9cfKP91dFZ6U+lIuTi0Ga9LJXpdx5cU HjXlboHmIzLP+jy4/WPrc6iP8l0yHDi2+XhX0wRgQ0Kn2R1S/NdJ5BQKL5YLAwPi BbDFWRchWt6r1Cu8zfXBYa2tZyvk2GQZckTVkZparRzCjHJrJ+CoBXZUXfFDAkUp 8M9xcuI847vRMqiAIvFzKjr2X074Kvjcj9Gg4tQqBjUhAVHcNHrn0UKLTIaNRiWS oIj6Gchs12DlQyKpC/4FRRcRrBm/YdhhANfVDQ== 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:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1724751280; x=1724837680; bh=U63yfR45UkP0HApiJZOBy3YDJ4i2Id/wTX9 +CF7H2BA=; b=Oa8tSItcp47Mq3gIoikuGWbkexFIDpdiZ43xuSzh8WOAH7lJXNX tycdqXFc0AZvcuu1tGFLFcqI8W8GVVbPitMztMab+u1KvptzLA/N2khqQxaTMuOh jHDI9yuaLPfFdVBa58aagssktiY01B7lxqyGo6P+0vrzDOG7ez8cvKjgN9YQwI/1 oO1G1agF6fVy4zpGCYhTCSCL7SXrWMGjXXs+zFZs5T/tffCqA2AqlCqBHa50N1I7 aG6EbFZNicEj1BXMFVpSGhyXdLIwsMCpOj8675apZgtuBwiUtJ096Mspjf9WPZXx 7JY7doI8PEvur8hqmFW6My2ZncZLF9Gw/5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeftddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuff fkgggtsehmtderredttdejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcu oehruhguohhlfhesrggurghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepff ekfeeuudeftdekveejjeevteffudetjeetgedtffduuedvjeekvdejueeiveffnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholhhfse gruggrmhhkohhvihgtrdhorhhgpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhp ohhuthdprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 27 Aug 2024 05:34:40 -0400 (EDT) From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Improve Texinfo math checking Date: Tue, 27 Aug 2024 11:34:37 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=103.168.172.146; envelope-from=rudolf@adamkovic.org; helo=fout3-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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 327096FA7D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.66 X-Spam-Score: -10.66 X-TUID: WXGvv5v66k0w --=-=-= Content-Type: text/plain Hello there! The attached patch improves how the Texinfo exporter checks if Texinfo supports `@math'. Please review and merge. Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-texinfo-Check-for-math-support-without-warnings-a.patch >From 49065a3d39dba83669e123297bf87ce76cba38d4 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 6adee9fca..149ab944f 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -2037,7 +2037,7 @@ 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")) (input-content (string-join (list (format "@setfilename %s" input-file) "@node Top" @@ -2050,7 +2050,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 "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 --=-=-=--