From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] org-open-file: ignores browse-url settings Date: Tue, 01 Sep 2015 17:32:50 +0200 Message-ID: <87bndm2lzx.fsf@nicolasgoaziou.fr> References: <87vbbyp0kr.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnWm-0007oV-M6 for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:31:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnWl-0002Tv-KV for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:31:16 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnWl-0002Sw-ET for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:31:15 -0400 In-Reply-To: <87vbbyp0kr.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 29 Aug 2015 17:37:56 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > From Emacs-devel: > > From: raman@google.com > Subject: org-open-file: ignores browse-url settings > Date: the 21st of August 2015 at 20:07 > Archived-At: > > Function org-open-file uses customization variable org-file-apps to > decide how to open a file. > Unfortunately it's also making it difficult / impossible to set it up > so that org files exported to HTML open in Emacs using EWW --- (add-to-list 'org-file-apps '("\\.x?html?\\'" . (eww-open-file file))) should do the trick. > -specifically: the customization interface for org-file-apps claims to > let you provide a custom lisp form which in principle should let one > specify browse-url -- (admittedly convoluted ) but even that fails to > work -- mostly because the documentation is somewhat light with > respect to showing how one gets ones hands on the matched link. We can improve documentation. > My personal opinion would be to get rid of org-file-apps. Opening files > correctly is the job of either Emacs or the OS. I'm not sure about it. Org can divert from Emacs when it comes to what to do with files. You may want to view it from Org but edit it from Emacs. The OS doesn't know about Lisp. Note that you can force `org-open-file' to open it with Emacs, effectively ignoring `org-file-apps' altogether. Regards, -- Nicolas Goaziou