emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-publish parameters mismatch →  cannot publish to HTML
@ 2013-11-27  4:58 Daniel Clemente
  2013-11-27 13:49 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2013-11-27  4:58 UTC (permalink / raw)
  To: emacs-orgmode


  Hi, in ox-publish.el I see in line 555:

(defun org-publish-org-to (backend filename extension plist &optional pub-dir)
…

  org-publish-org-to-html seems to have its parameters in the same order (filename, extension, plist). Correct me if I'm wrong.

  But then in same file, line 654:
		(when (org-publish-needed-p
		       filename pub-dir f tmp-pub-dir base-dir)
		  (funcall f project-plist filename tmp-pub-dir)
…

  With the default setting f == org-publish-org-to-html, the funcall passes parameters in the wrong order: plist filename. It should be: filename extension plist

  Later I see org trying to open the „filename“ variable which is not a file name but a plist:
(wrong-type-argument stringp (:base-directory "~/repoweb/ofinial…" …) …)
file-truename((:base-directory "~/repoweb/ofinial/hacer/" :publishing-directory …) …)


  Maybe my setup is wrong (I'm confused with the org-publish / ox-publish mix) but the org-publish-project-alist seems safe; the stranges thing is:   :publishing-function org-publish-org-to-html


  Does org-publish work for someone else? Why do I see new problems each time I try to publish…?

  Thanks

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

* Re: org-publish parameters mismatch → cannot publish to HTML
  2013-11-27  4:58 org-publish parameters mismatch → cannot publish to HTML Daniel Clemente
@ 2013-11-27 13:49 ` Nick Dokos
  2013-11-28  6:19   ` Daniel Clemente
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2013-11-27 13:49 UTC (permalink / raw)
  To: emacs-orgmode

Daniel Clemente <n142857@gmail.com> writes:

>   Hi, in ox-publish.el I see in line 555:
>
> (defun org-publish-org-to (backend filename extension plist &optional pub-dir)
> …
>
>   org-publish-org-to-html seems to have its parameters in the same
>   order (filename, extension, plist). Correct me if I'm wrong.
>
>   But then in same file, line 654:
> 		(when (org-publish-needed-p
> 		       filename pub-dir f tmp-pub-dir base-dir)
> 		  (funcall f project-plist filename tmp-pub-dir)
> …
>
>   With the default setting f == org-publish-org-to-html, the funcall
>   passes parameters in the wrong order: plist filename. It should be:
>   filename extension plist
>
>   Later I see org trying to open the „filename“ variable which is not
> a file name but a plist: (wrong-type-argument stringp (:base-directory
> "~/repoweb/ofinial…" …) …) file-truename((:base-directory
> "~/repoweb/ofinial/hacer/" :publishing-directory …) …)
>
>
>   Maybe my setup is wrong (I'm confused with the org-publish /
>   ox-publish mix) but the org-publish-project-alist seems safe; the
>   stranges thing is: :publishing-function org-publish-org-to-html
>
>
>   Does org-publish work for someone else? Why do I see new problems
>   each time I try to publish…?
>

If you are using org8.X, then org-publish-org-to-html no longer
exists. If it does, you are picking up old org bits from somewhere.

See http://orgmode.org/worg/org-8.0.html for some tips, but bear in mind
that it's probably incomplete.

-- 
Nick

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

* Re: org-publish parameters mismatch → cannot publish to HTML
  2013-11-27 13:49 ` Nick Dokos
@ 2013-11-28  6:19   ` Daniel Clemente
  2014-01-03 15:40     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2013-11-28  6:19 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode


> >
> >   org-publish-org-to-html seems to have its parameters in the same
> >   order (filename, extension, plist). Correct me if I'm wrong.
> >
> 
> If you are using org8.X, then org-publish-org-to-html no longer
> exists. If it does, you are picking up old org bits from somewhere.
> 

True. And I was following an outdated page which used org-publish-org-to-html: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html
With the new function, it works, thanks.

Can we use define-obsolete-function-alias for the old functions?

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

* Re: org-publish parameters mismatch → cannot publish to HTML
  2013-11-28  6:19   ` Daniel Clemente
@ 2014-01-03 15:40     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2014-01-03 15:40 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: Nick Dokos, emacs-orgmode

Hi Daniel,

Daniel Clemente <n142857@gmail.com> writes:

> True. And I was following an outdated page which used
> org-publish-org-to-html:
> http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html

Can you fix this page?  You're in a better position to do so,
as you know what have been confusing.

Thanks!

-- 
 Bastien

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

end of thread, other threads:[~2014-01-03 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-27  4:58 org-publish parameters mismatch → cannot publish to HTML Daniel Clemente
2013-11-27 13:49 ` Nick Dokos
2013-11-28  6:19   ` Daniel Clemente
2014-01-03 15:40     ` Bastien

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).