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

To reply to this bug, email your comments to 57989 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57989; Package emacs. (Wed, 21 Sep 2022 20:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Moody <bmoody <at> mit.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Sep 2022 20:42:03 GMT) Full text and rfc822 format available.

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.




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 13 Oct 2022 13:48:05 GMT) Full text and rfc822 format available.

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.