[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
- visiting remote files on webserver, lee, 2014/08/17
- Re: visiting remote files on webserver, saint, 2014/08/17
- Re: visiting remote files on webserver, lee, 2014/08/17
- Re: visiting remote files on webserver, Eric Abrahamsen, 2014/08/17
- Re: visiting remote files on webserver, lee, 2014/08/18
- Re: visiting remote files on webserver,
Eric Abrahamsen <=
- Re: visiting remote files on webserver, lee, 2014/08/21
- Re: visiting remote files on webserver, Eric Abrahamsen, 2014/08/21
- Re: visiting remote files on webserver, Stefan Monnier, 2014/08/21
- Re: visiting remote files on webserver, ken, 2014/08/22