From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: visiting remote files on webserver Date: Sun, 17 Aug 2014 14:58:01 +0200 Organization: my virtual residence Message-ID: <877g27uvc6.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408283673 30480 80.91.229.3 (17 Aug 2014 13:54:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2014 13:54:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 15:54:26 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 1XJ0ug-0001eZ-4v for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 15:54:26 +0200 Original-Received: from localhost ([::1]:39106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ0uf-0005cd-SJ for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 09:54:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ0u5-0004zH-Mw for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 09:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ0tx-0002XM-Dc for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 09:53:49 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:56846 helo=jarl.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ0tx-0002XF-6i for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 09:53:41 -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 1XJ0Wh-0001Li-Ft for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 15:29:39 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1XJ0Wh-00027Z-BM for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 15:29:39 +0200 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:99251 Archived-At: 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 to use as source and the name of a new buffer to insert the output of curl into are being read from the minibuffer." (interactive) (let ((source (read-from-minibuffer "Retrieve: ")) (dest-buffer-name (read-from-minibuffer "Into buffer: "))) (unless (or (string-equal "" source) (string-equal "" dest-buffer-name)) (switch-to-buffer dest-buffer-name) (call-process "curl" nil t t "-sS" source)))) Since I couldn't find anything like that as part of emacs, I came up with the above. It works fine, though it seems unlikely that this isn't already implemented. -- Knowledge is volatile and fluid. Software is power.