From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Vivier Subject: Bug: Modifying org-latex-pdf-process doesn't modify the async export behaviour Date: Fri, 6 Apr 2018 11:13:30 +0200 Message-ID: <06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4NRF-00066u-2k for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 05:13:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4NRA-0000Gx-5I for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 05:13:41 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:34560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4NR9-0000GX-VX for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 05:13:36 -0400 Received: by mail-wm0-x234.google.com with SMTP id w2so7202417wmw.1 for ; Fri, 06 Apr 2018 02:13:35 -0700 (PDT) Received: from [192.168.1.36] (lcs07-lyo-176-188-242-162.sfr.lns.abo.bbox.fr. [176.188.242.162]) by smtp.gmail.com with ESMTPSA id f10sm7653129wrg.0.2018.04.06.02.13.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Apr 2018 02:13:32 -0700 (PDT) Content-Language: en-GB List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, I've encountered an issue trying to write a function to toggle between two org-latex-pdf-process states (short & long). The function works as intended when using synchronous export (the PDF is created with the appropriate number of steps), but it doesn't work with asynchronous export (org-latex-pdf-process isn't grabbed past the first run). Here's my function: # ---------------------------------------------------------------------- (defvar zaeph/org-latex-pdf-process-mode) (defun zaeph/toggle-org-latex-pdf-process () "Toggle the number of steps in the xelatex PDF process." (interactive) (if (or (not (bound-and-true-p zaeph/org-latex-pdf-process-mode)) (string= zaeph/org-latex-pdf-process-mode "short")) (progn (setq org-latex-pdf-process '("xelatex -shell-escape\ -interaction nonstopmode\ -output-directory %o %f" "biber %b" "xelatex -shell-escape\ -interaction nonstopmode\ -output-directory %o %f" "xelatex -shell-escape\ -interaction nonstopmode\ -output-directory %o %f") zaeph/org-latex-pdf-process-mode 'long) (message "XeLaTeX process mode: Long")) (progn (setq org-latex-pdf-process '("xelatex -shell-escape\ -interaction nonstopmode\ -output-directory %o %f") zaeph/org-latex-pdf-process-mode 'short) (message "XeLaTeX process mode: Short")))) (zaeph/toggle-org-latex-pdf-process) # ---------------------------------------------------------------------- I've tried appending (org-reload) to my function, but it didn't work. I've also tried modifying org-latex-pdf-process on a fresh emacs session prior to any async export, and I can confirm that it grabs the latest state of org-latex-pdf-process. I'd surmise that async export has a process running in the background, but I don't know how to force it to reload. Would you have any idea? Thanks. Best, -- Leo Vivier English Studies & General Linguistics Master Student, English Department Rennes 2