From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UGwEIZgNuGAP+wAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 01:00:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qKwHHJgNuGDUUAAAbx9fmQ (envelope-from ) for ; Wed, 02 Jun 2021 23:00:40 +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 009241C984 for ; Thu, 3 Jun 2021 01:00:40 +0200 (CEST) Received: from localhost ([::1]:38020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loZqo-0006Tr-6K for larch@yhetil.org; Wed, 02 Jun 2021 19:00:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loZq6-0006Tg-4Y for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:59:54 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:37802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loZq4-0007Dh-FS for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:59:53 -0400 Received: by mail-pf1-x431.google.com with SMTP id y15so3405181pfl.4 for ; Wed, 02 Jun 2021 15:59:52 -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=t+j7/oxK1bqa6FKLtf4O2wak21yjuDilCJ9jyarldJ0=; b=f69L2FfeQlawY+/kEfW1rbx8Behub75V70sk6DgnOHSxBeZ7B5e4okU3TzfBrmBPIE uYeSsM/FPoset/ebgm8YXCxLNSv3+uq9E7ATcCw8/rKiMM7vs6b0n0MN7cTEVEcqKr26 Y4haq0XzMR+GRPTQ46UGDgekQ4KB2RaJAz0D0h2uAGnHva41GJK2UJAp9v5tNvT3fzH/ IvxAegoVOW0lEyQY/jpnCAw+pGG010fKqG78U2Pp7fWMnCUEae7vgOdtAxLXNAIHg05a Fw8xFGtVbbnzB9cAMDK6FUwfvDJ9lPHeYYuzMWf1Q4zg2OJroiKEKXKlMGJjfC3lHnc0 9XDQ== 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=t+j7/oxK1bqa6FKLtf4O2wak21yjuDilCJ9jyarldJ0=; b=GuHwh1MnGCisCgMcgMXve8CQKxNyo/5wN3Z5WzjhaUo7cxpU4AdE2Y0w3y1n3xvgTr RWIOZg3G9fC+CMcOlI0rUBAAnKwYZNXMSOBqJmwBuqhmLB5nHi7hhiSEu8z+VukO/p4X AShzgduk/C8lcC/z+KxWGqd6TtUl+RJYlEa5CK1hYpHDveAIWFPdXZhFvU3z0vY7LWe+ nuxmlH32u6pONixJojoTSrFn9fbFM0o19XjqScQBkt03jO/xQTwbXUHUT1dFMZPrDlZJ uuajvWZfzYeCAT//oJA//Yqxx/nBT7hY+s86Aamcz6BcF9FFg0xPjkk+AjMJMRegQy0q Mciw== X-Gm-Message-State: AOAM532hnu5fby0sB4cSgjb2mmKVkkS5gxgLseLazAcPcACWYygdRV5t F/0hVgRCePBK6gnF0TEipi5n6bPBRT4= X-Google-Smtp-Source: ABdhPJwWwsnDdbhZieVfouBEUYT6UQiQJP/Clkuh2ZMh0e0XCoNfdy8x2iaa9Al3meT6dUDj/Kox3g== X-Received: by 2002:a62:2581:0:b029:2ea:228e:5a37 with SMTP id l123-20020a6225810000b02902ea228e5a37mr5098815pfl.63.1622674790666; Wed, 02 Jun 2021 15:59:50 -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 j1sm293832pgq.23.2021.06.02.15.59.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 15:59:50 -0700 (PDT) References: <87wnrdqf6i.fsf@gmail.com> <87y2bs6589.fsf@gmail.com> <6081953c-d7a2-649f-40be-5bfc294c14b6@gmail.com> <87k0nci6dz.fsf@web.de> 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:53:18 +1000 In-reply-to: <87k0nci6dz.fsf@web.de> Message-ID: <87pmx36ffg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x431.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=1622674840; 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=t+j7/oxK1bqa6FKLtf4O2wak21yjuDilCJ9jyarldJ0=; b=n67/FI9VE2PeUEn/NI66h++yVGbTNwDciKesCafOiS1nRNpTduv18CoDZX1c9lQ5xdqjCj maYebEl8s+OZYsX16PzwgNWj2CbPcKgl2wN9eiQRnjLjoaZpVkSBOFfPtw0vc1EX8tqmtO yqlOUtJT1xPY8KJbCyaLx/jeFGt07XReOjGs++gpT52xjcOtry7Jq2eHaJm/ACSBOYUd6/ 8DcnmpHe+/VjAoNYDvKWh7ofzdBo999nw/GFpbLg424B33tn06QTLn+4ML1n9j4E7Ii096 qhS1P/hgkkJNxzQiYV9PpdgMRUhSoeegE+7ga/gwgS2h9YiTtHWlPHR8LrVdew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622674840; a=rsa-sha256; cv=none; b=J9whbwgC3umA7waGCjrKXFZbvoQU/TJZ/xai0hCi2HkCndGmljITQDZz+kQELkr1jbFwT5 Fp853Fobs2Gv20fsDW08ZhoQGW3qklyfaoBeffaOtnG7Z6Ze8oHZ5wxF18HjEljhZ+s3KK hc8HuinnMKKXKy8z/9ugAHAjJjs3SKOu48AhwOWOQLPVMhYwaiX4iFsFbr9ngqVXrjamO0 APkAsAf3/yly5OdH/METDZokhlPInknepipm0EksayozNfHJ1qHRFmltPEZhUZz56tq9P6 bnaOS6MYRRzUyHfEzjqZyX1SyXJ4IeTZOS4HYQKt/pz5iDOH8Nxc51GPVbvL1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=f69L2Ffe; 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=f69L2Ffe; 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: 009241C984 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: PIXF1vlMf5gU "Dr. Arne Babenhauserheide" writes: > [[PGP Signed Part:Undecided]] > > 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. > > Is there a reason not to have the default check for availability when > run? It should be fast and would progressively improve (one step) when > the user installs latexmk. > Yes, because some people want to set specific programs. If you have code which checks for things at the point of being called, this becomes more complicated than necessary. If on the other hand you just check when first initialising, users who want to can override with a simple setq. It is also more efficient as the check is only done once at load time rather than every time you export to pdf. It should also be noted that the custom framework has good support for doing it this way. You can even add code which will check values entered by the user to verify they exist (for example and assuming they use custom to set a new value and not just a setq in their init file). -- Tim Cross