From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel@dbrunner.de Subject: Problems with org-publish w/ #+INCLUDE: Date: Sun, 16 Oct 2011 13:05:10 +0200 Message-ID: <87d3dx9oyh.fsf@systemhaus-brunner.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFOX5-000508-Mu for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 07:05:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFOX4-0006Mn-0o for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 07:05:31 -0400 Received: from lo.gmane.org ([80.91.229.12]:43843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFOX3-0006Me-M2 for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 07:05:29 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RFOX0-0002Vn-E2 for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 13:05:26 +0200 Received: from p54955a79.dip.t-dialin.net ([84.149.90.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Oct 2011 13:05:26 +0200 Received: from daniel by p54955a79.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Oct 2011 13:05:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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:=20=20=20 #+LINK_HOME:=20 #+XSLT: #+BEGIN_HTML

Bar

#+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\nExpo= rt") 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/omt= ests/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) "@!=88A=C7 \"=C7 \"=C7 \"=86=00=1C \"=86#=CD=C7 \"=86-=0E= =1F \"=868=0E!\" \"=15 \"=1D\n\"#=1E$=15=83X=D4!=88=0B=83a=0D\f\"=88#=89= A#@=89$=83x=D6$#=88=82a=C7 \"=83=92=D9 \"!=88=DB=C7 \"\"#=88=1D=83=9B=D4!= =88 .=0B=87" [project project-plist exclude-regexp sitemap-p sitemap-filena= me sitemap-function org-publish-initialize-cache plist-get :exclude :auto-s= itemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-org-si= temap :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-pub= lish-write-cache-file org-publish-sitemap-date-format org-sitemap-date-form= at org-publish-sitemap-file-entry-format org-sitemap-file-entry-format file= s 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) "@!=88A=C7 \"=C7 \"=C7 \"=86=00=1C \"=86#=CD=C7 \"=86-= =0E=1F \"=868=0E!\" \"=15 \"=1D\n\"#=1E$=15=83X=D4!=88=0B=83a=0D\f\"=88#= =89A#@=89$=83x=D6$#=88=82a=C7 \"=83=92=D9 \"!=88=DB=C7 \"\"#=88=1D=83=9B= =D4!=88 .=0B=87" [project project-plist exclude-regexp sitemap-p sitemap-fi= lename sitemap-function org-publish-initialize-cache plist-get :exclude :au= to-sitemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-or= g-sitemap :sitemap-date-format :sitemap-file-entry-format :preparation-func= tion :completion-function org-publish-get-base-files nil run-hooks preparat= ion-function org-publish-file t :makeindex org-publish-index-generate-thein= dex :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-extens= ion "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-fun= ction org-publish-org-to-html))) org-publish-projects((("foo" :base-directory "/home/dbr/tmp/omtests" :bas= e-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publis= hing-function org-publish-org-to-html))) byte-code("?=85=00 =C4\n;=83=00\n=0B\"C=82=00\nC!)=87" [force org-publis= h-use-timestamps-flag project org-publish-project-alist org-publish-project= s assoc] 4) org-publish(("foo" :base-directory "/home/dbr/tmp/omtests" :base-extensio= n "org" :publishing-directory "/home/dbr/tmp/omtests/pub" :publishing-funct= ion org-publish-org-to-html)) byte-code("=C4 \"?=85=0B =89=84=00=C7 \"=88\n!*=87" [force org-publish-u= se-timestamps-flag project org-publish-get-project-from-filename buffer-fil= e-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.=20 Am I doing something wrong?=20 Kind regards, Daniel