unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Benjamin Moody <bmoody@mit.edu>
To: 57989@debbugs.gnu.org
Subject: bug#57989: 27.1; mhtml-mode should support C-c / in sub-modes
Date: Wed, 21 Sep 2022 14:40:40 -0400	[thread overview]
Message-ID: <87sfkkmuzb.fsf@pc57.ecg.mit.edu> (raw)

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.





                 reply	other threads:[~2022-09-21 18:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfkkmuzb.fsf@pc57.ecg.mit.edu \
    --to=bmoody@mit.edu \
    --cc=57989@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).