all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Jauvin <cjauvin@gmail.com>
To: emacs-devel@gnu.org
Subject: Commenting out some JSX code section with Emacs 27 js-mode
Date: Fri, 2 Oct 2020 15:07:05 -0400	[thread overview]
Message-ID: <CAJSE4TpPp_hBje=XQ=B_R-JE=MarfHqd2cqwQVTU3520qjY-fA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

Hi everyone,

When I comment out (`M-x comment-dwim`) some section of JSX code with the
new js-mode in Emacs 27, it gives:

// <Grid rows={rows} columns={columns}>
//   <Table />
//   <TableHeaderRow />
// </Grid>

Is there any way to make js-mode behave like it does with rjsx-mode:

{/* <Grid rows={rows} columns={columns}> */}
{/*   <Table /> */}
{/*   <TableHeaderRow /> */}
{/* </Grid> */}

Supposing that this is not currently possible, and that js-mode is really
the way to go forward for JS/JSX code (from the older rjsx-mode and
js2-mode, as I vaguely understand), where could I begin to study the code
and possibly suggest a pull request to make it work? I tried to find a few
tutorials dedicated to programming modes but it's not obvious how to adapt
it to this particular problem.

Any help or advice would be appreciate,

Christian

[-- Attachment #2: Type: text/html, Size: 1063 bytes --]

             reply	other threads:[~2020-10-02 19:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 19:07 Christian Jauvin [this message]
2020-10-02 20:34 ` Commenting out some JSX code section with Emacs 27 js-mode Stefan Monnier
2020-10-02 21:01   ` Christian Jauvin
2020-10-07 10:42     ` Stephen Leake

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

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

  git send-email \
    --in-reply-to='CAJSE4TpPp_hBje=XQ=B_R-JE=MarfHqd2cqwQVTU3520qjY-fA@mail.gmail.com' \
    --to=cjauvin@gmail.com \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.