From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Vivier Subject: Re: Bug: Modifying org-latex-pdf-process doesn't modify the async export behaviour Date: Sat, 7 Apr 2018 11:16:58 +0200 Message-ID: <30b544e2-e36b-f917-3e06-1cb2df048a53@gmail.com> References: <06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com> <87woxj5twk.fsf@nicolasgoaziou.fr> 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]:45422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4jy5-0001hX-2k for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 05:17:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4jy1-0002fE-Pm for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 05:17:05 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:41479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4jy1-0002dD-IZ for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 05:17:01 -0400 Received: by mail-wr0-x22b.google.com with SMTP id s12so3685033wrc.8 for ; Sat, 07 Apr 2018 02:17:01 -0700 (PDT) In-Reply-To: <87woxj5twk.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hello, Thank you for pointing me in the right direction. I've created another init file just for async-export, and not only have I got it to work, but it's also quite a lot faster than it used to be. All that remains now is to find a way to re-write my function. My knowledge of elisp if fairly limited, and I don't see how to communicate with the background process other than by writing the value of my toggle-variable to a file. I guess I could also make a modularise async-init.el and control which module is loaded from the main init.el. At any rate, thank you for your prompt reply. Best, On 07/04/18 09:59, Nicolas Goaziou wrote: > Hello, > > Leo Vivier writes: > >> 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). > > [...] > >> 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. > > The background process doesn't use whatever configuration is loaded in > current Emacs. Instead it loads a configuration file. See > `org-export-async-init-file'. > > You may also use local variables in your document, or switch async > configuration files. > > Regards, > -- Leo Vivier English Studies & General Linguistics Master Student, English Department Rennes 2