From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KM5KI3rJiWLmBAAAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 07:26:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CNo7I3rJiWIwSgAA9RJhRA (envelope-from ) for ; Sun, 22 May 2022 07:26:18 +0200 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 184A07238 for ; Sun, 22 May 2022 07:26:18 +0200 (CEST) Received: from localhost ([::1]:34342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nse6b-0008VO-1z for larch@yhetil.org; Sun, 22 May 2022 01:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nse61-0008Uq-U5 for emacs-orgmode@gnu.org; Sun, 22 May 2022 01:25:41 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:38580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nse60-0003L3-9c for emacs-orgmode@gnu.org; Sun, 22 May 2022 01:25:41 -0400 Received: by mail-pf1-x433.google.com with SMTP id h13so4714720pfq.5 for ; Sat, 21 May 2022 22:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=MbOEZCpPwDRY5rKSKj8gT4gqLMnAKAu4lGX2HKeZdis=; b=SVpq6kheis+1hQvZOwctmCvbzPVfkMsljfLcVyJ/cVq+sd0ElyCSslOCivT1vBjs99 uS+/s61dHgJbeBY7DY8pE6axmZq1bEtWok80M9JzCpACXtUTSCzAU5uIT3bOV20u21pV 9uO2zUrxZiRBkPtt7WjOa1Q6u8ViN6nuzk1DJmekE+EAZXVj56+K5Vce/PWQCpSAqnhi ThMsRbdqGow/BWlbX8m/lnbIe1mqGydmVmh116SBu/OCiolFf7IApd1934fHB+tGfTTr TWhiSq+d3MJOpEYqHQy06hh0c4uKsa+37q3jBa4GYLN668nX7MkBXKRWvYRZqDfTDZa0 c+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=MbOEZCpPwDRY5rKSKj8gT4gqLMnAKAu4lGX2HKeZdis=; b=0/bEZScW27AEnH4uVF0g7aNpGfxGEFS09X43EIEO6VCkQN50EfGSoBPgAIrhGQdWND 9bwsKqCXw7gYJ+A5H0ybyVlcyTW0ZhpXcigeeGrEDV/OlPDaR2PQEZaD/WmeIG4pZV1f 1212rlFq9dAxgeasOkAgpXcudgEAMtWkqqopOZb9U5X5bHvDfq0bSra9eOoQj5RoptD9 QDdChOBldm94B0RS6QVTPDaHRg2BBI3jnxIz1ZlBRQXdATmw9SRBHREquzMxc3apxz2A RTA5rGVuiPZkBbY1iPHqT+7XgSWvZdAPL1gKPmSJuzTXylpSqmtwtzOHDVLLcBNXvj15 zu4w== X-Gm-Message-State: AOAM530QRepqbNiNQ4KpYqVmf/jPcyS9kEfcU4VHLkDBrm4f1uWixxWH pGgQndVL2SZhOOxLjYDsoho= X-Google-Smtp-Source: ABdhPJz+AzJKomybJoiKIXn5tDYfnPiY5vF1Dxqq48phgtKe9twyl6pBfea3un9EFomgx/o2jz/viw== X-Received: by 2002:a63:f91a:0:b0:3f2:8963:78c4 with SMTP id h26-20020a63f91a000000b003f2896378c4mr14910328pgi.593.1653197138832; Sat, 21 May 2022 22:25:38 -0700 (PDT) Received: from localhost ([45.83.130.130]) by smtp.gmail.com with ESMTPSA id r5-20020a170902ea4500b0015f300ed0b7sm2443526plg.76.2022.05.21.22.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 22:25:38 -0700 (PDT) From: Ihor Radchenko To: daanturo Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Let org-latex-compile fall back on org-latex-compiler as the default instead of "pdflatex" [9.6 (9.6-??-4f0f24447 @ /home/dan/.emacsen/doom-emacs/.local/straight/build-29.0.50/org/)] In-Reply-To: <954c81cb-163c-d62c-4894-c192e742d03e@gmail.com> References: <0aa3c066-9d34-d94b-680f-236e4b07a737@gmail.com> <87mtfap70e.fsf@localhost> <954c81cb-163c-d62c-4894-c192e742d03e@gmail.com> Date: Sun, 22 May 2022 13:26:20 +0800 Message-ID: <87bkvqp283.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=yantar92@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653197178; 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=MbOEZCpPwDRY5rKSKj8gT4gqLMnAKAu4lGX2HKeZdis=; b=E36A9Je506FBdIfIK4jZsf+Sykc8vtq5RRyXhz+QbXdJj17QbnTSGB6ktIcdv0v70B8z// ldmyzPDm/czwbbF1phtaEd4cZx44S9VqzML/gBIiJMyD1RX2JN0BCqzH0T6GQimrDaH3iH cbFE8SKddusXoD8SFiG9LgaApweMEimBwuwy/xfUEieGVmdn4YqTtLADcoDypaPQPvLusm FEMd57hUyoQUoBF1NcT0D96HfatYrNyQTmUqTG21FxbQtTMot12ky2YAakhaqZzt4Aa6Vv n5EvBE3JFpff9PvqpP9AJh3jRY8qbVsQ3i1UrnafgBJUGIvf53R73YshW7TNiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653197178; a=rsa-sha256; cv=none; b=hvZvM2P3KeOn4SQU8NqG60rm6vS72KifvXpKsfBNZwtTeqSYOGsUhnSRDDauH9V1jXEnpw 0q4Rr2Kc8DwfnPZkdyhWn0i1N8vNyYt1wU5lEZPL14o+Osae38uW9zIMvHqo0obBhYF7FB 2bds4S33iswCcS09crIqTTM4eEtGQwgrAOHNR0IMiTatq1N48yG908Pch7WMA9rNrNgdCw 49wOD+pScgvwoFuKGplPKa9ztxBjYvWRx9W18Xwe8BiSYiOVfiroyl+QugecrtoM4EE4nl D1gfVI8L7ctzLkJjnIxIPhV7yvMDEJ3GqO6t+kdhyDBWl8U9Mc2jTPft1DVEWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SVpq6khe; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SVpq6khe; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 184A07238 X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: IhGQRpjzjkQb daanturo writes: > On 5/22/22 10:42, Ihor Radchenko wrote: >> Can you provide more details on the problem? >> `org-latex-compile' relies on `org-latex--insert-compiler' that is >> called by `org-latex-template'. So, your org-latex-compiler >> customization should be obeyed. > > Sorry, I was a problem on my side, the file where I test has `org-latex-compiler-file-string' set to nil as a local variable. Note that `org-latex-compiler-file-string' must not be set to nil. It is not considered a valid value and causes undefined behavior. > But IMO, falling back to the customized `org-latex-compiler' instead of "pdflatex" should be intuitive. Not necessarily. If org-latex-compiler is not a member of org-latex-compilers, we need some sane fallback. Moreover, apart from org-latex-compiler variable, the compiler can be set locally in buffer or locally in the subtree. Either way, it is not necessarily clear which fallback is reasonable. I'd go as far as throwing an error instead of using "pdflatex", but alas, we already have the existing behavior and changing it without strong justification can break things for other users. Docstring of org-latex-compiler: >>> Must be an element in org-latex-compilers or the empty quote. >>> Can also be set in buffers via #+LATEX_COMPILER. See also >>> org-latex-compiler-file-string. Best, Ihor P.S. You dropped org mailing list from CC. Please, use "reply all" when replying to the Org mailing list messages in future.