summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2001-10-26 20:55:36 +0000
committerSam Steingold <sds@gnu.org>2001-10-26 20:55:36 +0000
commite5d1dee9111cd8088bfbff62c831e3345d14c99b (patch)
treec8439dd53fe9aff3c5d5dd1b079af64e510e5af2 /lisp/textmodes
parent58203d918e68faba80433f12c86a36642dad9a42 (diff)
downloademacs-e5d1dee9111cd8088bfbff62c831e3345d14c99b.tar.gz
(html-mode); set `mode-name' based on `html-xhtml'
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/sgml-mode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 8822bdb132f..e864327a13f 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1283,6 +1283,8 @@ To work around that, do:
nil t)
(set (make-local-variable 'html-xhtml)
(string= "X" (match-string 1))))))
+ (when html-xhtml
+ (setq mode-name "XHTML"))
;; It's for the user to decide if it defeats it or not -stef
;; (make-local-variable 'imenu-sort-function)
;; (setq imenu-sort-function nil) ; sorting the menu defeats the purpose