From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jakobsson Mattias Newsgroups: gmane.emacs.bugs Subject: bug#45717: 27.1; Error with apostrophe in JSX comment Date: Thu, 7 Jan 2021 16:26:09 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_feea889cac114319a227ed5f7b0c2f3bsmhise_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5818"; mail-complaints-to="usenet@ciao.gmane.io" To: 45717@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 07 17:36:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kxYGf-0001L5-1m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 17:36:09 +0100 Original-Received: from localhost ([::1]:45590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxYGd-0006g4-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 11:36:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxYFa-0006fb-Oc for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 11:35:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxYFa-0002g9-DI for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 11:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxYFa-0001L2-7Y for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 11:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jakobsson Mattias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jan 2021 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45717 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16100372875114 (code B ref -1); Thu, 07 Jan 2021 16:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jan 2021 16:34:47 +0000 Original-Received: from localhost ([127.0.0.1]:48416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxYFH-0001KK-Uz for submit@debbugs.gnu.org; Thu, 07 Jan 2021 11:34:47 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxY7J-00013s-6R for submit@debbugs.gnu.org; Thu, 07 Jan 2021 11:26:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxY7I-00035V-9q for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 11:26:28 -0500 Original-Received: from smtpout.smhi.se ([91.192.30.29]:14485 helo=smtpout1.smhi.se) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxY7A-0008G0-PT for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2021 11:26:27 -0500 Original-Received: from winserv743.ad.smhi.se (winserv743.ad.smhi.se [172.16.6.38]) by smtpout1.smhi.se (Postfix) with ESMTPS id 829D410950B9 for ; Thu, 7 Jan 2021 16:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smhi.se; s=20180112; t=1610036769; bh=Rsh9IuCD/6kpF/DGiZ2U6DgdUXvFY7Ttf/GtkHi/TM8=; h=From:To:Subject:Date:From; b=YSCa3XiZO/st2WmHXApwD2jgkb9Cv2ShZYrN3r7K4Te+gi0+i2lJax6mCmiVzvF1Z nn7hR7rSzW0oWKC1YTfv9CePNvxLGMUR8E4NTsONI4G0BHm8CiefTVVV+vdrzLA0gR 9yPViS/E3+pEl0LmQZT86UmusM0jZDl4K3yVG8ew= Original-Received: from winserv743.ad.smhi.se (172.16.6.38) by winserv743.ad.smhi.se (172.16.6.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 7 Jan 2021 17:26:09 +0100 Original-Received: from winserv743.ad.smhi.se ([fe80::5131:d3be:e529:5c0f]) by winserv743.ad.smhi.se ([fe80::5131:d3be:e529:5c0f%3]) with mapi id 15.01.2106.006; Thu, 7 Jan 2021 17:26:09 +0100 Thread-Topic: 27.1; Error with apostrophe in JSX comment Thread-Index: AQHW5Q/mESPhikHDgUeMoJjvCQ3nXw== Accept-Language: en-US, sv-SE Content-Language: en-US x-originating-ip: [10.122.1.132] Received-SPF: pass client-ip=91.192.30.29; envelope-from=mattias.jakobsson@smhi.se; helo=smtpout1.smhi.se X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 07 Jan 2021 11:34:43 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197496 Archived-At: --_000_feea889cac114319a227ed5f7b0c2f3bsmhise_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear emacs developers, I get the errors in the Recent messages further below if I edit (e.g., by i= nserting a newline) a JSX file with the content between the ``` below. If I remove the apostrop= he from "don't" in the comment the errors goes away. ``` import React from "react"; const MyComponent =3D ({ someList }) =3D> (
cls !=3D=3D "someclass" )} /> ); export default MyComponent; ``` Regards, Mattias In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-08-22 built on c21618 Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Red Hat Enterprise Linux 8.3 (Ootpa) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Error during redisplay: (jit-lock-function 1) signaled (error "Variable binding depth exceeds max-specpdl-size") Error in post-command-hook (jit-lock--antiblink-post-command): (error "Variable binding depth exceeds max-specpdl-size") Error during redisplay: (internal--syntax-propertize 29) signaled (error "Variable binding depth exceeds max-specpdl-size") back-to-indentation: internal--syntax-propertize did not move syntax- propertize--doneError during redisplay: (jit-lock-function 28) signaled (error "Variable binding depth exceeds max-specpdl-size") Error during redisplay: (jit-lock-function 28) signaled (error "Variable binding depth exceeds max-specpdl-size") Making completion list... Configured using: 'configure --prefix=3D/home/a001919/.local/emacs/27.1 --with-json' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: JavaScript[JSX] Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg- config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc- git diff-mode easy-mmode js json subr-x map seq byte-opt gv bytecomp byte-compile cconv imenu cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp- mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 75570 6537) (symbols 48 9507 1) (strings 32 25092 1661) (string-bytes 1 947253) (vectors 16 14494) (vector-slots 8 181430 11864) (floats 8 25 40) (intervals 56 246 0) (buffers 1000 14)) --_000_feea889cac114319a227ed5f7b0c2f3bsmhise_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Dear emacs developers,

I get the errors in the Recent messages further below if I edit = (e.g., by inserting a newline)
a JSX file with the content between the ``` below. If I remove the apo= strophe from
"don't" in the comment the errors goes away.

```
import React from "react";

const MyComponent =3D ({ someList }) =3D> (
  <div
    className=3D{someList.filter(
      // don't include an apostrophe in this = comment
      (cls) =3D> cls !=3D=3D "somecla= ss"
    )}
  />
);

export default MyComponent;
```

Regards, Mattias

In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)<= br>  of 2020-08-22 built on c21618
Windowing system distributor 'The X.Org Foundation', version
11.0.12008000
System Description: Red Hat Enterprise Linux 8.3 (Ootpa)


Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Error during redisplay: (jit-lock-function 1) signaled (error "Variabl= e
binding depth exceeds max-specpdl-size")
Error in post-command-hook (jit-lock--antiblink-post-command): (error
"Variable binding depth exceeds max-specpdl-size")
Error during redisplay: (internal--syntax-propertize 29) signaled
(error "Variable binding depth exceeds max-specpdl-size")
back-to-indentation: internal--syntax-propertize did not move syntax-
propertize--doneError during redisplay: (jit-lock-function 28) signaled
(error "Variable binding depth exceeds max-specpdl-size")
Error during redisplay: (jit-lock-function 28) signaled (error
"Variable binding depth exceeds max-specpdl-size")
Making completion list...


Configured using:
 'configure --prefix=3D/home/a001919/.local/emacs/27.1 --with-json'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB
TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP


Important settings:
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=3Dibus
  locale-coding-system: utf-8-unix


Major mode: JavaScript[JSX]


Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t


Load-path shadows:
None found.


Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-
config
gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-
git
diff-mode easy-mmode js json subr-x map seq byte-opt gv bytecomp
byte-compile cconv imenu cc-mode cc-fonts easymenu cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset
image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-
mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)


Memory information:
((conses 16 75570 6537)
 (symbols 48 9507 1)
 (strings 32 25092 1661)
 (string-bytes 1 947253)
 (vectors 16 14494)
 (vector-slots 8 181430 11864)
 (floats 8 25 40)
 (intervals 56 246 0)
 (buffers 1000 14))

--_000_feea889cac114319a227ed5f7b0c2f3bsmhise_--