# HG changeset patch # User Sam Steingold # Date 1004129736 0 # Node ID 69db29c9019b11a4f7b103e218d0bf75201dcda5 # Parent eb00cb396b788f8ea6373ad46451dbc775c0af70 (html-mode); set `mode-name' based on `html-xhtml' diff -r eb00cb396b78 -r 69db29c9019b lisp/ChangeLog --- a/lisp/ChangeLog Fri Oct 26 20:29:10 2001 +0000 +++ b/lisp/ChangeLog Fri Oct 26 20:55:36 2001 +0000 @@ -1,7 +1,7 @@ 2001-10-26 Sam Steingold * textmodes/sgml-mode.el (html-mode): Set `html-xhtml' from the - DOCTYPE. + DOCTYPE; set `mode-name' based on it. (html-tag-alist): Use `html-xhtml' for "li", "dt" and "dd". (sgml-tag): Close empty tags in XHTML. diff -r eb00cb396b78 -r 69db29c9019b lisp/textmodes/sgml-mode.el --- a/lisp/textmodes/sgml-mode.el Fri Oct 26 20:29:10 2001 +0000 +++ b/lisp/textmodes/sgml-mode.el Fri Oct 26 20:55:36 2001 +0000 @@ -1283,6 +1283,8 @@ 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