From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Jauvin Newsgroups: gmane.emacs.devel Subject: Commenting out some JSX code section with Emacs 27 js-mode Date: Fri, 2 Oct 2020 15:07:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000037466905b0b4d83f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38259"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 02 21:08:16 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOQPg-0009rw-9S for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Oct 2020 21:08:16 +0200 Original-Received: from localhost ([::1]:38150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOQPf-0005pY-8t for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Oct 2020 15:08:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOQP3-0005NW-8k for emacs-devel@gnu.org; Fri, 02 Oct 2020 15:07:37 -0400 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:51747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOQP0-0005AX-Cn for emacs-devel@gnu.org; Fri, 02 Oct 2020 15:07:36 -0400 Original-Received: by mail-pj1-x102c.google.com with SMTP id a17so730153pju.1 for ; Fri, 02 Oct 2020 12:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tgFD+GDjfhS3vxbZGXj3S2afcl++J/dwyTB9OSvr9JI=; b=AJIFWIGW0RXG7Z/7DBtFvef8FbPqhIL531pUWLCC1esNXRolFetkoMUI+F1cFuMbB6 yFwMPfygmbctYUx6vW/VjLeXDFGhRKPCGf4zGE1ILfbf7dc/sx0OjCWvIDTBkw/z+vHk ED28A2Sr5Z9UrgnuDrXFnayd78jwTqufarrWliLALMKUd0Eq52Up2RX+sHX+5y5+zQva tPq1So+OcgfKIrFG4Hm3C192TbWfZHvP4fq8897qenPocnKT3sSZKQRIBfG0c6DsOMb7 clsy1cRDk/MsE80357uodhZHvYhgUN7YHo68cnZBaFZV5DqfI7URd6rMjG0YwLB+o/so mmVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tgFD+GDjfhS3vxbZGXj3S2afcl++J/dwyTB9OSvr9JI=; b=SfIQobhpLgutDhazXMh+DxLTWOF9HxQYS429dPkiiA+HjF6YnOacfS9FGqVsDLR1c8 23tsCkkXG0mHVZjLvdP6CD65UlYK70VUtcs76hLCJINZmPgRi1RdDJUiwGSH85wYitBE DpaiFoGrVgt5d7Nwd67AI3fntpNvErh+hQWGG8PFOb2WF/++ihttxMmEGKuGdj2ol/Ym prT7+4Hq40wvHWePSvX9lKOTG38bAfP83J3s5A9gCK1Gy5Yt+qKAVLaI71UXwp+cpOPk P7jM2IVw5kRuK0HAvgUhiPCOPwy7FKCdpcIQQ5WoELJxEcxJNKlxmj2Bb6q+HLRzRW9Y yW3w== X-Gm-Message-State: AOAM533IROjoiydSrmXZxBc0XzNPJdwNNPOo5V98/i6AZwBGXL0ToDKq KnpfPHNg3Fq2D3JKQfpMGjen34zM51QMjmOqXbu/RLOq6Qnaym0E X-Google-Smtp-Source: ABdhPJw/uABSDUEBcB/k5OMhRYZmSjeIvG5nQDH5/7vFvebtCXDOgeyoiaedCFs8bBD8hfZf+OBs9MNx286XiE0uU3w= X-Received: by 2002:a17:90a:f310:: with SMTP id ca16mr636560pjb.223.1601665651654; Fri, 02 Oct 2020 12:07:31 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=cjauvin@gmail.com; helo=mail-pj1-x102c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256963 Archived-At: --00000000000037466905b0b4d83f Content-Type: text/plain; charset="UTF-8" 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: // // // // Is there any way to make js-mode behave like it does with rjsx-mode: {/* */} {/*
*/} {/* */} {/* */} 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 --00000000000037466905b0b4d83f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone,

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

// <Grid rows=3D{rows} columns=3D{columns}>
// =C2= =A0 <Table />
// =C2=A0 <TableHeaderRow />
// </Grid&g= t;

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

{/* <Grid rows=3D{rows} columns=3D{columns}> */}
{/* = =C2=A0 <Table /> */}
{/* =C2=A0 <TableHeaderRow /> */}
{/= * </Grid> */}

Supposing that this is not currently possible, a= nd that js-mode is really the way to go forward for JS/JSX code (from the o= lder 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 tr= ied 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

--00000000000037466905b0b4d83f--