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: Mon, 18 Aug 2014 20:30:18 +0200 Organization: my virtual residence Message-ID: <87mwb1wtak.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408386661 11589 80.91.229.3 (18 Aug 2014 18:31:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 18:31:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 18 20:30:55 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 1XJRhn-0001k5-6m for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Aug 2014 20:30:55 +0200 Original-Received: from localhost ([::1]:45181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJRhm-0001tG-JN for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Aug 2014 14:30:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJRhM-0001k9-Rc for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 14:30:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJRhI-0003gf-1h for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 14:30:28 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:56888 helo=jarl.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJRhH-0003g5-Rh for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 14:30: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 1XJRhG-0001wx-BB for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 20:30:22 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1XJRhG-0001AW-7h for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 20:30:22 +0200 In-Reply-To: <878ummod7j.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 18 Aug 2014 08:26:08 +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:99275 Archived-At: Eric Abrahamsen writes: > lee 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