From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: visiting remote files on webserver
Date: Mon, 18 Aug 2014 08:26:08 +0800 [thread overview]
Message-ID: <878ummod7j.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87mwb2975w.fsf@yun.yagibdah.de
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.
E
next prev parent reply other threads:[~2014-08-18 0:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-17 12:58 visiting remote files on webserver lee
2014-08-17 16:24 ` saint
2014-08-17 20:45 ` lee
2014-08-18 0:26 ` Eric Abrahamsen [this message]
2014-08-18 18:30 ` lee
2014-08-19 1:45 ` Eric Abrahamsen
2014-08-21 19:32 ` lee
2014-08-22 1:16 ` Eric Abrahamsen
2014-08-22 3:30 ` Stefan Monnier
2014-08-22 12:19 ` ken
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878ummod7j.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.