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: Mon, 18 Aug 2014 08:26:08 +0800 Message-ID: <878ummod7j.fsf@ericabrahamsen.net> References: <877g27uvc6.fsf@yun.yagibdah.de> <21488.55126.483499.836883@mail.eng.it> <87mwb2975w.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408321348 19223 80.91.229.3 (18 Aug 2014 00:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 00:22:28 +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 02:22:21 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 1XJAiK-0005Sw-MF for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Aug 2014 02:22:20 +0200 Original-Received: from localhost ([::1]:40695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJAiI-00070f-7z for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 20:22:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJAi3-00070Y-DW for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 20:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJAhx-0002O4-Vm for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 20:22:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJAhx-0002O0-PS for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 20:21:57 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJAhu-0005Gz-Lu for help-gnu-emacs@gnu.org; Mon, 18 Aug 2014 02:21:54 +0200 Original-Received: from 101.229.137.29 ([101.229.137.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 02:21:54 +0200 Original-Received: from eric by 101.229.137.29 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 02:21:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 101.229.137.29 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:JS1FJrxP38FnpGUukuR92brRvnE= 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:99258 Archived-At: 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. E