emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Invalid function: with-parsed-tramp-file-name with Perl
Date: Tue, 18 Sep 2012 16:04:08 +0200	[thread overview]
Message-ID: <877grro2av.fsf@slate.zedat.fu-berlin.de> (raw)
In-Reply-To: 87395jub00.fsf@slate.zedat.fu-berlin.de

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> Nick Dokos <nicholas.dokos@hp.com> writes:
>
>> Loris Bennett <loris.bennett@fu-berlin.de> wrote:
>>
>>> Nick Dokos <nicholas.dokos@hp.com> writes:
>>> 
>>> > Loris Bennett <loris.bennett@fu-berlin.de> 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	other threads:[~2012-09-18 14:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 11:54 Invalid function: with-parsed-tramp-file-name with Perl Loris Bennett
2012-06-21 13:53 ` Nick Dokos
2012-06-21 14:51   ` Loris Bennett
2012-06-21 15:13     ` Nick Dokos
2012-06-25  7:05       ` Loris Bennett
2012-09-18 14:04         ` Loris Bennett [this message]
2012-09-19  7:45           ` Bastien
2012-09-19  9:28             ` Loris Bennett
2012-09-19  9:59               ` Bastien
2012-09-19 10:29                 ` Loris Bennett
2012-09-19 13:49                   ` Nick Dokos
2012-09-19 18:52                     ` Achim Gratz
2012-09-19 19:51                       ` Nick Dokos
2012-09-20 14:12                         ` Loris Bennett
2012-09-20 15:11                           ` Nick Dokos
2012-09-20 15:30                             ` Nick Dokos
2012-09-20 17:21                               ` Nick Dokos
2012-09-20 17:36                                 ` Nick Dokos
2012-09-20 18:29                                   ` Eric Schulte
2012-09-20 19:18                                   ` Achim Gratz
2012-09-20 20:51                                     ` Nick Dokos
2012-09-20 21:00                                       ` Achim Gratz
2012-09-20 22:26                                         ` Nick Dokos
2012-09-21 17:49                                           ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2012-09-22  5:05 Nick Dokos
2012-09-22  6:41 ` Achim Gratz
2012-09-22  6:57   ` Bastien
2012-09-22  7:03     ` Achim Gratz
2012-09-22  8:19       ` Bastien
2012-09-22 11:57         ` Achim Gratz
2012-09-22 16:14           ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877grro2av.fsf@slate.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).