From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: view in browser Date: Mon, 28 Feb 2011 18:02:15 -0500 Message-ID: <29135.1298934135@alphaville.dokosmarshall.org> References: <87mxlfvqxa.fsf@ucl.ac.uk> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=32793 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuC6w-00057C-Ch for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 18:02:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuC6s-0001pg-4H for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 18:02:38 -0500 Received: from vms173017pub.verizon.net ([206.46.173.17]:53251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuC6s-0001pU-0x for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 18:02:34 -0500 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LHC00AE4NZREVF0@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 17:02:22 -0600 (CST) In-reply-to: Message from Eric S Fraga of "Mon, 28 Feb 2011 20:34:57 GMT." <87mxlfvqxa.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: skip , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Eric S Fraga wrote: > skip writes: > > > I used to be able to do C-x C-e b to view the org file in a browser. > > Now it just generates the file but not > > open the browser. Same with PDF. Don't know what changed, but how do I > > get back the functionality? Thanks. > > Assuming you meant =C-c C-e b=, this does not work for me either; > however, =C-c C-e d= does work and opens the PDF in docview. For > symmetry, I would have liked =b= to open my html in emacs w3m, I guess? > As I mentioned, C-c C-e b works fine for me: Org-mode version 7.4 (release_7.4.530.g3c69). The precise way it works however depends on whether you are on a GNU system (default: use mailcap), MacOSX (use specific applications or default "open") or Windows (use w32-shell-execute open). All cases are funnelled through the org-open-file function though, so tracing that should tell you what's broken. The relevant variables are org-file-apps and org-file-apps-defaults-{gnu,macosx,windowsnt}. In my case (Ubuntu 10.10), I get a default "mailcap" map which takes "text/html" to the entry in the system /etc/mailcap: "/usr/bin/sensible-browser", a shell script which eventually opens the file in firefox. As for opening it in emacs w3m, I don't know how to do that. Nick