From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun I Subject: Bug: org-babel-tangle-publish fails in copy-file step [8.3.1 (release_8.3.1-241-gea7ac0 @ /home/arunisaac/.emacs.d/org-mode/lisp/)] Date: Fri, 18 Sep 2015 20:00:40 +0530 Message-ID: <20150918143040.GA10797@steel> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcwgh-0006wt-0j for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 10:30:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zcwgc-0007JO-Nq for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 10:30:54 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:34084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcwgc-0007J4-AO for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 10:30:50 -0400 Received: by padhy16 with SMTP id hy16so52943762pad.1 for ; Fri, 18 Sep 2015 07:30:49 -0700 (PDT) Received: from localhost ([223.227.115.12]) by smtp.gmail.com with ESMTPSA id li11sm5126555pab.43.2015.09.18.07.30.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 07:30:47 -0700 (PDT) Content-Disposition: inline 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 --VrqPEDrXMn8OVzN4 Content-Type: multipart/mixed; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline When publishing files using org-babel-tangle-publish, if the :tangle header argument is given to a source block, and if org-babel-tangle-publish is called from a directory other than the directory in which the source file (that is, the file being tangled) exists, then org-babel-tangle-publish fails in the copy-file step. This happens because org-babel-tangle returns the file name (that is, the basename only) mentioned in the :tangle header argument, and org-babel-tangle-publish tries to copy that unqualified basename instead of the absolute path to the file. My emacs configuration follows. I used the minimal configuration given in the Feedback section of the org mode manual. The backtrace for the error is also attached. Thanks, Arun Isaac. Emacs : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Package: Org-mode version 8.3.1 (release_8.3.1-241-gea7ac0 @ /home/arunisaac/.emacs.d/org-mode/lisp/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'org-html-format-headline-default-function org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-publish-project-alist '(("basic" :base-directory "~/.emacs.d/org-tangle-bug/base" :base-extension "org" :publishing-directory "~/.emacs.d/org-tangle-bug/pub" :publishing-function org-babel-tangle-publish) ) ) --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=backtrace Content-Transfer-Encoding: quoted-printable Debugger entered--Lisp error: (file-error "Opening input file" "no such fil= e or directory" "/home/arunisaac/.emacs.d/org-tangle-bug/source.c") copy-file("source.c" "/home/arunisaac/.emacs.d/org-tangle-bug/pub/" t) #[(el) "\302=08 \303#\207" [el pub-dir copy-file t] 4]("source.c") mapc(#[(el) "\302=08 \303#\207" [el pub-dir copy-file t] 4] ("source.c")) org-babel-tangle-publish((:base-directory "~/.emacs.d/org-tangle-bug/base= " :base-extension "org" :publishing-directory "~/.emacs.d/org-tangle-bug/pu= b" :publishing-function org-babel-tangle-publish) "/home/arunisaac/.emacs.d= /org-tangle-bug/base/source.org" "/home/arunisaac/.emacs.d/org-tangle-bug/p= ub/") org-publish-file("/home/arunisaac/.emacs.d/org-tangle-bug/base/source.org= " ("basic" :base-directory "~/.emacs.d/org-tangle-bug/base" :base-extension= "org" :publishing-directory "~/.emacs.d/org-tangle-bug/pub" :publishing-fu= nction org-babel-tangle-publish) t) #[(project) "\306=08@!\210=08A=19\307 \310\"=1A\307 \311\"=1B\307 \312\"\= 206=1A=00\313=1C\307 \314\"\206#=00\315=1D\307 \316\"\206-=00=0E=1F=1E=1F\3= 07 \317\"\2068=00=0E =1E \307 \320\"=1E=17\307 \321\"=1E=1D\322=08\n\"=1E!\= 323\324\307 \325\"\"=1E\"=0E=17\203^=00\326\327!\210=0B\203g=00=0D=08\f\"\2= 10=0E!\330=1E#\211=1E$\203\216=00=0E$@\211=16#=0E\"\232\204\205=00\331=0E#= =08\332#\210=0E$A\211=16$\204r=00*\307 \333\"\203\245=00\334=08\307 \325\"\= "\210\331=0E\"=08\332#\210=0E=1D\203\256=00\326\335!\210\336 .=0B\207" [pro= ject project-plist exclude-regexp sitemap-p sitemap-filename sitemap-functi= on org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-f= ilename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-da= te-format :sitemap-file-entry-format :preparation-function :completion-func= tion org-publish-get-base-files expand-file-name "theindex.org" :base-direc= tory run-hooks preparation-function nil org-publish-file t :makeindex org-p= ublish-index-generate-theindex completion-function org-publish-write-cache-= file org-publish-sitemap-date-format org-publish-sitemap-file-entry-format = files theindex file --dolist-tail--] 6](("basic" :base-directory "~/.emacs.= d/org-tangle-bug/base" :base-extension "org" :publishing-directory "~/.emac= s.d/org-tangle-bug/pub" :publishing-function org-babel-tangle-publish)) mapc(#[(project) "\306=08@!\210=08A=19\307 \310\"=1A\307 \311\"=1B\307 \3= 12\"\206=1A=00\313=1C\307 \314\"\206#=00\315=1D\307 \316\"\206-=00=0E=1F=1E= =1F\307 \317\"\2068=00=0E =1E \307 \320\"=1E=17\307 \321\"=1E=1D\322=08\n\"= =1E!\323\324\307 \325\"\"=1E\"=0E=17\203^=00\326\327!\210=0B\203g=00=0D=08\= f\"\210=0E!\330=1E#\211=1E$\203\216=00=0E$@\211=16#=0E\"\232\204\205=00\331= =0E#=08\332#\210=0E$A\211=16$\204r=00*\307 \333\"\203\245=00\334=08\307 \32= 5\"\"\210\331=0E\"=08\332#\210=0E=1D\203\256=00\326\335!\210\336 .=0B\207" = [project project-plist exclude-regexp sitemap-p sitemap-filename sitemap-fu= nction org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitem= ap-filename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitema= p-date-format :sitemap-file-entry-format :preparation-function :completion-= function org-publish-get-base-files expand-file-name "theindex.org" :base-d= irectory run-hooks preparation-function nil org-publish-file t :makeindex o= rg-publish-index-generate-theindex completion-function org-publish-write-ca= che-file org-publish-sitemap-date-format org-publish-sitemap-file-entry-for= mat files theindex file --dolist-tail--] 6] (("basic" :base-directory "~/.e= macs.d/org-tangle-bug/base" :base-extension "org" :publishing-directory "~/= =2Eemacs.d/org-tangle-bug/pub" :publishing-function org-babel-tangle-publis= h))) org-publish-projects((("basic" :base-directory "~/.emacs.d/org-tangle-bug= /base" :base-extension "org" :publishing-directory "~/.emacs.d/org-tangle-b= ug/pub" :publishing-function org-babel-tangle-publish))) org-publish-project(("basic" :base-directory "~/.emacs.d/org-tangle-bug/b= ase" :base-extension "org" :publishing-directory "~/.emacs.d/org-tangle-bug= /pub" :publishing-function org-babel-tangle-publish) nil) call-interactively(org-publish-project record nil) command-execute(org-publish-project record) execute-extended-command(nil "org-publish-project") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) --AqsLC8rIMeq19msA-- --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJV/CAMAAoJEC4l7othgCuzrQ8IAIMrPwsvP88lRqcGnKue6T1Y VI3jOv11f7Vh6IEox6BjU77Okf/YgKldzog+d1/aPcANWIGykU9nxLjNLACgRWuk fOBR3xgv/7SsGcTRCkwVQlJoBAuegBoTQ2qOyiAG3fIsJnypJeXzxVRsIH1thYxp 1ccdW73/JAEbEUrWVQFezoq3iNebYHe9rzMTaHA4X0yN9ZUwIVvVzCjC9rL3sHfw AwvjegQDrZJVZCr/sMQ1Z9ffghFwEWQxgBAxets2PPljbGn/Bgt0O3cgw1EB3oZQ Yb8wNpIUQOgb+VU1We+tbC+w/9YJ3i+p+GQsDgDTKCzEdy8Dp2SdK2exLsmMEFQ= =NAcD -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--