emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-export-async-start: overwriting start-process NAME
@ 2022-01-23 23:05 Viktor Sonesten
  2022-01-24  0:25 ` Viktor Sonesten
  0 siblings, 1 reply; 2+ messages in thread
From: Viktor Sonesten @ 2022-01-23 23:05 UTC (permalink / raw)
  To: emacs-orgmode

I'm trying to export a PDF asynchronously, but get a void-function on
the first use-package in my init.el. I believe this is because my emacs
installation is wrapped in Nix and by default an emacs that doesn't know
about use-package is used, so I want to override the NAME given applied
on start-process in org-export-async-start.

I'm looking at the below in ox.el

      (let* ((process-connection-type nil)
             (proc-buffer (generate-new-buffer-name "*Org Export Process*"))
             (process
	      (apply
	       #'start-process
	       (append
		(list "org-export-process"
		      proc-buffer
		      (expand-file-name invocation-name invocation-directory)
		      "--batch")
		(if org-export-async-init-file
		    (list "-Q" "-l" org-export-async-init-file)
		  (list "-l" user-init-file))
		(list "-l" temp-file))) ; ...

and it seems that "org-export-process" is NAME here, but that's not
something I have in PATH.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-export-async-start: overwriting start-process NAME
  2022-01-23 23:05 org-export-async-start: overwriting start-process NAME Viktor Sonesten
@ 2022-01-24  0:25 ` Viktor Sonesten
  0 siblings, 0 replies; 2+ messages in thread
From: Viktor Sonesten @ 2022-01-24  0:25 UTC (permalink / raw)
  To: emacs-orgmode


Viktor Sonesten <v@tmplt.dev> writes:
> [...] so I want to override the NAME given applied on start-process in
> org-export-async-start.
I missed some documentation: it's PROGRAM I'm looking for, not NAME.
PROGRAM is invocation-name, so "emacs" by default.

Thanks for being the rubber duck.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-24  0:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 23:05 org-export-async-start: overwriting start-process NAME Viktor Sonesten
2022-01-24  0:25 ` Viktor Sonesten

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).