emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* error when publishing
@ 2013-09-13 13:55 pw
  0 siblings, 0 replies; 6+ messages in thread
From: pw @ 2013-09-13 13:55 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

With org-mode 8.0.7 (emacs 23.4.1), I have some problems to publish a 
project.

I have this error : "Publishing file /home/xxx/site/org/index.org using 
`org-publish-org-to-html'
find-buffer-visiting: Wrong type argument: stringp, (:base-directory 
"~/site/org/" :base-extension "org" :publishing-directory 
"~/site/public_html/" :recursive t :publishing-function 
org-publish-org-to-html ...)"

I also had once this error : "org-publish-file: Symbol's function 
definition is void: org-publish-org-to-html"

I have this code into my .emacs :
-----------------------------
;; org-mode publishing
(require 'org-publish)
(setq org-publish-project-alist
       '(("org-notes"
      :base-directory "~/site/org/"
      :base-extension "org"
      :publishing-directory "~/site/public_html/"
      :recursive t
      :publishing-function org-publish-org-to-html
      :section-numbers nil
      :table-of-contents nil
      :export-creator-info nil
      :export-author-info nil
      :auto-preamble t
      )
     ("org-static"
      :base-directory "~/site/org/"
      :base-extension "css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg"
      :publishing-directory "~/site/public_html/"
      :recursive t
      :publishing-function org-publish-attachment
      )
     ("site" :components ("org-notes" "org-static"))))
-------------------------------

Any ideas ?

pw

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

* error when publishing
@ 2013-09-13 14:29 pw
  2013-09-13 15:26 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: pw @ 2013-09-13 14:29 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

With org-mode 8.0.7 (emacs 23.4.1), I have some problems to publish a 
project.

I have this error : "Publishing file /home/xxx/site/org/index.org using 
`org-publish-org-to-html'
find-buffer-visiting: Wrong type argument: stringp, (:base-directory 
"~/site/org/" :base-extension "org" :publishing-directory 
"~/site/public_html/" :recursive t :publishing-function 
org-publish-org-to-html ...)"

I also had once this error : "org-publish-file: Symbol's function 
definition is void: org-publish-org-to-html"

I have this code into my .emacs :
-----------------------------
;; org-mode publishing
(require 'org-publish)
(setq org-publish-project-alist
       '(("org-notes"
      :base-directory "~/site/org/"
      :base-extension "org"
      :publishing-directory "~/site/public_html/"
      :recursive t
      :publishing-function org-publish-org-to-html
      :section-numbers nil
      :table-of-contents nil
      :export-creator-info nil
      :export-author-info nil
      :auto-preamble t
      )
     ("org-static"
      :base-directory "~/site/org/"
      :base-extension "css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg"
      :publishing-directory "~/site/public_html/"
      :recursive t
      :publishing-function org-publish-attachment
      )
     ("site" :components ("org-notes" "org-static"))))
-------------------------------

Any ideas ?

pw

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

* Re: error when publishing
  2013-09-13 14:29 error when publishing pw
@ 2013-09-13 15:26 ` Nicolas Goaziou
  2013-09-13 20:28   ` pw
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-09-13 15:26 UTC (permalink / raw)
  To: pw; +Cc: emacs-orgmode

Hello,

pw <pw@riseup.net> writes:

> (require 'org-publish)

You shouldn't require "org-publish", which belongs to the old framework.
I think you can skip this part altogether. If it fails, try requiring
"ox-publish" instead.


Regards,

-- 
Nicolas Goaziou

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

* Re: error when publishing
  2013-09-13 15:26 ` Nicolas Goaziou
@ 2013-09-13 20:28   ` pw
  2013-09-13 21:36     ` pw
  2013-09-13 21:42     ` Nick Dokos
  0 siblings, 2 replies; 6+ messages in thread
From: pw @ 2013-09-13 20:28 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Le 13/09/2013 17:26, Nicolas Goaziou a écrit :
> You shouldn't require "org-publish", which belongs to the old framework.
> I think you can skip this part altogether. If it fails, try requiring
> "ox-publish" instead.
Thanks for your answer.

If I remove "require 'org-publish)" I have another error :

"org-publish-file: Symbol's function definition is void: 
org-publish-org-to-html"

Adding "(require 'ox-publish)" doesn't change anything.

pw

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

* Re: error when publishing
  2013-09-13 20:28   ` pw
@ 2013-09-13 21:36     ` pw
  2013-09-13 21:42     ` Nick Dokos
  1 sibling, 0 replies; 6+ messages in thread
From: pw @ 2013-09-13 21:36 UTC (permalink / raw)
  To: emacs-orgmode

I'm found myself the solution to my question which consiste in replacing 
"org-publish-org-to-html" by "org-html-publish-to-html" into my .emacs.

It's a shame that a lot of very good tutorials like Sebastian Rose's 
publishing one are a little bit outdated and, so, make people getting wrong.

pw

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

* Re: error when publishing
  2013-09-13 20:28   ` pw
  2013-09-13 21:36     ` pw
@ 2013-09-13 21:42     ` Nick Dokos
  1 sibling, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2013-09-13 21:42 UTC (permalink / raw)
  To: emacs-orgmode

pw <pw@riseup.net> writes:

> Le 13/09/2013 17:26, Nicolas Goaziou a écrit :
>> You shouldn't require "org-publish", which belongs to the old framework.
>> I think you can skip this part altogether. If it fails, try requiring
>> "ox-publish" instead.
> Thanks for your answer.
>
> If I remove "require 'org-publish)" I have another error :
>
> "org-publish-file: Symbol's function definition is void:
> org-publish-org-to-html"
>
> Adding "(require 'ox-publish)" doesn't change anything.
>

That's because org-publish-org-to-html went away in org 8.x. See this
file for a list of incompatibilities:

   http://orgmode.org/worg/org-8.0.html

Nick

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

end of thread, other threads:[~2013-09-13 21:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 14:29 error when publishing pw
2013-09-13 15:26 ` Nicolas Goaziou
2013-09-13 20:28   ` pw
2013-09-13 21:36     ` pw
2013-09-13 21:42     ` Nick Dokos
  -- strict thread matches above, loose matches on Subject: below --
2013-09-13 13:55 pw

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