@node Type Descriptors
@subsection Type Descriptors
- A @dfn{type decriptor} is a @code{record} which holds information
-about a type. Slot 1 in the record must be a symbol naming the type.
+ A @dfn{type descriptor} is a @code{record} which holds information
+about a type. Slot 1 in the record must be a symbol naming the type, and
@code{type-of} relies on this to return the type of @code{record}
objects. No other type descriptor slot is used by Emacs; they are
free for use by Lisp extensions.
** HTML
+++
-*** A new submode of `html-mode', `mthml-mode', is now the default
+*** A new submode of 'html-mode', 'mhtml-mode', is now the default
mode for *.html files. This mode handles indentation,
fontification, and commenting for embedded JavaScript and CSS.
+++
** Certain cond/pcase/cl-case forms are now compiled using a faster jump
-table implementation. This uses a new bytecode op `switch', which isn't
+table implementation. This uses a new bytecode op 'switch', which isn't
compatible with previous Emacs versions. This functionality can be disabled
-by setting `byte-compile-cond-use-jump-table' to nil.
+by setting 'byte-compile-cond-use-jump-table' to nil.
+++
** Resizing a frame no longer runs 'window-configuration-change-hook'.
(funcall mode)
;; Make sure font lock is all set up.
(font-lock-set-defaults)
- ;; This has to be set to a value other than the mthml-mode
+ ;; This has to be set to a value other than the mhtml-mode
;; value, to avoid recursion.
(unless (variable-binding-locus 'font-lock-fontify-region-function)
(setq-local font-lock-fontify-region-function
(font-lock-ensure)
(should (eq (syntax-ppss-context (syntax-ppss)) what))))
-(ert-deftest mthml-comment-js ()
+(ert-deftest mhtml-comment-js ()
(mhtml-test-syntax "<html><script>\n/* "
" some text */<script></html>"
'comment))
-(ert-deftest mthml-string-js ()
+(ert-deftest mhtml-string-js ()
(mhtml-test-syntax "<html><script>\n\" "
" some text \"<script></html>"
'string))
-(ert-deftest mthml-comment-css ()
+(ert-deftest mhtml-comment-css ()
(mhtml-test-syntax "<html><style>\n/* "
" some text */<style></html>"
'comment))
-(ert-deftest mthml-string-css ()
+(ert-deftest mhtml-string-css ()
(mhtml-test-syntax "<html><style>\n\" "
" some text \"<style></html>"
'string))