From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: Re: visiting remote files on webserver Date: Thu, 21 Aug 2014 21:32:08 +0200 Organization: my virtual residence Message-ID: <871ts91vwn.fsf@yun.yagibdah.de> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408657674 20918 80.91.229.3 (21 Aug 2014 21:47:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 21:47:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 23:47:49 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 1XKaCx-0004ne-LW for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 23:47:47 +0200 Original-Received: from localhost ([::1]:34223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaCx-0007nB-B1 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 17:47:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaCd-0007lb-VR for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 17:47:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKaCZ-0005Lb-Da for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 17:47:27 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:57091 helo=jarl.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaCZ-0005LD-6V for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 17:47:23 -0400 Original-Received: from yun.yagibdah.de ([192.168.3.20]) by jarl.yagibdah.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XKaCX-0003cf-7d for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 23:47:21 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1XKaCX-0002Ki-3D for help-gnu-emacs@gnu.org; Thu, 21 Aug 2014 23:47:21 +0200 In-Reply-To: <87lhqljlpo.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 19 Aug 2014 09:45:55 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.42.186.216 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:99336 Archived-At: 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. -- GNU Emacs 24.4.50.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-08-17 on yun.yagibdah.de