aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/textmodes/sgml-mode.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cb0ffae62a7..171adba7674 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,7 @@
12001-10-26 Sam Steingold <sds@gnu.org> 12001-10-26 Sam Steingold <sds@gnu.org>
2 2
3 * textmodes/sgml-mode.el (html-mode): Set `html-xhtml' from the 3 * textmodes/sgml-mode.el (html-mode): Set `html-xhtml' from the
4 DOCTYPE. 4 DOCTYPE; set `mode-name' based on it.
5 (html-tag-alist): Use `html-xhtml' for "li", "dt" and "dd". 5 (html-tag-alist): Use `html-xhtml' for "li", "dt" and "dd".
6 (sgml-tag): Close empty tags in XHTML. 6 (sgml-tag): Close empty tags in XHTML.
7 7
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:
1283 nil t) 1283 nil t)
1284 (set (make-local-variable 'html-xhtml) 1284 (set (make-local-variable 'html-xhtml)
1285 (string= "X" (match-string 1)))))) 1285 (string= "X" (match-string 1))))))
1286 (when html-xhtml
1287 (setq mode-name "XHTML"))
1286 ;; It's for the user to decide if it defeats it or not -stef 1288 ;; It's for the user to decide if it defeats it or not -stef
1287 ;; (make-local-variable 'imenu-sort-function) 1289 ;; (make-local-variable 'imenu-sort-function)
1288 ;; (setq imenu-sort-function nil) ; sorting the menu defeats the purpose 1290 ;; (setq imenu-sort-function nil) ; sorting the menu defeats the purpose