help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: visiting remote files on webserver


From: Eric Abrahamsen
Subject: Re: visiting remote files on webserver
Date: Tue, 19 Aug 2014 09:45:55 +0800
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

lee <lee@yun.yagibdah.de> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> lee <lee@yun.yagibdah.de> writes:
>>
>>> saint@eng.it writes:
>>>
>>>> lee writes:
>>>>  > Hi,
>>>>  > 
>>>>  > isn't something like the following already available by default:
>>>>  > 
>>>>  > 
>>>>  > (defun my-curl-find-file ()
>>>>  >   "Use curl to retrieve something and create a buffer to display what
>>>>  > was retrieved.
>>>>
>>>> What about:
>>>>
>>>> (find-file "/scp:user@machie:/path/to/file")
>>>>
>>>> it is possible to use it interactively
>>>>
>>>> C-x C-f /scp:user@machine:/path/to/file
>>>
>>> That requires to be able to log in to the remote host.  In this
>>> particular case, I wanted to get a script from some web server I don't
>>> have any special access to.  I could have downloaded and saved and
>>> visited it, but why not load it directly into a buffer.
>>
>> The url package does this, you could start with url-retrieve and
>> url-retrieve-synchronously.
>
> Hm, yes, I thought it did, and there are a number of url-.* functions
> available, like url-handler-mode.  There aren't any to retrieve an url,
> though.
>
> Is the url package part of emacs, or do I need to install it?

I'm using emacs 24.4 (dev version) and it's in lisp/url/url.el.
Everything's autoloaded properly, so url-retrieve is available from
startup. I know nothing about the history of this package -- what's your
emacs version?

Eric




reply via email to

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