From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Invalid function: with-parsed-tramp-file-name with Perl Date: Mon, 25 Jun 2012 09:05:51 +0200 Message-ID: <87395jub00.fsf@slate.zedat.fu-berlin.de> References: <87hau4ubgp.fsf@slate.zedat.fu-berlin.de> <7708.1340286834@alphaville> <87a9zwvhtp.fsf@slate.zedat.fu-berlin.de> <8083.1340291591@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sj3NK-0002QA-HR for emacs-orgmode@gnu.org; Mon, 25 Jun 2012 03:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sj3NF-0001kT-Tg for emacs-orgmode@gnu.org; Mon, 25 Jun 2012 03:06:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:58483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sj3NF-0001kL-Ml for emacs-orgmode@gnu.org; Mon, 25 Jun 2012 03:06:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sj3NC-0004gF-Bg for emacs-orgmode@gnu.org; Mon, 25 Jun 2012 09:06:10 +0200 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jun 2012 09:06:10 +0200 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jun 2012 09:06:10 +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 Nick Dokos writes: > Loris Bennett wrote: > >> Nick Dokos writes: >> >> > Loris Bennett wrote: >> > >> >> Hi, >> >> >> >> When I try to run a Perl script remotely via ":dir", I get the following >> >> error: >> >> >> >> ,------------------------------------------------------------------------- >> >> | org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name >> >> `------------------------------------------------------------------------- >> >> >> >> However, using the same remote host I can successfully run both R and >> >> bash scripts. >> >> >> >> There was a thread couple of years ago where this function cropped up: >> >> >> >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01712.html >> >> >> >> but there seemed to be no real resolution and it occurred with version >> >> 7.01trans and a bleeding edge emacs 24. I am using Org 7.8.11 with >> >> Emacs 23.2.1. >> >> >> >> Any ideas? >> >> >> > >> > Try adding >> > >> > (require 'tramp) >> > >> > in your .emacs somewhere (probably before you load org but it should >> > not be too sensitive). Does that solve it? >> >> No, unfortunately not. I get the same error. > > Maybe it has something to do with the declaration in ob.el then (line 43): > > (declare-function with-parsed-tramp-file-name "tramp" (filename var &rest body)) > > with-parsed-tramp-file-name is a macro, not a function. Can you try commenting > out that line in ob.el and checking again? Not sure what mayhem will ensue, but > who knows? If I comment the line out and compile, I get the warning: ,------------------------------------------------------------------------------ | In end of data: | ob.el:2487:1:Warning: the function `with-parsed-tramp-file-name' is not known | to be defined. `------------------------------------------------------------------------------ but the remote Perl code now runs fine. Thanks for the help. Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.bennett@fu-berlin.de