From mboxrd@z Thu Jan 1 00:00:00 1970 From: mirko Subject: Setting default browser for "export b" on Win7 Date: Tue, 22 Oct 2013 16:19:31 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYegh-0000Uw-Od for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 12:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYega-0004Xr-AK for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 12:20:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:60661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYega-0004Xg-3L for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 12:20:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYegS-00081G-CY for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 18:19:52 +0200 Received: from teaaus0033.telusa.com ([208.218.238.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Oct 2013 18:19:52 +0200 Received: from mirko.vukovic by teaaus0033.telusa.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Oct 2013 18:19:52 +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: emacs-orgmode@gnu.org I am trying to set Firefox as the default browser on my Windows 7 machine. Here is the elisp code that modifies org-file-apps (defun mv-org-set-export-browser (browser) (setq org-file-apps (mapcar (lambda (entry) (if (string= (car entry) "\\.x?html?\\'") (cons (car entry) (if (equal browser 'default) browser (format "%s %s" browser "%s"))) entry)) org-file-apps))) I call it like this: (mv-org-set-export-browser 'default ;;"firefox" ;;"c:/Program Files (x86)/Mozilla Firefox/firefox.exe" ) The two commented lines are when I try to set firefox as the browser. But with either of them, I get no visible output. I don't see anything in *Messages*. (Thus the 'default is uncommented). I know the full path to work, as it is the same string that is used to specify the default browser for opening URL's. Any ideas on what is going wrong? Thanks, Mirko