From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aN00NbELuGCQ9gAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 00:52:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kGZCMLELuGBlFAAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 22:52:33 +0000 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 A166E1032B for ; Thu, 3 Jun 2021 00:52:32 +0200 (CEST) Received: from localhost ([::1]:57408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loZix-00004z-F6 for larch@yhetil.org; Wed, 02 Jun 2021 18:52:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loZiP-0008WV-AL for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:51:57 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:47025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loZiN-00023S-Ru for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:51:57 -0400 Received: by mail-pj1-x1030.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso2666465pjb.5 for ; Wed, 02 Jun 2021 15:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=gI2ForYyLHdug6S6W6Dzu5Eju6wrddyVa0ebhFWOns8=; b=D+UNFQOo5od3c2lznmni3Otl12gfVoIeNoDncBeseJF3jXXe3ILd8k9vj2IFg6genN 7gXoPNfOtDv2pyIguYa3nTq6omzzSU8kikfcBJ5RiHjUYt8aMXuKkMHpFK9QMqjRLreL aXnyMoqiE6upf+g+VH/X/RV3UuJm81gwa8X7a7CDziPGrxSvKtJJbmcOPYEJCTZh3db0 8BITnbP7B9pgj0AjVbZqnOfFNr8NXcmoR0uiWzrEo0ozZu7Dloe+Nn/Qj4Oh7GJycVYb AnjKZtMA2edTJtXCcLYHqdQDip2naioNywXhjyPbspWp3Xy2qT5qv7gmb2104/fZPrbR BcQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=gI2ForYyLHdug6S6W6Dzu5Eju6wrddyVa0ebhFWOns8=; b=e15h9OhW0yL/+cLEGs2gSudcBkj5B0PJWu9XAVawQu754xSrjFo3FBRqSHwEHDrSu8 YuRVVdV2AN2jRUYwlVlgV+2+LeHGh5HNq57+4ZI/s+j8UtMGC9hB/CZ4FbLoEHPL80MX DNutSali2Pm8wooSnYFel+fx2VeQq6cpdU2XDStuNwsMFREjOeyrL2Xe4WQqegwGcMYk DQHKDe20eTy0dYqf819l6inAnfkM9e0aew+y15hmc5uNMgnIgCx69frvs+lGteHIcWPo 80zVxEXfUzJVbx9uyqioBpyq/LMta1MUClQOGJt5qrDyNyDMOqO3YymQE1sSRzAlLgZX 2VUQ== X-Gm-Message-State: AOAM531Q72KmGLm1mxfBq3zVFJkk6S85EXwQtP4bQXK51edmnhKCQfSS zeNOqETLr2I/JdML/QZA5hq+DD0P5zE= X-Google-Smtp-Source: ABdhPJxYe0YSIAL2TpoxYOs+JoHlcA1Mc2B9gKwaF9M9BrNZa2wqnywsUAA5dmKkdmqMZbVyH9NmcQ== X-Received: by 2002:a17:902:728c:b029:f6:6aff:4d66 with SMTP id d12-20020a170902728cb02900f66aff4d66mr33013907pll.20.1622674313734; Wed, 02 Jun 2021 15:51:53 -0700 (PDT) Received: from tim-desktop (220-235-14-215.dyn.iinet.net.au. [220.235.14.215]) by smtp.gmail.com with ESMTPSA id f139sm515454pfa.38.2021.06.02.15.51.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 15:51:53 -0700 (PDT) References: <87wnrdqf6i.fsf@gmail.com> <87y2bs6589.fsf@gmail.com> <6081953c-d7a2-649f-40be-5bfc294c14b6@gmail.com> User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: suggestion to change default org-latex-pdf-process to latexmk Date: Thu, 03 Jun 2021 08:44:33 +1000 In-reply-to: <6081953c-d7a2-649f-40be-5bfc294c14b6@gmail.com> Message-ID: <87sg1z6fsp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622674352; 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=gI2ForYyLHdug6S6W6Dzu5Eju6wrddyVa0ebhFWOns8=; b=iCUDuYCJZOXqbQJYT6Gut3XXBwlNbTv2hoPTTCliU7n5o3WCXrfnDxLNvKWm+25i+AoSNM 5T+Gxl5KDNU584eKft+rihKOz/o4J2CgUafneZSznNRdjZjNI8obkWmE5J5tMzOEM5P1Be UOwTonfjiMl2mNt6KKbnY3Ks5yELn48WWQS0NZS0qXIDFGQJl1Qe96oAk3q09tAWV5jVJh yqLff3NH0nqxcP1zuYYBiKvFTzv0bGXnHs7VIlq5q1pE3XImIywa1rKbrHXEjvVDV1eWLB cTuIefsOkQA5IMx6CWLaWl5EwXU22ZLp30tK20CI+6Xfqbl8Ss9lA7Uy0ql8Yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622674352; a=rsa-sha256; cv=none; b=YNi+4rA1SQcVllOe70kMXD+Jxn7J6UtBZPT7H6iijiVYAOAyFyr2QXCe1yWXejKgz8lPR4 e/lwv1OevhRAL3487d6tzgjvSu0sCuukIigo3zFTNykDYIhYRcNWUkKhuBsJ0COGN0pw1m LIVurAcnXa4rM/lwaSfAL/T/G64m0dwRf3jYI9NbNxNXqmdhcTzPAsgcw2aOZVGAtj7Tmr YGzyqIMMl5BTAIQPWo2WIEIz++ZrAzbdMqBzEE3lS+IlM9aHf0buBro30ju00DcpcCEvZh gqM222Rc1PYRYvQoVOeHWBxwQGjc+sRn0Wlp+QQLhT/DHdlDAydqoM6WnOerJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=D+UNFQOo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=D+UNFQOo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A166E1032B X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: Gy1Jhm9QqRN/ Scott Randby writes: > On 6/2/21 8:07 AM, Bruce D'Arcus wrote: >> On Wed, Jun 2, 2021 at 4:28 AM Tim Cross wrote: >> >>> The more I think about it, I think the best solution would be to update >>> the code which sets the default and have it check for latexmk. If it is >>> found, set it as the default and if it is not found, set the existing >>> default. This would have minimum impact on users and allow those who >>> have installed latexmk to get the benefits while not forcing those who >>> don't need it to install it. >> If this were possible, I agree it would be the best approach. > > Perhaps this is a stupid question, but what about the case in which TeX is > installed after Emacs is installed? I do this sometimes. > No impact. The code is initialised each time you load org. If you start Emacs and then install TeX/LaTeX (including latexmk), you would have the existing default until the next time you start Emacs, at which time the default will be set to latexmk. This 'pattern' of setting a value based on code which selects an appropriate value based on what is on the system is already used extensively in Emacs. -- Tim Cross