org-export: Put HTML buffers in either nxhtml-mode or nxml-mode

* contrib/lisp/org-export.el (org-export-dispatch): Put
temporary buffer that holds exported HTML source in either
`nxhtml-mode' or `nxml-mode'.

`nxhtml-mode' is *not* part of stock Emacs while `nxml-mode' is.
This commit is contained in:
Jambunathan K 2012-02-18 22:37:20 +05:30
parent 1feac49476
commit f1e5dfdbe9
1 changed files with 3 additions and 1 deletions

View File

@ -3218,7 +3218,9 @@ Return an error if key pressed has no associated command."
(org-export-to-buffer
'e-html "*Org E-HTML Export*"
(memq 'subtree optns) (memq 'visible optns) (memq 'body optns))))
(with-current-buffer outbuf (nxhtml-mode))
;; set major mode
(with-current-buffer outbuf
(if (featurep 'nxhtml-mode) (nxhtml-mode) (nxml-mode)))
(when org-export-show-temporary-export-buffer
(switch-to-buffer-other-window outbuf))))
(?h (org-e-html-export-to-html