unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: visiting remote files on webserver
Date: Tue, 19 Aug 2014 09:45:55 +0800	[thread overview]
Message-ID: <87lhqljlpo.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87mwb1wtak.fsf@yun.yagibdah.de

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	other threads:[~2014-08-19  1:45 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
2014-08-18 18:30       ` lee
2014-08-19  1:45         ` Eric Abrahamsen [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87lhqljlpo.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.
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).