From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: visiting remote files on webserver Date: Fri, 22 Aug 2014 09:16:27 +0800 Message-ID: <87wqa18gt0.fsf@ericabrahamsen.net> References: <877g27uvc6.fsf@yun.yagibdah.de> <21488.55126.483499.836883@mail.eng.it> <87mwb2975w.fsf@yun.yagibdah.de> <878ummod7j.fsf@ericabrahamsen.net> <87mwb1wtak.fsf@yun.yagibdah.de> <87lhqljlpo.fsf@ericabrahamsen.net> <871ts91vwn.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408669965 25844 80.91.229.3 (22 Aug 2014 01:12:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 01:12:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 03:12:38 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKdPC-0000iN-3U for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 03:12:38 +0200 Original-Received: from localhost ([::1]:34652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKdPB-0005Lx-Gb for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 21:12:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKdOu-0005Lr-W3 for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 21:12:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKdOp-0008R1-Dv for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 21:12:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKdOp-0008Qh-6v for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 21:12:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XKdOk-0000XQ-PN for help-gnu-emacs@gnu.org; Fri, 22 Aug 2014 03:12:10 +0200 Original-Received: from 114.248.6.55 ([114.248.6.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Aug 2014 03:12:10 +0200 Original-Received: from eric by 114.248.6.55 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Aug 2014 03:12:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.6.55 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:E5C+AG8l43gzIbLQu0WeeK0zbDM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99339 Archived-At: lee writes: > Eric Abrahamsen writes: > >> lee 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...