From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: visiting remote files on webserver
Date: Fri, 22 Aug 2014 09:16:27 +0800 [thread overview]
Message-ID: <87wqa18gt0.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 871ts91vwn.fsf@yun.yagibdah.de
lee <lee@yun.yagibdah.de> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> lee <lee@yun.yagibdah.de> writes:
>>>>> 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.
>
> Hm, I have:
>
>
> [~/inst/emacs/emacs-git/emacs/lisp/url] find . -type f -print0 | xargs -0 grep -i "defun url-retrieve"
> ./url.el:(defun url-retrieve (url callback &optional cbargs silent inhibit-cookies)
> ./url.el:(defun url-retrieve-internal (url callback cbargs &optional silent
> ./url.el:(defun url-retrieve-synchronously (url &optional silent inhibit-cookies)
>
>
> Yet when I try M-x url-retrieve, there is no such funktion.
>
>> 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?
>
> Please see below; I have gnus put version info into the signature for
> the emacs.* groups. I compiled from the git repo from which I updated
> only a couple days ago (and it still seems to be a repo I'm not supposed
> to use).
>
> I tried (require 'url) in ~/.emacs, and that doesn't make a difference.
> I'll have to look into it more closely on the weekend ... I suppose it
> should just be available.
>
> The first mentioning of url-retrieve in git log is in commit
> 40c5a1bd1b125e9768aa223e80d0ae32e33a184b from Mon Apr 12 20:50:16 2004
> +0000, authored by Stefan Monnier. So it has over 10 years of history.
Yup, looks pretty weird -- particularly that you can require 'url and it
still doesn't work...
next prev parent reply other threads:[~2014-08-22 1:16 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
2014-08-21 19:32 ` lee
2014-08-22 1:16 ` Eric Abrahamsen [this message]
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=87wqa18gt0.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.