GNU bug report logs - #79565
31.0.50; from org-mode generated html not opened in web-browser

Previous Next

Package: emacs;

Reported by: Peter Münster <pm <at> a16n.net>

Date: Fri, 3 Oct 2025 22:01:02 UTC

Severity: normal

Found in version 31.0.50

To reply to this bug, email your comments to 79565 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79565; Package emacs. (Fri, 03 Oct 2025 22:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Münster <pm <at> a16n.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 03 Oct 2025 22:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pm <at> a16n.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; from org-mode generated html not opened in web-browser
Date: Sat, 04 Oct 2025 00:00:00 +0200
[Message part 1 (text/plain, inline)]
Hi,

When using org-export-dispatch in an org-buffer, and then pressing h
and o for opening the html file, the html is generated but not opened.

How could I please display the generated file in Firefox?

TIA for any help, Peter


In GNU Emacs 31.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version
 3.24.43, cairo version 1.18.4) of 2025-10-03 built on ws
Repository revision: 6a12fe3d797deb118d1328f04c0ed9a81d7eb0a6
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101011
System Description: openSUSE Leap 15.6

Configured using:
 'configure --with-tree-sitter'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR
GTK3 ZLIB

Important settings:
  value of $LC_CTYPE: en_GB.utf8
  value of $LC_MESSAGES: en_GB.utf8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-nonselected-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt mhtml-mode css-mode color js
c-ts-common imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs sgml-mode facemenu ox-odt rng-loc
rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table
ox-ascii ox-publish ox org-attach oc-basic cl-extra help-mode ffap
org-element org-persist org-id org-refile org-element-ast inline
avl-tree generator ol-eww eww track-changes vtable mule-util url-queue
mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill
kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus
xml gnus-cloud nnimap nnmail browse-url xdg url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core
cl-macs json map url-vars mail-source utf7 nnoo parse-time gnus-spec
gnus-int gnus-range message sendmail mailcap yank-media puny rfc822 mml
mml-sec password-cache epa derived epg rfc6068 epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util
text-property-search mail-utils range mm-util mail-prsvr wid-edit
ol-docview doc-view byte-opt gv bytecomp byte-compile filenotify
jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi
org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src sh-script smie treesit executable ob-comint org-pcomplete
pcomplete comint ansi-osc ansi-color ring org-list org-footnote
org-faces org-entities time-date subr-x noutline outline icons
org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx
org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func
cal-menu calendar cal-loaddefs org-compat org-macs format-spec dired-aux
cl-loaddefs cl-lib dired dired-loaddefs rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames emacs)

Memory information:
((conses 16 271829 45518) (symbols 48 27430 0) (strings 32 96105 3808)
 (string-bytes 1 2611333) (vectors 16 55025)
 (vector-slots 8 1206795 133923) (floats 8 429 13)
 (intervals 56 486 0) (buffers 1064 15))

-- 
           Peter
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79565; Package emacs. (Fri, 03 Oct 2025 22:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 79565 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Peter Münster <pm <at> a16n.net>
Cc: 79565 <at> debbugs.gnu.org
Subject: Re: bug#79565: 31.0.50; from org-mode generated html not opened in
 web-browser
Date: Sat, 04 Oct 2025 00:50:47 +0200
On Sat, 04 Oct 2025 00:00:00 +0200 Peter Münster <pm <at> a16n.net> wrote:

> Hi,
>
> When using org-export-dispatch in an org-buffer, and then pressing h
> and o for opening the html file, the html is generated but not opened.
>
> How could I please display the generated file in Firefox?

Typing `o' calls `org-open-file', which checks the value of
`org-file-apps', which contains the entry `("\\.x?html?\\'" . default)',
which checks if you have a mailcap entry to handle html files, and if
you don't, it just visits the file in Emacs.  The doc string of
`org-file-apps' gives an example of how to make Emacs open html files in
Firefox, by adding a suitable entry to `org-file-apps', e.g. like this:
(add-to-list 'org-file-apps '("\\.x?html\\'" . "firefox %s"))
If you do that, you should get the result you want.

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79565; Package emacs. (Sat, 04 Oct 2025 06:56:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pm <at> a16n.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#79565: 31.0.50;
 from org-mode generated html not opened in web-browser
Date: Sat, 04 Oct 2025 08:55:01 +0200
On Sat, Oct 04 2025, Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> which checks if you have a mailcap entry to handle html files,

Ah, thanks. My mailcap is
text/html; w3m -T text/html -dump %s; copiousoutput

That’s why it wasn’t opened...


> (add-to-list 'org-file-apps '("\\.x?html\\'" . "firefox %s")) If you
> do that, you should get the result you want.

Thanks, it works well!

-- 
           Peter





This bug report was last modified 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.