emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-export-as-html-and-open problem
@ 2013-02-01  7:38 zhenjiang xu
  2013-02-04 23:20 ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: zhenjiang xu @ 2013-02-01  7:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

when I type the keys `C-c C-e b', the html is generated but it is opened in
emacs instead of an internet browser. Does anyone know why?

I am using builtin org-mode in Emacs 24.2 (7.8.11) and set google-chrome as
default browser.

Thanks,
Zhenjiang

[-- Attachment #2: Type: text/html, Size: 365 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-01  7:38 org-export-as-html-and-open problem zhenjiang xu
@ 2013-02-04 23:20 ` Bastien
  2013-02-04 23:24   ` zhenjiang xu
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2013-02-04 23:20 UTC (permalink / raw)
  To: zhenjiang xu; +Cc: emacs-orgmode

Hi Zhenjiang,

zhenjiang xu <zhenjiang.xu@gmail.com> writes:

> when I type the keys `C-c C-e b', the html is generated but it is
> opened in emacs instead of an internet browser. Does anyone know
> why?

Check the value of `org-file-apps'.

C-h v org-file-apps RET

Hope this helps,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-04 23:20 ` Bastien
@ 2013-02-04 23:24   ` zhenjiang xu
  2013-02-04 23:29     ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: zhenjiang xu @ 2013-02-04 23:24 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

Thanks, Bastien. It's the default value - I've not changed it:

org-file-apps is a variable defined in `org.el'.
Its value is ((auto-mode . emacs)
 ("\\.mm\\'" . default)
 ("\\.x?html?\\'" . default)
 ("\\.pdf\\'" . default))


On Mon, Feb 4, 2013 at 4:20 PM, Bastien <bzg@altern.org> wrote:

> Hi Zhenjiang,
>
> zhenjiang xu <zhenjiang.xu@gmail.com> writes:
>
> > when I type the keys `C-c C-e b', the html is generated but it is
> > opened in emacs instead of an internet browser. Does anyone know
> > why?
>
> Check the value of `org-file-apps'.
>
> C-h v org-file-apps RET
>
> Hope this helps,
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1245 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-04 23:24   ` zhenjiang xu
@ 2013-02-04 23:29     ` Bastien
  2013-02-06  6:35       ` zhenjiang xu
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2013-02-04 23:29 UTC (permalink / raw)
  To: zhenjiang xu; +Cc: emacs-orgmode

zhenjiang xu <zhenjiang.xu@gmail.com> writes:

> Thanks, Bastien. It's the default value - I've not changed it:
>
> org-file-apps is a variable defined in `org.el'.
> Its value is ((auto-mode . emacs)
>  ("\\.mm\\'" . default)
>  ("\\.x?html?\\'" . default)
>  ("\\.pdf\\'" . default))

So you need to check the relevant variable:

org-file-apps-defaults-gnu
org-file-apps-defaults-macosx
org-file-apps-defaults-windowsnt

If the relevant variable uses the defaults (as I guess),
you need to configure the mailcap file for your system

See http://en.wikipedia.org/wiki/Mailcap

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-04 23:29     ` Bastien
@ 2013-02-06  6:35       ` zhenjiang xu
  2013-02-06 15:32         ` Nick Dokos
  0 siblings, 1 reply; 8+ messages in thread
From: zhenjiang xu @ 2013-02-06  6:35 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]

It's odd. The value of org-file-apps-defaults-gnu is:

((remote . emacs) (system . mailcap) (t . mailcap))

And I checked my local mime file, which shows google-chrome is the default
app to open html files:

$ cat ~/.local/share/applications/mimeapps.list
[Added Associations]
application/epub+zip=FBReader.desktop;
application/pdf=pdf.desktop;
application/vnd.rn-realmedia=smplayer.desktop;
application/x-matroska=smplayer.desktop;
application/x-mimearchive=firefox.desktop;
application/x-ole-storage=libreoffice-impress.desktop;
audio/mpeg=audacious.desktop;
text/html=google-chrome.desktop;
video/mpeg=gnome-mplayer.desktop;
x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop;

[Default Applications]
text/html=google-chrome.desktop
x-scheme-handler/mailto=google-chrome.desktop

Any idea?

On Mon, Feb 4, 2013 at 4:29 PM, Bastien <bzg@altern.org> wrote:

> zhenjiang xu <zhenjiang.xu@gmail.com> writes:
>
> > Thanks, Bastien. It's the default value - I've not changed it:
> >
> > org-file-apps is a variable defined in `org.el'.
> > Its value is ((auto-mode . emacs)
> >  ("\\.mm\\'" . default)
> >  ("\\.x?html?\\'" . default)
> >  ("\\.pdf\\'" . default))
>
> So you need to check the relevant variable:
>
> org-file-apps-defaults-gnu
> org-file-apps-defaults-macosx
> org-file-apps-defaults-windowsnt
>
> If the relevant variable uses the defaults (as I guess),
> you need to configure the mailcap file for your system
>
> See http://en.wikipedia.org/wiki/Mailcap
>
> HTH,
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 2951 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-06  6:35       ` zhenjiang xu
@ 2013-02-06 15:32         ` Nick Dokos
  2013-02-06 17:51           ` zhenjiang xu
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Dokos @ 2013-02-06 15:32 UTC (permalink / raw)
  To: zhenjiang xu; +Cc: Bastien, emacs-orgmode

zhenjiang xu <zhenjiang.xu@gmail.com> wrote:

> It's odd. The value of org-file-apps-defaults-gnu is:
> 
> ((remote . emacs) (system . mailcap) (t . mailcap))
> 
> And I checked my local mime file, which shows google-chrome is the default app to open html files:
> 
> $ cat ~/.local/share/applications/mimeapps.list 
> [Added Associations]
> application/epub+zip=FBReader.desktop;
> application/pdf=pdf.desktop;
> application/vnd.rn-realmedia=smplayer.desktop;
> application/x-matroska=smplayer.desktop;
> application/x-mimearchive=firefox.desktop;
> application/x-ole-storage=libreoffice-impress.desktop;
> audio/mpeg=audacious.desktop;
> text/html=google-chrome.desktop;
> video/mpeg=gnome-mplayer.desktop;
> x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop;
> 
> [Default Applications]
> text/html=google-chrome.desktop
> x-scheme-handler/mailto=google-chrome.desktop
> 
> Any idea?

Bastien pointed you to the mailcap files. The mailcap man page says

       $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap  --  default  path
       for mailcap files.

so those are the files to check.

Nick

> 
> On Mon, Feb 4, 2013 at 4:29 PM, Bastien <bzg@altern.org> wrote:
> 
>     zhenjiang xu <zhenjiang.xu@gmail.com> writes:
>    
>     > Thanks, Bastien. It's the default value - I've not changed it:
>     >
>     > org-file-apps is a variable defined in `org.el'.
>     > Its value is ((auto-mode . emacs)
>     >  ("\\.mm\\'" . default)
>     >  ("\\.x?html?\\'" . default)
>     >  ("\\.pdf\\'" . default))
>    
>     So you need to check the relevant variable:
>    
>     org-file-apps-defaults-gnu
>     org-file-apps-defaults-macosx
>     org-file-apps-defaults-windowsnt
>    
>     If the relevant variable uses the defaults (as I guess),
>     you need to configure the mailcap file for your system
>    
>     See http://en.wikipedia.org/wiki/Mailcap
>    
>     HTH,
>    
>     --
>      Bastien
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-06 15:32         ` Nick Dokos
@ 2013-02-06 17:51           ` zhenjiang xu
  2013-02-06 18:05             ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: zhenjiang xu @ 2013-02-06 17:51 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bastien, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

Sorry I forgot to mention that I don't have mailcap files in my Archlinux.


On Wed, Feb 6, 2013 at 8:32 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> zhenjiang xu <zhenjiang.xu@gmail.com> wrote:
>
> > It's odd. The value of org-file-apps-defaults-gnu is:
> >
> > ((remote . emacs) (system . mailcap) (t . mailcap))
> >
> > And I checked my local mime file, which shows google-chrome is the
> default app to open html files:
> >
> > $ cat ~/.local/share/applications/mimeapps.list
> > [Added Associations]
> > application/epub+zip=FBReader.desktop;
> > application/pdf=pdf.desktop;
> > application/vnd.rn-realmedia=smplayer.desktop;
> > application/x-matroska=smplayer.desktop;
> > application/x-mimearchive=firefox.desktop;
> > application/x-ole-storage=libreoffice-impress.desktop;
> > audio/mpeg=audacious.desktop;
> > text/html=google-chrome.desktop;
> > video/mpeg=gnome-mplayer.desktop;
> > x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop;
> >
> > [Default Applications]
> > text/html=google-chrome.desktop
> > x-scheme-handler/mailto=google-chrome.desktop
> >
> > Any idea?
>
> Bastien pointed you to the mailcap files. The mailcap man page says
>
>
>  $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap
>  --  default  path
>        for mailcap files.
>
> so those are the files to check.
>
> Nick
>
> >
> > On Mon, Feb 4, 2013 at 4:29 PM, Bastien <bzg@altern.org> wrote:
> >
> >     zhenjiang xu <zhenjiang.xu@gmail.com> writes:
> >
> >     > Thanks, Bastien. It's the default value - I've not changed it:
> >     >
> >     > org-file-apps is a variable defined in `org.el'.
> >     > Its value is ((auto-mode . emacs)
> >     >  ("\\.mm\\'" . default)
> >     >  ("\\.x?html?\\'" . default)
> >     >  ("\\.pdf\\'" . default))
> >
> >     So you need to check the relevant variable:
> >
> >     org-file-apps-defaults-gnu
> >     org-file-apps-defaults-macosx
> >     org-file-apps-defaults-windowsnt
> >
> >     If the relevant variable uses the defaults (as I guess),
> >     you need to configure the mailcap file for your system
> >
> >     See http://en.wikipedia.org/wiki/Mailcap
> >
> >     HTH,
> >
> >     --
> >      Bastien
> >
> >
> > ----------------------------------------------------
> > Alternatives:
> >
> > ----------------------------------------------------
>

[-- Attachment #2: Type: text/html, Size: 3358 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-export-as-html-and-open problem
  2013-02-06 17:51           ` zhenjiang xu
@ 2013-02-06 18:05             ` Bastien
  0 siblings, 0 replies; 8+ messages in thread
From: Bastien @ 2013-02-06 18:05 UTC (permalink / raw)
  To: zhenjiang xu; +Cc: nicholas.dokos, emacs-orgmode

Hi Zhenjiang,

zhenjiang xu <zhenjiang.xu@gmail.com> writes:

> Sorry I forgot to mention that I don't have mailcap files in my
> Archlinux.

Then you'll need to configure `org-file-apps' to suit your needs.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-06 18:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-01  7:38 org-export-as-html-and-open problem zhenjiang xu
2013-02-04 23:20 ` Bastien
2013-02-04 23:24   ` zhenjiang xu
2013-02-04 23:29     ` Bastien
2013-02-06  6:35       ` zhenjiang xu
2013-02-06 15:32         ` Nick Dokos
2013-02-06 17:51           ` zhenjiang xu
2013-02-06 18:05             ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).