emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-latex-pdf-process as a lisp function?
@ 2023-04-30 14:27 John Kitchin
  2023-04-30 16:44 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2023-04-30 14:27 UTC (permalink / raw)
  To: Emacs Orgmode

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

The documentation for org-latex-pdf-process says that it can be a list of
strings, or a lisp function.

I have used a function for a long time, but recently it seems to have
broken. Now I get an error in org-compile-file. The issue comes in the
first line where (commands (org-compile-file-commands source process ext
spec err-msg) binds my function to commands, and later that is expected to
be a list, but it is a function now. I think this probably occurred in
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/lisp/org-macs.el?id=b29f77241681abd6fb12de3b7e26c009cb28c63d

In org-compile-file-commands, I think this line

 ((pred functionp) process)

should instead be

((pred functionp) (list process))

that seems to make it work for me.

Org mode version 9.7-pre (release_9.6.4-337-geaf274

-- 
John

-----------------------------------
Professor John Kitchin (he/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
https://kitchingroup.cheme.cmu.edu
https://pointbreezepubs.gumroad.com/ pycse bookstore

[-- Attachment #2: Type: text/html, Size: 1765 bytes --]

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

* Re: org-latex-pdf-process as a lisp function?
  2023-04-30 14:27 org-latex-pdf-process as a lisp function? John Kitchin
@ 2023-04-30 16:44 ` Ihor Radchenko
  2023-04-30 23:56   ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-04-30 16:44 UTC (permalink / raw)
  To: John Kitchin; +Cc: Emacs Orgmode

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> The documentation for org-latex-pdf-process says that it can be a list of
> strings, or a lisp function.
> ...
> In org-compile-file-commands, I think this line
>
>  ((pred functionp) process)
>
> should instead be
>
> ((pred functionp) (list process))

Yes, indeed.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=310a66891

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: org-latex-pdf-process as a lisp function?
  2023-04-30 16:44 ` Ihor Radchenko
@ 2023-04-30 23:56   ` John Kitchin
  0 siblings, 0 replies; 3+ messages in thread
From: John Kitchin @ 2023-04-30 23:56 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Emacs Orgmode

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

Thanks for this and the other one too!

On Sun, Apr 30, 2023 at 12:41 PM Ihor Radchenko <yantar92@posteo.net> wrote:

> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
> > The documentation for org-latex-pdf-process says that it can be a list of
> > strings, or a lisp function.
> > ...
> > In org-compile-file-commands, I think this line
> >
> >  ((pred functionp) process)
> >
> > should instead be
> >
> > ((pred functionp) (list process))
>
> Yes, indeed.
> Fixed, on main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=310a66891
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


-- 
John

-----------------------------------
Professor John Kitchin (he/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
https://kitchingroup.cheme.cmu.edu
https://pointbreezepubs.gumroad.com/ pycse bookstore

[-- Attachment #2: Type: text/html, Size: 2202 bytes --]

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

end of thread, other threads:[~2023-04-30 23:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-30 14:27 org-latex-pdf-process as a lisp function? John Kitchin
2023-04-30 16:44 ` Ihor Radchenko
2023-04-30 23:56   ` John Kitchin

Code repositories for project(s) associated with this public 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).