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: Sun, 17 Aug 2014 22:45:47 +0200 Organization: my virtual residence Message-ID: <87mwb2975w.fsf@yun.yagibdah.de> References: <877g27uvc6.fsf@yun.yagibdah.de> <21488.55126.483499.836883@mail.eng.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408308401 13935 80.91.229.3 (17 Aug 2014 20:46:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2014 20:46:41 +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 22:46:34 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 1XJ7LU-0008Fo-4Y for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 22:46:32 +0200 Original-Received: from localhost ([::1]:40232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ7LR-0001vf-Om for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2014 16:46:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ7LA-0001uj-IO for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 16:46:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ7L5-00008Q-Ip for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 16:46:12 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:56855 helo=jarl.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ7L5-00008J-Bj for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 16:46:07 -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 1XJ7L3-0001Yr-So for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 22:46:05 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1XJ7L3-0006ck-KX for help-gnu-emacs@gnu.org; Sun, 17 Aug 2014 22:46:05 +0200 In-Reply-To: <21488.55126.483499.836883@mail.eng.it> (saint@eng.it's message of "Sun, 17 Aug 2014 18:24:54 +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:99254 Archived-At: 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. -- Knowledge is volatile and fluid. Software is power.