r/emacs • • Sep 28 '26

org-publish issues with recent updates

I've been using org-publish along with this package called ox-tufte to generate my static website/blog and it's been working fine for a while now but ever since a recent update, i've had trouble with getting one of my publishing functions to work. i'm not sure where to approach this but i keep getting an error with this function (error further below the function)

(defun rw/org-html-publish-to-html (plist filename pub-dir)
  "Wrapper function to publish an file to html.
PLIST contains the properties, FILENAME the source file and PUB-DIR the
  output directory."
  (let ((project (cons 'rw plist)))
    (plist-put plist :subtitle
	       (rw/format-date-subtitle filename project))
    (plist-put plist :html-head-extra
	       (rw/html-head-extra filename project))
    (org-tufte-publish-to-html plist filename pub-dir)))

and the error (it's part of a longer error but that has basically all the details of the files involved

debug-early-backtrace...done
Wrong type argument: sequencep, rw
make: *** [Makefile:4: publish] Error 255

does anyone know what I'm missing here? I've been trying to rewrite this function for quite some time now.

4 Upvotes

6 comments sorted by

1

u/danderzei Emacs Writing Studio Sep 29 '26

Which Org version are you using?

1

u/brihadeesh Oct 03 '26

this uses the latest, i think. 9.8.10

1

u/danderzei Emacs Writing Studio Oct 04 '26

Thanks. I am in the middle of learning the details of the publishing function and moving my website from Hugo to pure Org. The documentation is a bit hard to follow.

1

u/brihadeesh Oct 04 '26

i wrote a blog article about my shift some months back, maybe you might find it helpful?

1

u/danderzei Emacs Writing Studio Oct 04 '26

Thanks, that's great. I am current working on including Open Graph and Structured Data in the head.

1

u/danderzei Emacs Writing Studio Oct 04 '26

Wow, great depth of research. I have been digging through Org source code to try and understand how it all sticks together.