From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: publish not working in git version Date: Tue, 2 Dec 2008 17:56:27 +0100 Message-ID: <09E83650-D2E2-433F-8543-8237F89C34D1@uva.nl> References: <4932c543.170e660a.26c3.ffff87fa@mx.google.com> <878wqybo5b.fsf@gollum.intra.norang.ca> <49356349.0437560a.18b1.ffffc64d@mx.google.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7YY6-00076R-Ck for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 11:56:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7YY3-00075y-VM for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 11:56:33 -0500 Received: from [199.232.76.173] (port=59617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7YY3-00075v-PA for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 11:56:31 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]:35129) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7YY3-0002qX-0F for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 11:56:31 -0500 Received: by fg-out-1718.google.com with SMTP id l26so2366072fgb.30 for ; Tue, 02 Dec 2008 08:56:29 -0800 (PST) In-Reply-To: <49356349.0437560a.18b1.ffffc64d@mx.google.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: Bernt Hansen , org-mode Hi Richard, the new backtrace shows that your project does not define =20= a base directory. - Carsten On Dec 2, 2008, at 5:32 PM, Richard Riley wrote: > > Bernt Hansen writes: > >> Carsten Dominik writes: >> >>> Anyone else having trouble with publishing recently? >> >> Publishing seems to work for me. >> > > Hi Carsten, > > Still the same. I removed the elc from org code as you requested. > > Latest git, following a publish file "C-c C-e f": > > ,---- > | Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > | file-truename(nil) > | (file-name-as-directory (file-truename (plist-get project-=20 > plist :base-directory))) > | (let* ((project ...) (project-plist ...) (ftname ...) =20 > (publishing-function ...) (base-dir ...) (pub-dir ...) tmp-pub-dir) =20= > (setq tmp-pub-dir (file-name-directory ...)) (if (listp publishing-=20 > function) (mapc ... publishing-function) (funcall publishing-=20 > function project-plist filename tmp-pub-dir))) > | (progn (let* (... ... ... ... ... ... tmp-pub-dir) (setq tmp-pub-=20= > dir ...) (if ... ... ...)) (org-publish-update-timestamp filename)) > | (if (org-publish-needed-p filename) (progn (let* ... ... ...) =20 > (org-publish-update-timestamp filename))) > | (when (org-publish-needed-p filename) (let* =20 > (... ... ... ... ... ... tmp-pub-dir) (setq tmp-pub-dir ...) =20 > (if ... ... ...)) (org-publish-update-timestamp filename)) > | org-publish-file("/home/shamrock/webs/richardriley/index.org") > | (let ((org-publish-use-timestamps-flag ...)) (org-publish-file =20 > (buffer-file-name))) > | (save-window-excursion (let (...) (org-publish-file ...))) > | org-publish-current-file(nil) > | call-interactively(org-publish-current-file) > | (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-=20 > process-sentinel p ...) (message "Background process \"%s\": =20 > started" p)) (call-interactively (nth 1 ass))) > | (let* ((bg ...) (help "[t] insert the export option template=20 > \n[v] limit export to visible part of outline tree\n\n[a] export =20 > as ASCII\n\n[h] export as HTML\n[H] export as HTML to temporary =20 > buffer\n[R] export region as HTML\n[b] export as HTML and browse =20 > immediately\n[x] export as XOXO\n\n[l] export as LaTeX\n[p] export =20 > as LaTeX and process to PDF\n[d] export as LaTeX, process to PDF, =20 > and open the resulting PDF document\n[L] export as LaTeX to =20 > temporary buffer\n\n[i] export current file as iCalendar file\n[I] =20 > export all agenda files as iCalendar files\n[c] export agenda files =20= > into combined iCalendar file\n\n[F] publish current file\n[P] =20 > publish current project\n[X] publish... (project will be prompted =20 > for)\n[A] publish all projects") (cmds ...) r1 r2 ass) (save-window-=20= > excursion (delete-other-windows) (with-output-to-temp-buffer "*Org =20 > Export/Publishing Help*" ...) (org-fit-window-to-buffer ...) =20 > (message "Select command: ") (setq r1 ...)) (setq r2 (if ... ... =20 > r1)) (unless (setq ass ...) (error "No command associated with key =20 > %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (call-=20 > interactively ...))) > | org-export(nil) > | call-interactively(org-export nil nil) > | recursive-edit() > | byte-code("=C6=10 @=C7=3D=83!=C8=C9=CA\"=88=CB=C9!=89=1AA@)=A2=CC=3D= =83!=C8=CD=CA\"=88=CE=0B!=88=CF =88=D0 !=88\f=83d=D1ed\" > V=83Web=88=D2 > =A5y=88`=1E=1Bdb=88=D2 > =A5 > Zy=88=0E=1B`|=88)=D3c=88eb=88=D4=D5=D6 \"=88=D7=C6!=88=D4=D8!=88=D9=CA=1E= =1C=1E=1D=D4=D8!=88=8A=DA =88+=D9=87" [unread-command-=20 > char debugger-args x debugger-buffer noninteractive debugger-batch-=20 > max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-=20= > to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" =20= > message "%s" buffer-string kill-emacs "" nil recursive-edit =20 > middlestart buffer-read-only standard-output] 4) > | debug(error (wrong-type-argument arrayp nil)) > | file-truename(nil) > | (file-name-as-directory (file-truename (plist-get project-=20 > plist :base-directory))) > | (let* ((project ...) (project-plist ...) (ftname ...) =20 > (publishing-function ...) (base-dir ...) (pub-dir ...) tmp-pub-dir) =20= > (setq tmp-pub-dir (file-name-directory ...)) (if (listp publishing-=20 > function) (mapc ... publishing-function) (funcall publishing-=20 > function project-plist filename tmp-pub-dir))) > | (progn (let* (... ... ... ... ... ... tmp-pub-dir) (setq tmp-pub-=20= > dir ...) (if ... ... ...)) (org-publish-update-timestamp filename)) > | (if (org-publish-needed-p filename) (progn (let* ... ... ...) =20 > (org-publish-update-timestamp filename))) > | (when (org-publish-needed-p filename) (let* =20 > (... ... ... ... ... ... tmp-pub-dir) (setq tmp-pub-dir ...) =20 > (if ... ... ...)) (org-publish-update-timestamp filename)) > | org-publish-file("/home/shamrock/webs/richardriley/index.org") > | (let ((org-publish-use-timestamps-flag ...)) (org-publish-file =20 > (buffer-file-name))) > | (save-window-excursion (let (...) (org-publish-file ...))) > | org-publish-current-file(nil) > | call-interactively(org-publish-current-file) > | (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-=20 > process-sentinel p ...) (message "Background process \"%s\": =20 > started" p)) (call-interactively (nth 1 ass))) > | (let* ((bg ...) (help "[t] insert the export option template=20 > \n[v] limit export to visible part of outline tree\n\n[a] export =20 > as ASCII\n\n[h] export as HTML\n[H] export as HTML to temporary =20 > buffer\n[R] export region as HTML\n[b] export as HTML and browse =20 > immediately\n[x] export as XOXO\n\n[l] export as LaTeX\n[p] export =20 > as LaTeX and process to PDF\n[d] export as LaTeX, process to PDF, =20 > and open the resulting PDF document\n[L] export as LaTeX to =20 > temporary buffer\n\n[i] export current file as iCalendar file\n[I] =20 > export all agenda files as iCalendar files\n[c] export agenda files =20= > into combined iCalendar file\n\n[F] publish current file\n[P] =20 > publish current project\n[X] publish... (project will be prompted =20 > for)\n[A] publish all projects") (cmds ...) r1 r2 ass) (save-window-=20= > excursion (delete-other-windows) (with-output-to-temp-buffer "*Org =20 > Export/Publishing Help*" ...) (org-fit-window-to-buffer ...) =20 > (message "Select command: ") (setq r1 ...)) (setq r2 (if ... ... =20 > r1)) (unless (setq ass ...) (error "No command associated with key =20 > %c" r1)) (if (and bg ... ... ...) (let ... ... ...) (call-=20 > interactively ...))) > | org-export(nil) > | call-interactively(org-export nil nil) > `---- > > > My project lists are: > > ,---- > | (setq org-publish-project-alist > | `( > | ("web-extra" > | :base-directory ,rgr-source > | :publishing-directory ,rgr-publish > | :base-extension "gif\\|jpg\\|jpeg\\|png\\|css" > | :publishing-function org-publish-attachment > | :recursive t > | ) > | ("web-org" > | :base-directory ,rgr-source > | :publishing-directory ,rgr-publish > | :base-extension "org" > | :publishing-function org-publish-org-to-html > | :recursive t > | :section-numbers nil > | :style " | href=3D\"./style.css\" > | type=3D\"text/css\">" > | :auto-preamble t > | :auto-postamble t > | :preamble ,(format "
Back = - =20 > Home" rgr-home) > | :postamble "
" > | :author nil > | ) > | ("web" > | :components("web-org" "web-extra") > | ) > | ) > | ) > | > `---- > > And as I say, the latest official release works fine. > > regards > > Richard.