GNU bug report logs - #41696
27.0.91; comment-line in js-jsx-mode does not handle ReactJS markup

Previous Next

Package: emacs;

Reported by: Brian Leung <bkleung89 <at> gmail.com>

Date: Wed, 3 Jun 2020 23:58:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.91

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41696 in the body.
You can then email your comments to 41696 AT debbugs.gnu.org in the normal way.

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#41696; Package emacs. (Wed, 03 Jun 2020 23:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Leung <bkleung89 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Jun 2020 23:58:02 GMT) Full text and rfc822 format available.

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

From: Brian Leung <bkleung89 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.91; comment-line in js-jsx-mode does not handle ReactJS markup
Date: Wed, 3 Jun 2020 16:56:56 -0700
[Message part 1 (text/plain, inline)]
With the following example code:

import * as React from "react";
import { render } from "react-dom";

const App = () => {
  return (
    <React.StrictMode>
      <div>Hello</div>
    </React.StrictMode>
  );
};

render(<App />, document.getElementById("root"));


If you move to the live with the <div> and call M-x comment-line, the
line is commented out with two forward slashes, instead of the proper

{{/* <div>Hello</div> */}}

In GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: NixOS 20.09 (Nightingale)
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41696; Package emacs. (Thu, 22 Oct 2020 13:23:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Brian Leung <bkleung89 <at> gmail.com>
Cc: 41696 <at> debbugs.gnu.org
Subject: Re: bug#41696: 27.0.91; comment-line in js-jsx-mode does not handle
 ReactJS markup
Date: Thu, 22 Oct 2020 15:21:48 +0200
Brian Leung <bkleung89 <at> gmail.com> writes:

> If you move to the live with the <div> and call M-x comment-line, the
> line is commented out with two forward slashes, instead of the proper
>
> {{/* <div>Hello</div> */}}

I know nothing about JSX, but googling for three seconds seems to say
that the comment syntax is

{/* <div>Hello</div> */}

?  In any case, I've now made js-jsx-mode comment lines in this way if
inside a JSX block.  But like I said, I don't really know the language,
so it'd be nice if somebody else gave it a look-over.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 22 Oct 2020 13:23:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 41696 <at> debbugs.gnu.org and Brian Leung <bkleung89 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 22 Oct 2020 13:23:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Nov 2020 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 157 days ago.

Previous Next


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