From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ODTwJdAJuGBD8gAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 00:44:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uBrzINAJuGDrSAAAbx9fmQ (envelope-from ) for ; Wed, 02 Jun 2021 22:44:32 +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 1A46A185D8 for ; Thu, 3 Jun 2021 00:44:32 +0200 (CEST) Received: from localhost ([::1]:51768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loZbC-0004BT-CW for larch@yhetil.org; Wed, 02 Jun 2021 18:44:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loZai-0004B7-Ol for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:44:00 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:43930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loZag-0004uJ-8d for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 18:44:00 -0400 Received: by mail-pg1-x532.google.com with SMTP id e22so3515214pgv.10 for ; Wed, 02 Jun 2021 15:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=0d9NGry6WJ6pzRUqSNUbAenW+o5so7mJDqjh7+pF1B0=; b=ettD57EgSvlzapNnMTk9AaXxSR8GeTl7gyThL/0RZMuvYvfMg15Uq4GH6Z6UjGH5Lf wFsxhYF0IjGi1twdMW0DlWT//XxqvlNxmOv3FPPYOK7p/XzdcXYgXBH2hGCJctUmRxV7 eEjHk8xK41j9lTdXt90u5AziJe+EnYzx5EgtFUa9eA9wRKcsiWmMsJYp6HwIoHytWaLx VjpivQoVDFFzMl5kB+IUa52J9csn4QEza69ONfD0MXOnUcqc6Ux4vkGT/qrYpm18u76s Flb1FnUxc1+xhamNYME30b8VRqAhUrz7YJI/alVf9PVEw7H3WblE6mTP5oTPBvrTR0W/ KIIA== 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:cc:subject:date :in-reply-to:message-id:mime-version; bh=0d9NGry6WJ6pzRUqSNUbAenW+o5so7mJDqjh7+pF1B0=; b=O/8xqpumnL4PvDTtLwskKBSyCbHXb+Vu9K3uOSQEN0nSREoOTSfehj+Dk87RNbVnDJ wZOW2FVxHsomQEpM4bV6OdVJ4ckdLeZgKI5bHOv3GaJxcZF9LyJf/DR5hYGVtE0DDrj3 DsDJ7HD5I7Xl8e2qB5Jw1/POpTN1/R0cXibnahlgoenhYfbLZLJauEUFaFUh2oyCFGob cEk/mlhsiQEmLAM2JUlvvMBRnUQ/eqyGD+mEItWzIrU1JFT/6jCrb8y3LDRNRiEiqEtL 0fIdQjYmjepcU/ViL9d/yFZH8GV7WF/jHLlcCen+GggHrQJmxkuE25tL/S2ZT2yZgf70 +xzA== X-Gm-Message-State: AOAM530OJC9z5hwCaKKZmt628YsozOXoWmDnSHJjDMitbO8TIX2ZmKzn IjYjV5zlovwkcxi3noReFvfnrDUQaUk= X-Google-Smtp-Source: ABdhPJwYvBJHbJWTnu/X1BKt6S9V6u0nviLSJk6VjMMuNI4XL8mcjOQC3wWBCeweD4uDN4n5fLgZ8Q== X-Received: by 2002:a63:b25d:: with SMTP id t29mr20706449pgo.449.1622673836315; Wed, 02 Jun 2021 15:43:56 -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 e9sm483637pfv.87.2021.06.02.15.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 15:43:55 -0700 (PDT) References: <87wnrdqf6i.fsf@gmail.com> <87y2bs6589.fsf@gmail.com> <87tumgwdff.fsf@yandex.com> User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: Colin Baxter Subject: Re: suggestion to change default org-latex-pdf-process to latexmk Date: Thu, 03 Jun 2021 08:35:00 +1000 In-reply-to: <87tumgwdff.fsf@yandex.com> Message-ID: <87v96v6g60.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x532.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: , Cc: org-mode-email , Bruce D'Arcus 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=1622673872; 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=0d9NGry6WJ6pzRUqSNUbAenW+o5so7mJDqjh7+pF1B0=; b=G/9JS7tBBoswiGOFkfw7qxUXwdKeya0M8Ij1A+2qfpWzITAZKdjzkeZ6JXtxgZgJp4wF1C Ohq5rWYGcmYdzTM+vot0+k68pD/biCRYFoNnD1AfR4AIQjDYz40mpkYyw1FoW4IZTob6Z4 3WcZd7Cdra6vBdBgufnDO57OFxI4IPUiqoWuAv04R8KgY0FYVpLFNT9amow6RUs8KAsCwc T6G4sldB0tA3sfqrjBulgZKTBkaSeMdZi+e9sk5JPohLF6z8esnSgVsFVTDOok9x5J8aL3 t7VhtVTttPfDMRVXN0OMtoxRKcuPLWFrq7E+kY5drQETswDZhT3stNDZs8Y/5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622673872; a=rsa-sha256; cv=none; b=ilBLtb2mVCGOxDkTzGeOeOoF74eKs0IRQwV2Tnwf1ulc2j5F17wR4Ice/c02JXZE/FxYrz edJi/RKGtXwJMuNC3XyswRLuG67ReV6EXd9DC3U3MrsBjo84Mk1S8bxa/UxLCRJ6HGTOYE VxJlLYKs7IKMHm6UcUwHsctZNIaHYKuUxqX36016fZFlgkBlhFqvBK+alGEM74xKd7fDkx euRDKcUuvny5XgB4XThUl6Mbwt/P3mkb5AZ9t+YMPUmdZYF4zNaEyNl1a0M117uv1SNKJp 3vIEqludDCxInuxQPlqOzJ6D+mHrdks8UkxK2zPFIRdW+fU84oZMGI8fwhqKuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=ettD57Eg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=ettD57Eg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 1A46A185D8 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: grQhyTO5bYZz Colin Baxter writes: >>>>>> Bruce D'Arcus writes: > > > 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. > > > Bruce > > What effect is this likely to have on people who have specified latexmk? > For example, I have > > #+begin_src elisp > (setq org-latex-pdf-process '("latexmk -outdir=%o -f %f")) > (setq org-latex-compiler "pdflatex") > #+end_src > > I assume any change will have no effect, but is this correct? > Correct. Changing any default setting has no impact on anyone who sets the value to a non-default value. If the default is changed to be latexmk if latexmk is installed and set it to the existing default if not will only impact users who have latexmk installed, but have not configured org-latex-pdf-process to use it. For those who do not have it installed, it would have no effect. If on the other hand we just change the default to be latexmk, it will break org for anyone who does not have latexmk installed and who have not set org-latex-pdf-program until they install latexmk. For new users, it means needing to install latexmk (an optional package on some systems and already installed on others). As you can call elisp to initialise a variable, it would not be difficult to add initialising code for org-latex-pdf-program which first checks to see if latexmk is in the exec patch and if it is, set org-latex-pdf-program accordingly and if it is not, set the current default. I think this would have the least impact on all users. -- Tim Cross