From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Austin F. Frank" Subject: [babel] with-parsed-tramp-file-name Date: Wed, 29 Sep 2010 19:08:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1722207496==" Return-path: Received: from [140.186.70.92] (port=33291 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P15lK-0001cr-Ix for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 19:08:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P15lI-0008H8-Pw for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 19:08:34 -0400 Received: from lo.gmane.org ([80.91.229.12]:58628) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P15lI-0008H0-AE for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 19:08:32 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P15lG-00020S-SE for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 01:08:30 +0200 Received: from haskins-nat.haskins.yale.edu ([128.36.197.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 01:08:30 +0200 Received: from austin.frank by haskins-nat.haskins.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 01:08:30 +0200 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: emacs-orgmode@gnu.org --===============1722207496== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello! Recently I discovered that I can no longer evaluate R source code blocks on a file opened using TRAMP. I've recreated the bug using a minimal config. The process to reproduce this bug is described below. Using Org-mode version 7.01trans (release_7.01h.746.g72c5) with the following minimal configuration: =2D-8<---------------cut here---------------start------------->8--- ;; specific to my setup (add-to-list 'load-path (expand-file-name "~/src.remote/org-mode/lisp/")) (add-to-list 'load-path (expand-file-name "/usr/local/share/emacs/site-lisp= /")) ;; general instructions (require 'tramp) (require 'tramp-sh) ; have to do this to set tramp-remote-path? (require 'ess-site) (require 'org-install) (setq debug-on-error t) ;; active Babel languages (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) ;; required for R to work correctly on my remote server (add-to-list 'tramp-remote-path 'tramp-own-remote-path) =2D-8<---------------cut here---------------end--------------->8--- I evaluate the following code block from a file accessed using TRAMP: =2D-8<---------------cut here---------------start------------->8--- #+source: R-options #+BEGIN_SRC R :cache no :results silent :exports none options(digits =3D 4) theme_set(theme_bw(18)) theme_thesis <- theme_update(panel.margin =3D unit(1.5, "lines")) theme_set(theme_thesis) lattice.options(default.args =3D list(as.table =3D TRUE)) dev.new() #+END_SRC =2D-8<---------------cut here---------------end--------------->8--- And get the following backtrace: #v+ Debugger entered--Lisp error: (invalid-function with-parsed-tramp-file-name) with-parsed-tramp-file-name("/scpc:bcs:/tmp/R-22126Grk" nil nil) org-babel-local-file-name("/scpc:bcs:/tmp/R-22126Grk") org-babel-process-file-name("/scpc:bcs:/tmp/R-22126Grk" noquote) org-babel-R-evaluate-session("*R*" "options(digits =3D 4)\ntheme_set(them= e_bw(18))\ntheme_thesis <- theme_update(panel.margin =3D unit(1.5, \"lines\= "))\ntheme_set(theme_thesis)\nlattice.options(default.args =3D list(as.tabl= e =3D TRUE))\ndev.new()" value nil nil) org-babel-R-evaluate("*R*" "options(digits =3D 4)\ntheme_set(theme_bw(18)= )\ntheme_thesis <- theme_update(panel.margin =3D unit(1.5, \"lines\"))\nthe= me_set(theme_thesis)\nlattice.options(default.args =3D list(as.table =3D TR= UE))\ndev.new()" value nil nil) org-babel-execute:R("options(digits =3D 4)\ntheme_set(theme_bw(18))\nthem= e_thesis <- theme_update(panel.margin =3D unit(1.5, \"lines\"))\ntheme_set(= theme_thesis)\nlattice.options(default.args =3D list(as.table =3D TRUE))\nd= ev.new()\n" ((:cache . "no") (:comments . "") (:exports . "none") (:height = . "600") (:hlines . "no") (:noweb . "no") (:results . "silent") (:session) = (:shebang . "") (:tangle . "no") (:width . "1000"))) org-babel-execute-src-block(nil ("R" "options(digits =3D 4)\ntheme_set(th= eme_bw(18))\ntheme_thesis <- theme_update(panel.margin =3D unit(1.5, \"line= s\"))\ntheme_set(theme_thesis)\nlattice.options(default.args =3D list(as.ta= ble =3D TRUE))\ndev.new()\n" ((:cache . "no") (:comments . "") (:exports . = "none") (:height . "600") (:hlines . "no") (:noweb . "no") (:results . "sil= ent") (:session) (:shebang . "") (:tangle . "no") (:width . "1000")) "" "R-= options" nil 0)) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) #v- But I can see that `with-parsed-tramp-file-name' is a defined function by using C-h f, which reports: #v+ with-parsed-tramp-file-name is a Lisp macro in `tramp.el'. (with-parsed-tramp-file-name FILENAME VAR &rest BODY) #v- Can anyone help me understand why I can't evaluate R source blocks on a remote machine? Is there further debugging information I can provide? Thanks, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkyjxuEACgkQlHMl2/XbR4E9MQCg1Vv1pfHLnkscaiHuFEbB3Ans A8sAoL5KQqe5jgq0fNOaaDyGpgq+pi+x =cnPK -----END PGP SIGNATURE----- --=-=-=-- --===============1722207496== 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 --===============1722207496==--