From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Modifying org-latex-pdf-process doesn't modify the async export behaviour Date: Sat, 07 Apr 2018 09:59:23 +0200 Message-ID: <87woxj5twk.fsf@nicolasgoaziou.fr> References: <06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4il2-0002l1-QA for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 03:59:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4iky-0006Vg-02 for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 03:59:32 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53223) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f4ikx-0006VS-Ot for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 03:59:27 -0400 In-Reply-To: <06b5ea64-0770-42a1-b43b-38fdba52df5c@gmail.com> (Leo Vivier's message of "Fri, 6 Apr 2018 11:13:30 +0200") 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: Leo Vivier Cc: emacs-orgmode@gnu.org 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, -- Nicolas Goaziou