GNU bug report logs - #57989
27.1; mhtml-mode should support C-c / in sub-modes

Previous Next

Package: emacs;

Reported by: Benjamin Moody <bmoody <at> mit.edu>

Date: Wed, 21 Sep 2022 20:42:02 UTC

Severity: wishlist

Found in version 27.1

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Moody <bmoody <at> mit.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; mhtml-mode should support C-c / in sub-modes
Date: Wed, 21 Sep 2022 14:40:40 -0400
When editing HTML, I'm accustomed to pressing C-c / to close the
innermost element.  For example, if I type

  <html>
    <head>
      <style> p { color: red; }

and then press C-c /, I expect Emacs to insert "</style>".

However, with mhtml-mode, this doesn't work inside a <script> or <style>
element, because only the js-mode or css-mode bindings are in effect
there.

There are other html-mode keybindings that might sometimes be useful
inside of JS/CSS blocks too, such as C-c C-b and C-c C-f.

It's not obvious to me if there is any way to customize the bindings
that are in effect inside a CSS block in MHTML mode, independent of the
bindings that are in effect when editing a .css file.




This bug report was last modified 2 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.