From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eduardo Cavazos Newsgroups: gmane.emacs.help Subject: Re: Remote files via http Date: Sat, 11 Apr 2009 03:17:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2dc34578-77b6-431d-b8f4-dda886952b68@l2g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239466345 32664 80.91.229.12 (11 Apr 2009 16:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2009 16:12:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 11 18:13:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lsfpt-00076Y-Ca for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Apr 2009 18:13:41 +0200 Original-Received: from localhost ([127.0.0.1]:54147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsfoU-0003HN-Rv for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Apr 2009 12:12:14 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!e24g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 206.55.180.50 Original-X-Trace: posting.google.com 1239445031 379 127.0.0.1 (11 Apr 2009 10:17:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 11 Apr 2009 10:17:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e24g2000vbe.googlegroups.com; posting-host=206.55.180.50; posting-account=2uWlfwkAAACw-p0GHzsAjjbWq6C9zPc- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080716 SeaMonkey/1.1.11,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168382 X-Mailman-Approved-At: Sat, 11 Apr 2009 12:10:16 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63665 Archived-At: On Apr 11, 4:40 am, Eduardo Cavazos wrote: > Yet another approach would be a special link type in org-mode. Here we go... (require 'org) (defun org-netorg-open (path) (shell-command (format "wget %s %s http://%s" "--directory-prefix=/tmp/netorg" "--force-directories" path)) (find-file (format "/tmp/netorg/%s" path))) (org-add-link-type "netorg" 'org-netorg-open) Bam! :-) With that, a link such as: [[netorg:www.xyz.com/abc.org][The ABCs]] if followed will "do the right thing". I.e. the remote document will be retrieved and displayed. The document is stored locally in a "cache" at: "/tmp/netorg/www.xyz.com/abc.org" Ed