From: Thien-Thi Nguyen Date: Sat, 31 Oct 2020 02:40:11 +0000 (-0400) Subject: Make hideshow.el work with Mhtml mode X-Git-Tag: emacs-28.0.90~5327 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=73bc7b543bfad54d50eb15943800dce12834efd6;p=emacs.git Make hideshow.el work with Mhtml mode Suggested by Ian Williams . * lisp/textmodes/mhtml-mode.el: Require ‘pcase’ when compiling. (mhtml-forward): New func. * lisp/progmodes/hideshow.el (hs-special-modes-alist): Add entry for ‘mhtml-mode’. --- diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 625e08e4d79..2ad66ccc5e0 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -264,7 +264,10 @@ This has effect only if `search-invisible' is set to `open'." (c++-mode "{" "}" "/[*/]" nil nil) (bibtex-mode ("@\\S(*\\(\\s(\\)" 1)) (java-mode "{" "}" "/[*/]" nil nil) - (js-mode "{" "}" "/[*/]" nil))) + (js-mode "{" "}" "/[*/]" nil) + (mhtml-mode "{\\|<[^/>]*?" "}\\|]*[^/]>" "