emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with org-publish w/ #+INCLUDE:
@ 2011-10-16 11:05 daniel
  2011-10-16 16:28 ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: daniel @ 2011-10-16 11:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 5281 bytes --]

Hi!

And another problem after an upgrade vom V6.something to a 7.7
release: Org-mode version 7.7 (release_7.7.380.g54d7df). When I use the
org-publish to produce a set of HTML pages I run into a error. Here is
an example:

I have a file "index.org":

--8<--
#+TITLE: Foo!
#+AUTHOR:    Daniel
#+EMAIL:     daniel@monkey
#+DATE:      2011-10-14 Fr
#+INCLUDE: include.org

Export it!
--8<--

Then I have a file "include.org" with all the options etc. (option
template included via C-c C-e t):

--8<--
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

#+BEGIN_HTML
  <h1>Bar</h1>
#+END_HTML
--8<--

Then I set the org-publish-project-alist:

--8<--
(require 'org-publish)
(setq org-publish-project-alist
      (list (list "foo"
		  :base-directory "/home/dbr/tmp/omtests"
		  :base-extension "org"
		  :publishing-directory "/home/dbr/tmp/omtests/pub"
		  :publishing-function 'org-publish-org-to-html)))
--8<--

Org-publish is from the 7.7 distribution directory. Then I visit
index.org and do a C-c C-e P and run in the following error:

--8<--
Debugger entered--Lisp error: (wrong-type-argument integerp nil)
  lsh(nil 16)
  org-publish-cache-ctime-of-src("/home/dbr/tmp/omtests/include.org\n\nExport")
  org-publish-cache-file-needs-publishing("/home/dbr/tmp/omtests/index.org" "/home/dbr/tmp/omtests/pub/" org-publish-org-to-html)
  org-publish-needed-p("/home/dbr/tmp/omtests/index.org" "/home/dbr/tmp/omtests/pub/" org-publish-org-to-html "/home/dbr/tmp/omtests/pub/")
  org-publish-file("/home/dbr/tmp/omtests/index.org" ("foo" :base-directory "/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html) t)
  #[(project) "\b@!ˆ\bAÇ	\"Ç	\"Ç	\"†\0\x1c	\"†#ÍÇ	\"†-\x0e\x1f 	\"†8\x0e!\"	\"\x15	\"\x1d\b\n\"#\x1e$\x15ƒXÔ!ˆ\vƒa\r\b\f\"ˆ#‰A#@‰$ƒxÖ$\b#ˆ‚aÇ	\"ƒ’Ù	\"!ˆÛÇ	\"\"\b#ˆ\x1dƒ›Ô!ˆ .\v‡" [project project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format :sitemap-file-entry-format :preparation-function :completion-function org-publish-get-base-files nil run-hooks preparation-function org-publish-file t :makeindex org-publish-index-generate-theindex :base-directory expand-file-name "theindex.org" completion-function org-publish-write-cache-file org-publish-sitemap-date-format org-sitemap-date-format org-publish-sitemap-file-entry-format org-sitemap-file-entry-format files file] 6](("foo" :base-directory "/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html))
  mapc(#[(project) "\b@!ˆ\bAÇ	\"Ç	\"Ç	\"†\0\x1c	\"†#ÍÇ	\"†-\x0e\x1f 	\"†8\x0e!\"	\"\x15	\"\x1d\b\n\"#\x1e$\x15ƒXÔ!ˆ\vƒa\r\b\f\"ˆ#‰A#@‰$ƒxÖ$\b#ˆ‚aÇ	\"ƒ’Ù	\"!ˆÛÇ	\"\"\b#ˆ\x1dƒ›Ô!ˆ .\v‡" [project project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format :sitemap-file-entry-format :preparation-function :completion-function org-publish-get-base-files nil run-hooks preparation-function org-publish-file t :makeindex org-publish-index-generate-theindex :base-directory expand-file-name "theindex.org" completion-function org-publish-write-cache-file org-publish-sitemap-date-format org-sitemap-date-format org-publish-sitemap-file-entry-format org-sitemap-file-entry-format files file] 6] (("foo" :base-directory "/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html)))
  org-publish-projects((("foo" :base-directory "/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html)))
  byte-code("\b?…\0	Ä\n;ƒ\0\n\v\"C‚\0\nC!)‡" [force org-publish-use-timestamps-flag project org-publish-project-alist org-publish-projects assoc] 4)
  org-publish(("foo" :base-directory "/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html))
  byte-code("Ä \"\b?…\v	‰„\0Ç \"ˆ\n!*‡" [force org-publish-use-timestamps-flag project org-publish-get-project-from-filename buffer-file-name up error "File %s is not part of any known project" org-publish] 4)
  org-publish-current-project(nil)
  call-interactively(org-publish-current-project)
  org-export(nil)
  call-interactively(org-export nil nil)
--8<--

It seemed that due to the #+INCLUDE tag the
org-publish-cache-file-need-publishing gets a bit confused with the
filename and tries to call org-publish-cache-ctime-of-src with the file
name plus a string "\n\nExport" which are the next three lines of the
org file index.org. 

Am I doing something wrong? 


Kind regards, Daniel

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

end of thread, other threads:[~2011-10-16 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-16 11:05 Problems with org-publish w/ #+INCLUDE: daniel
2011-10-16 16:28 ` Nick Dokos
2011-10-16 18:00   ` Carsten Dominik
2011-10-16 19:42     ` Daniel Brunner
2011-10-16 22:20     ` Nick Dokos

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