From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: Publish-current-file error Date: Tue, 2 Feb 2010 17:47:15 -0500 Message-ID: <3cbb63d01002021447l61bb747m97af29bde7e368b5@mail.gmail.com> References: <3cbb63d01002021430l179200fei70be0d36c6bbb1cb@mail.gmail.com> <12521.1265150160@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0068284338==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcRX3-00066Y-AX for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 17:47:41 -0500 Received: from [199.232.76.173] (port=50938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcRX2-00066P-US for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 17:47:40 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcRX0-0004JU-62 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 17:47:40 -0500 Received: from mail-yx0-f175.google.com ([209.85.210.175]:58747) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcRWz-0004JC-I5 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 17:47:37 -0500 Received: by yxe5 with SMTP id 5so433860yxe.24 for ; Tue, 02 Feb 2010 14:47:37 -0800 (PST) In-Reply-To: <12521.1265150160@alphaville.usa.hp.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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --===============0068284338== Content-Type: multipart/alternative; boundary=0016e6d283a34f6dea047ea5e3c1 --0016e6d283a34f6dea047ea5e3c1 Content-Type: text/plain; charset=ISO-8859-1 Hey nick, My Emacs is GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600). Org: Org-mode version 6.34c. I just start a new org file, say, PHY.org, type very simple words, then tried M-x org-publish-current-file. The *backtrace* tells: -------- Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-as-directory(nil) (let* ((project-plist ...) (base-dir ...) (include-list ...) (recurse ...) (extension ...) (match ...)) (setq org-publish-temp-files nil) (org-publish-get-base-files-1 base-dir recurse match exclude-regexp exclude-regexp) (mapc (lambda ... ...) include-list) org-publish-temp-files) org-publish-get-base-files(("options" :section-numbers nil :table-of-contents nil :style "") nil) (and p (org-publish-get-base-files p exclude)) (let* ((exclude ...) (files ...)) (mapc (lambda ... ...) files)) (lambda (p) (let* (... ...) (mapc ... files)))(("options" :section-numbers nil :table-of-contents nil :style "")) mapc((lambda (p) (let* (... ...) (mapc ... files))) (("org-notes" :base-directory "~/.emacs.d/org/org/" :base-extension "org" :recursive t :publishing-function org-publish-org-to-html :publishing-directory "~/.emacs.d/org/public_html/" :headline-levels 4 :footnotes t :language "utf-8" :auto-index t :index-filename "index.org" :index-title "LooChao's Homepage" :auto-preamble t :auto-postamble t :postamble "
\n\n\n\n\n\n\n
EmacsOrgPrinceton
\n
" :style " \n \n ") ("org-static" :base-directory "~/.emacs.d/org/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/.emacs.d/org/public_html/" :recursive t :publishing-function org-publish-attachment) ("options" :section-numbers nil :table-of-contents nil :style ""))) (let (all-files) (mapc (lambda ... ...) (org-publish-expand-projects projects-alist)) all-files) org-publish-get-files((("org-notes" :base-directory "~/.emacs.d/org/org/" :base-extension "org" :recursive t :publishing-function org-publish-org-to-html :publishing-directory "~/.emacs.d/org/public_html/" :headline-levels 4 :footnotes t :language "utf-8" :auto-index t :index-filename "index.org" :index-title "LooChao's Homepage" :auto-preamble t :auto-postamble t :postamble "
\n\n\n\n\n\n\n
EmacsOrgPrinceton
\n
" :style " \n \n ") ("org-static" :base-directory "~/.emacs.d/org/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/.emacs.d/org/public_html/" :recursive t :publishing-function org-publish-attachment) ("org" :components ("org-notes" "org-static")) ("options" :section-numbers nil :table-of-contents nil :style ""))) (setq org-publish-files-alist (org-publish-get-files org-publish-project-alist)) (progn (setq org-publish-files-alist (org-publish-get-files org-publish-project-alist))) (if (or refresh (not org-publish-files-alist)) (progn (setq org-publish-files-alist ...))) (when (or refresh (not org-publish-files-alist)) (setq org-publish-files-alist (org-publish-get-files org-publish-project-alist))) org-publish-initialize-files-alist() org-publish-current-file(nil) call-interactively(org-publish-current-file t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) ---------------------- Anything else I could do? Thanks a lot, Chao On Tue, Feb 2, 2010 at 5:36 PM, Nick Dokos wrote: > Chao Lu wrote: > > > > Today I was trying to publish a single org file using > > org-publish-current-file, however, org refused to do so, the error > message > > is > > > > ==== > > let*: Wrong type argument: stringp, nil > > ==== > > > > I believe the org-publish function work well, for I could get the > > pre-defined project published smoothly. So do anyone has met similar > > problem? > > > > Please set debug-on-error to t and after recreating the error, post the > resulting backtrace. See the "Feedback" section of the Org manual for more > details on how to report problems. > > HTH, > Nick > --0016e6d283a34f6dea047ea5e3c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey nick,

My Emacs is GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600). <= br>Org: Org-mode version 6.34c.

I just start a new org file, say, PH= Y.org, type very simple words, then tried
M-x org-publish-current-file.<= br>
The *backtrace* tells:
--------
Debugger entered--Lisp error: (wr= ong-type-argument stringp nil)
=A0 file-name-as-directory(nil)
=A0 (l= et* ((project-plist ...) (base-dir ...) (include-list ...) (recurse ...) (e= xtension ...) (match ...)) (setq org-publish-temp-files nil) (org-publish-g= et-base-files-1 base-dir recurse match exclude-regexp exclude-regexp) (mapc= (lambda ... ...) include-list) org-publish-temp-files)
=A0 org-publish-get-base-files(("options" :section-numbers nil :t= able-of-contents nil :style "<script type=3D\"text/javascript\= ">\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* <![CDATA[ *= /\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set("= ; TOC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_m= anager.set(" LOCAL_TOC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 org_html_manager.set(" VIEW_BUTTONS ", " true &= quot;);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set= (" MOUSE_HINT ", " underline "); // or background-color= like '#eeeeee'\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_= html_manager.setup ();\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* ]]= > */\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </script>"= ;) nil)
=A0 (and p (org-publish-get-base-files p exclude))
=A0 (let* ((exclude .= ..) (files ...)) (mapc (lambda ... ...) files))
=A0 (lambda (p) (let* (.= .. ...) (mapc ... files)))(("options" :section-numbers nil :table= -of-contents nil :style "<script type=3D\"text/javascript\&quo= t;>\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* <![CDATA[ */\n= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set(" T= OC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_mana= ger.set(" LOCAL_TOC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 org_html_manager.set(" VIEW_BUTTONS ", " true &quo= t;);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set(&q= uot; MOUSE_HINT ", " underline "); // or background-color li= ke '#eeeeee'\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_htm= l_manager.setup ();\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* ]]>= ; */\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </script>"))=
=A0 mapc((lambda (p) (let* (... ...) (mapc ... files))) (("org-notes&q= uot; :base-directory "~/.emacs.d/org/org/" :base-extension "= org" :recursive t :publishing-function org-publish-org-to-html :publis= hing-directory "~/.emacs.d/org/public_html/" :headline-levels 4 := footnotes t :language "utf-8" :auto-index t :index-filename "= ;index.org" :index-title "LooCha= o's Homepage" :auto-preamble t :auto-postamble t :postamble "= <div id=3D'hosted'>\n<table>\n<tr>\n<td><= ;a href=3D'http://www.gn= u.org/software/emacs/'><img src=3D'./theme/emacs-logo.png= ' alt=3D'Emacs' title =3D'Powered by GNU/Emacs' style= =3D'width:30px;'/></a></td>\n<td><a href=3D= 'http://orgmode.org/'><im= g src=3D'./theme/org-logo-unicorn.png' alt=3D'Org' title=3D= 'Powered by Emacs Org-mode'=A0 style=3D'width:30px;'/>&l= t;/a></td>\n<td><a href=3D'http://www.princeton.edu'><img src=3D'./theme/= PUTiger-logo.gif' alt=3D'Princeton' title=3D'Hosted by Prin= ceton'=A0 style=3D'width:30px;'/></a></td>\n<= /tr>\n</table>\n</div>" :style "<link rel=3D\&q= uot;stylesheet\" href=3D\"./theme/org.css\"=A0 type=3D\"= ;text/css\"> </link>\n=A0=A0=A0=A0=A0=A0=A0=A0 <script typ= e=3D\"text/javascript\" src=3D\"theme/org-info.js\">= </script>\n=A0=A0=A0 =A0<script type=3D\"text/javascript\&quo= t; src=3D\"http://orgmode.o= rg/org-info.js\"></script>") ("org-static"= :base-directory "~/.emacs.d/org/org/" :base-extension "css\= \|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory = "~/.emacs.d/org/public_html/" :recursive t :publishing-function o= rg-publish-attachment) ("options" :section-numbers nil :table-of-= contents nil :style "<script type=3D\"text/javascript\"&g= t;\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* <![CDATA[ */\n=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set(" TOC = ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager= .set(" LOCAL_TOC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 org_html_manager.set(" VIEW_BUTTONS ", " true ")= ;\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set("= ; MOUSE_HINT ", " underline "); // or background-color like = '#eeeeee'\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_m= anager.setup ();\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* ]]> *= /\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </script>"))) =A0 (let (all-files) (mapc (lambda ... ...) (org-publish-expand-projects pr= ojects-alist)) all-files)
=A0 org-publish-get-files((("org-notes&qu= ot; :base-directory "~/.emacs.d/org/org/" :base-extension "o= rg" :recursive t :publishing-function org-publish-org-to-html :publish= ing-directory "~/.emacs.d/org/public_html/" :headline-levels 4 :f= ootnotes t :language "utf-8" :auto-index t :index-filename "= index.org" :index-title "LooChao= 's Homepage" :auto-preamble t :auto-postamble t :postamble "&= lt;div id=3D'hosted'>\n<table>\n<tr>\n<td><= a href=3D'http://www.gnu= .org/software/emacs/'><img src=3D'./theme/emacs-logo.png&= #39; alt=3D'Emacs' title =3D'Powered by GNU/Emacs' style=3D= 'width:30px;'/></a></td>\n<td><a href=3D= 9;http://orgmode.org/'><img s= rc=3D'./theme/org-logo-unicorn.png' alt=3D'Org' title=3D= 9;Powered by Emacs Org-mode'=A0 style=3D'width:30px;'/></= a></td>\n<td><a href=3D'http://www.princeton.edu'><img src=3D'./theme/PUT= iger-logo.gif' alt=3D'Princeton' title=3D'Hosted by Princet= on'=A0 style=3D'width:30px;'/></a></td>\n</tr= >\n</table>\n</div>" :style "<link rel=3D\"= ;stylesheet\" href=3D\"./theme/org.css\"=A0 type=3D\"te= xt/css\"> </link>\n=A0=A0=A0=A0=A0=A0=A0=A0 <script type= =3D\"text/javascript\" src=3D\"theme/org-info.js\">&= lt;/script>\n=A0=A0=A0 =A0<script type=3D\"text/javascript\"= ; src=3D\"http://orgmode.or= g/org-info.js\"></script>") ("org-static" = :base-directory "~/.emacs.d/org/org/" :base-extension "css\\= |js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory &= quot;~/.emacs.d/org/public_html/" :recursive t :publishing-function or= g-publish-attachment) ("org" :components ("org-notes" &= quot;org-static")) ("options" :section-numbers nil :table-of= -contents nil :style "<script type=3D\"text/javascript\"&= gt;\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* <![CDATA[ */\n=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set(" TOC = ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager= .set(" LOCAL_TOC ", 1);\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 org_html_manager.set(" VIEW_BUTTONS ", " true ")= ;\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_manager.set("= ; MOUSE_HINT ", " underline "); // or background-color like = '#eeeeee'\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org_html_m= anager.setup ();\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /* ]]> *= /\n=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </script>"))) =A0 (setq org-publish-files-alist (org-publish-get-files org-publish-projec= t-alist))
=A0 (progn (setq org-publish-files-alist (org-publish-get-file= s org-publish-project-alist)))
=A0 (if (or refresh (not org-publish-file= s-alist)) (progn (setq org-publish-files-alist ...)))
=A0 (when (or refresh (not org-publish-files-alist)) (setq org-publish-file= s-alist (org-publish-get-files org-publish-project-alist)))
=A0 org-publ= ish-initialize-files-alist()
=A0 org-publish-current-file(nil)
=A0 ca= ll-interactively(org-publish-current-file t nil)
=A0 execute-extended-command(nil)
=A0 call-interactively(execute-extende= d-command nil nil)
----------------------

Anything else I could d= o?

Thanks a lot,

Chao

On Tu= e, Feb 2, 2010 at 5:36 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
<= div class=3D"h5">Chao Lu <loochao@g= mail.com> wrote:


> Today I was trying to publish a single org file using
> org-publish-current-file, however, org refused to do so, the error mes= sage
> is
>
> =3D=3D=3D=3D
> let*: Wrong type argument: stringp, nil
> =3D=3D=3D=3D
>
> I believe the org-publish function work well, for I could get the
> pre-defined project published smoothly. So do anyone has met similar > problem?
>

Please set debug-on-error to t and after recreating the error, = post the
resulting backtrace. See the "Feedback" section of the Org manual= for more
details on how to report problems.

HTH,
Nick

--0016e6d283a34f6dea047ea5e3c1-- --===============0068284338== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0068284338==--