emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Invalid function: with-parsed-tramp-file-name with Perl


From: Loris Bennett
Subject: Re: [O] Invalid function: with-parsed-tramp-file-name with Perl
Date: Tue, 18 Sep 2012 16:04:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

"Loris Bennett" <address@hidden> writes:

> Nick Dokos <address@hidden> writes:
>
>> Loris Bennett <address@hidden> wrote:
>>
>>> Nick Dokos <address@hidden> writes:
>>> 
>>> > Loris Bennett <address@hidden> 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

I have just updated to emacs 24.2.50.1 and org 7.9-32-g805a9f-elpa and
am having this problem again even with an ECM.  Commenting out the
declaration as suggested above no longer helps.

Any suggestions?

Loris

-- 
Loris Bennett






reply via email to

[Prev in Thread] Current Thread [Next in Thread]