summaryrefslogtreecommitdiff
path: root/lisp/org/org-html.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org/org-html.el')
-rw-r--r--lisp/org/org-html.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org-html.el b/lisp/org/org-html.el
index 35eb45ab179..3170f3ae07c 100644
--- a/lisp/org/org-html.el
+++ b/lisp/org/org-html.el
@@ -1419,7 +1419,7 @@ lang=\"%s\" xml:lang=\"%s\">
(unless (plist-get opt-plist :buffer-will-be-killed)
(normal-mode)
- (if (eq major-mode default-major-mode) (html-mode)))
+ (if (eq major-mode (default-value 'major-mode)) (html-mode)))
;; insert the table of contents
(goto-char (point-min))