unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: help-gnu-emacs@gnu.org
Subject: Re: visiting remote files on webserver
Date: Mon, 18 Aug 2014 20:30:18 +0200	[thread overview]
Message-ID: <87mwb1wtak.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <878ummod7j.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 18 Aug 2014 08:26:08 +0800")

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?


-- 
GNU Emacs 24.4.50.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-08-17 on yun.yagibdah.de



  reply	other threads:[~2014-08-18 18:30 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 [this message]
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

  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=87mwb1wtak.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --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).