From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: HTML export is using the wrong browser Date: Mon, 24 Mar 2014 11:04:08 +0800 Message-ID: <83a9478a-b436-4d78-b7f9-eecadd803841@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRvBZ-0005l8-Tb for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 23:04:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRvBR-00039z-G1 for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 23:04:25 -0400 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:39026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRvBR-00039r-9S for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 23:04:17 -0400 Received: by mail-pd0-f173.google.com with SMTP id z10so4718391pdj.18 for ; Sun, 23 Mar 2014 20:04:16 -0700 (PDT) Received: from localhost ([219.136.163.59]) by mx.google.com with ESMTPSA id tk5sm30050071pbc.63.2014.03.23.20.04.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 20:04:15 -0700 (PDT) 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: orgmode OK, org is awesome, but sometimes it drives you crazy. I have just lost an hour this morning trying to figure out how to convince=20= HTML export to open the exported file in Firefox, rather than Chrome. I noticed that C-c C-e h o was running "sensible-browser," and after half=20 an hour's completely wasted effort trying to understand the=20 update-alternatives system, the only thing I know is that Chrome's priority=20= in the system is 200 while Firefox is 40. That explains why=20 sensible-browser is choosing Chrome. But I can't find any example of a=20 command that will change the priority of an existing link. So then I started poking around org options. I found that C-c C-o on an=20 http hyperlink goes through browse-url, and I can configure=20 browse-url-generic-program to Firefox, and C-c C-o does open such links in=20= Firefox. Okay... but, C-c C-e h o *still* uses sensible-browser and opens=20 it in the wrong program. I opened the complete org manual (all on one page) and searched the page=20 for "browser." There is NO help anywhere in this document about the browser=20= to use for HTML export. So then I found: =09(?o "As HTML file and open" =09 (lambda (a s v b) =09 (if a (org-html-export-to-html t s v b) =09=09(org-open-file (org-html-export-to-html nil s v b))))))) And, looking over the definition of org-open-file, and realizing I've spent=20= *a whole hour* on this problem that should be a simple matter of setting=20 ONE option, I conclude... this is way too much of a puzzle. So I give up. This should be a simple thing, so... can somebody please tell me a simple=20 way to configure this? (Yes, I am frustrated.) hjh