From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 14 12:10:59 2018 Received: (at submit) by debbugs.gnu.org; 14 Jul 2018 16:10:59 +0000 Received: from localhost ([127.0.0.1]:60250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feN8M-0004ag-QU for submit@debbugs.gnu.org; Sat, 14 Jul 2018 12:10:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feMxI-0004Ha-7F for submit@debbugs.gnu.org; Sat, 14 Jul 2018 11:59:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feMxB-0004au-Aa for submit@debbugs.gnu.org; Sat, 14 Jul 2018 11:59:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1feMxB-0004ag-5i for submit@debbugs.gnu.org; Sat, 14 Jul 2018 11:59:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feMx9-0007Sw-A0 for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 11:59:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feMx7-0004XO-NG for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 11:59:23 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:43975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1feMx7-0004WS-BJ for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 11:59:21 -0400 Received: by mail-wr1-x42b.google.com with SMTP id b15-v6so27853772wrv.10 for ; Sat, 14 Jul 2018 08:59:20 -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=8oj4jAIctQVGXjXLTfmuCyj6Qk/AfQwSzXxr0RtpNt0=; b=vOO/TkUxmnLf/Q3U7pE4a6GevYah62LxrxiZZrqP1FkE+mJJ7WAJjtNOAFUbFeHXCm XS5IWc74S16tXaa9pkBswp8UnvWIyZ/su2CYOzEKWu/TybrBEdMTPB4C01aNl45xlu/q d+vj9zt5CsPMQ9SwHQ8OO9edgeYupalbeTqEhMQWNxkcaySHHZNW6q+0CAtVXPAtKeTp 2ULtBEI5aWtHUZmRl0UYnRUwvOg/5XZR2WAICQSSwvBrItyim+dNglvEIZAvRhw55DZ6 +xWQTTxv+FmGNxZTxGWTsPl9StMqaPyaaCTVBIJ/oCMlGWyhRgFYpd8x1ZEWrYYG61kb 0dVg== 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=8oj4jAIctQVGXjXLTfmuCyj6Qk/AfQwSzXxr0RtpNt0=; b=l03lXoc4cMKzSPeADrzGCT+6M6fx8LXnMWCwHzdyBn3LqXkoEJjTkAFNJJ/373Qi/F GOWTRbMQPdTvSf9EUTwCyFC6AvUnVGYZROVtMxugUeMt0K/AX7/Ily6OTP/dDLIBhwbt R906flYAZF2mrdRVdQDmI77sEkZpu8qJZTKcesJtfsC4EwedHRSism+8/nLi/xlnGRO8 uSAPQis7jyGNwrOogfC2uOeDNksJEYhI06kzWZscKAN6ljBMD0TWXK1OodRYln1j2bHE VzJmoe/49CBjUHy+xWWbjbepMRUZXFHvP8CG+bqpP+5pUo8UG4YslVbMqjOedTJO3fZI 1eMQ== X-Gm-Message-State: AOUpUlFUUPvNhUehs0VdJsSZFzyVCdwehqA4x+ViacGVWWNY3wm6518W zJV3SaSw6OzC6Wn4Zrq+vDumhgElgYN1qimC8Fc8qg== X-Google-Smtp-Source: AAOMgpcKodT88KBF1UB5l4/2jS0pws+9Cueg6rVMxpkTx/xpaWt9/jd0xok4o4CPER7gwtguw2neGfn3M+TYJ7yYUuQ= X-Received: by 2002:adf:820a:: with SMTP id 10-v6mr7615754wrb.144.1531583959797; Sat, 14 Jul 2018 08:59:19 -0700 (PDT) MIME-Version: 1.0 From: Valentin Ignatev Date: Sun, 15 Jul 2018 02:04:11 +1000 Message-ID: Subject: 26.1; Broken JSX indentation in case of arrow function passing to props To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000de12f20570f7ad0c" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 14 Jul 2018 12:10:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --000000000000de12f20570f7ad0c Content-Type: text/plain; charset="UTF-8" Start with emacs -Q, create new jsx file, paste following content: const foo = (props) => (
i} />
); Then put cursor after closing input part (/>) and hit . Cursor will end rith below the "c" in "cat", but it expected to be below open bracket "<". If I remove "{i => i}", then indentation behavior works in an expected manner. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 Recent messages: previous-line: Beginning of buffer [2 times] Mark set C-M-g is undefined Mark set Mark deactivated Mark set C-M-g is undefined Quit Mark set Auto-saving...done Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: JSX Minor modes in effect: diff-auto-refine-mode: t 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 mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils apropos help-mode vc-git diff-mode easy-mmode js advice sgml-mode dom json map seq byte-opt gv bytecomp byte-compile cconv imenu thingatpt 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 elec-pair time-date mule-util 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 132251 10105) (symbols 48 24051 1) (miscs 40 109 176) (strings 32 40149 1453) (string-bytes 1 1170542) (vectors 16 19446) (vector-slots 8 548042 8566) (floats 8 56 381) (intervals 56 576 0) (buffers 992 14)) --000000000000de12f20570f7ad0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Start with emacs -Q, create new jsx file, paste following = content:
const foo =3D (props) =3D> (
=C2=A0=C2=A0=C2=A0 <div&g= t;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <input
=C2=A0=C2=A0=C2=A0 cat=3D= {i =3D> i} />=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 &l= t;/div>
);

Then put cursor after closing input part (/>) an= d hit <RET>. Cursor will
end rith below the "c" in "= ;cat", but it expected to be below open
bracket "<". I= f I remove "{i =3D> i}", then indentation behavior works inan expected manner.

In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu= , GTK+ Version 3.22.30)
=C2=A0of 2018-07-05 built on juergen
Windowin= g system distributor 'The X.Org Foundation', version 11.0.12000000<= br>Recent messages:
previous-line: Beginning of buffer [2 times]
Mark= set
C-M-g is undefined
Mark set
Mark deactivated
Mark set
C= -M-g is undefined
Quit
Mark set
Auto-saving...done

Configur= ed using:
=C2=A0'configure --prefix=3D/usr --sysconfdir=3D/etc --lib= execdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 = --with-xft --with-modules
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dg= eneric -O2 -pipe -fstack-protector-strong
=C2=A0-fno-plt' CPPFLAGS= =3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-need= ed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PN= G RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FR= EETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 MODULES THR= EADS LIBSYSTEMD LCMS2

Important settings:
=C2=A0 value of $LC_ALL= : en_US.UTF-8
=C2=A0 value of $LC_CTYPE: en_US.UTF-8
=C2=A0 value of = $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major = mode: JSX

Minor modes in effect:
=C2=A0 diff-auto-refine-mode: t<= br>=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric= -indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 globa= l-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode= : t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tr= ansient-mark-mode: t

Load-path shadows:
None found.

Featur= es:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddef= s
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-conf= ig
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-par= se
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
i= etf-drums mm-util mail-prsvr mail-utils apropos help-mode vc-git
diff-mo= de easy-mmode js advice sgml-mode dom json map seq byte-opt gv
bytecomp = byte-compile cconv imenu thingatpt 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 elec-pair time-date mule-util tooltip eldoc electric
uniquify edi= ff-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 repla= ce newcomment text-mode elisp-mode lisp-mode
prog-mode register page men= u-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lo= ck syntax facemenu font-core
term/tty-colors frame cl-generic cham georg= ian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean jap= anese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethio= pic indian cyrillic
chinese composite charscript charprop case-table epa= -hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded n= advice loaddefs
button faces cus-face macroexp files text-properties ove= rlay sha1 md5
base64 format env code-pages mule custom widget hashtable-= print-readable
backquote dbusbind inotify lcms2 dynamic-setting system-f= ont-setting
font-render-setting move-toolbar gtk x-toolkit x multi-ttymake-network-process emacs)

Memory information:
((conses 16 132= 251 10105)
=C2=A0(symbols 48 24051 1)
=C2=A0(miscs 40 109 176)
=C2= =A0(strings 32 40149 1453)
=C2=A0(string-bytes 1 1170542)
=C2=A0(vect= ors 16 19446)
=C2=A0(vector-slots 8 548042 8566)
=C2=A0(floats 8 56 3= 81)
=C2=A0(intervals 56 576 0)
=C2=A0(buffers 992 14))

--000000000000de12f20570f7ad0c-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 14 12:19:42 2018 Received: (at control) by debbugs.gnu.org; 14 Jul 2018 16:19:42 +0000 Received: from localhost ([127.0.0.1]:60256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feNGn-0006n5-Te for submit@debbugs.gnu.org; Sat, 14 Jul 2018 12:19:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feNGm-0006mu-NR for control@debbugs.gnu.org; Sat, 14 Jul 2018 12:19:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feNGg-0001rB-KW for control@debbugs.gnu.org; Sat, 14 Jul 2018 12:19:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feNGg-0001r7-Gg for control@debbugs.gnu.org; Sat, 14 Jul 2018 12:19:34 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1feNGg-0004TU-8A for control@debbugs.gnu.org; Sat, 14 Jul 2018 12:19:34 -0400 Subject: control message for bug 32158 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 14 Jul 2018 12:19:34 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) forcemerge 24896 32158 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 04 23:19:22 2019 Received: (at 32158) by debbugs.gnu.org; 5 Jun 2019 03:19:22 +0000 Received: from localhost ([127.0.0.1]:46227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYMSO-0008QZ-9E for submit@debbugs.gnu.org; Tue, 04 Jun 2019 23:19:22 -0400 Received: from mta-07-3.privateemail.com ([68.65.122.17]:19166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYMSL-0008QM-HM for 32158@debbugs.gnu.org; Tue, 04 Jun 2019 23:19:19 -0400 Received: from MTA-07.privateemail.com (localhost [127.0.0.1]) by MTA-07.privateemail.com (Postfix) with ESMTP id C064960059; Tue, 4 Jun 2019 23:19:10 -0400 (EDT) Received: from [192.168.88.227] (unknown [10.20.151.219]) by MTA-07.privateemail.com (Postfix) with ESMTPA id 8E86260058; Wed, 5 Jun 2019 03:19:10 +0000 (UTC) To: 32158@debbugs.gnu.org From: Jackson Ray Hamilton Subject: Re: bug#32158: 26.1; Broken JSX indentation in case of arrow function passing to props Message-ID: <2e0ccd59-e688-645c-eada-c4c85ff88b8a@jacksonrayhamilton.com> Date: Tue, 4 Jun 2019 20:19:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32158 Cc: valentignatev@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Valentin, A set of changes I pushed to the Emacs master branch 2 months ago should resolve this issue.  (First fixed in 1a1ef28518, but there were several commits after that when I broke/fixed it again.  The master branch is your best bet.) Jackson From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 06:58:20 2019 Received: (at 32158) by debbugs.gnu.org; 5 Jun 2019 10:58:20 +0000 Received: from localhost ([127.0.0.1]:46594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYTca-0002u6-Ed for submit@debbugs.gnu.org; Wed, 05 Jun 2019 06:58:20 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:40408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYTcY-0002tq-7Y for 32158@debbugs.gnu.org; Wed, 05 Jun 2019 06:58:18 -0400 Received: by mail-wr1-f50.google.com with SMTP id p11so14150822wre.7 for <32158@debbugs.gnu.org>; Wed, 05 Jun 2019 03:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=V1AFZY/xc6OQejFMcY+z49uRPfEUvfnEeW7lLLhDl0o=; b=j28oTwQXFSkhIuJzKgNI0duooUD8gm5/5W5BSd5Kd/EeQ3x1pi3C/XdAVnULaaSrPW 8rdOvQiuxPQlJZyZ136wq3/SCreoeJ5U8NGJyRboUm3rk7g0lFej/96lyE1qdPFbxPyd 9uXwOlZ3UPQWSDOC5rAsvPyU9LmmH6nKLKqn8KYPIKBDo/gxoJ/ND8xCNxWHcxjBB2xN Qh6B8qca+Knq3vN2rNC/Vzfkyqsu5adJSmR20TU5K+Iqqz2AFbkY16dx501Yx9PGD2+2 bolkszy2dbt4bD+IlbubKfJG96kF4ajpYd7/YC9F3Eo8OWWaBQmIriWkpfUCtJ3CEdmO Rt2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=V1AFZY/xc6OQejFMcY+z49uRPfEUvfnEeW7lLLhDl0o=; b=HmSDs23yJTFF4u3i7GVjQfooL05bblvHIwiuzeajnC1PHZpeS+qfR2ykiRz6+mT5C/ mOoGtFl4/MVTUfWyMwbb9pftz3sa6XFACQ6bPH6ZiRbhYTjqvCXuNxApIOongumRVHnI i1UrsBahsf+M1vnmozU8lKHZYfFxir8yvCDscY9pcciU6LhLgW2x5M5RogVt8cnGag5Z h/Q3MH7MB+3ouOEIpD8T7Kn/k+mLtMMt7FO+vkG8geNO4k/pvt7upioB8dJp8YFJ6PAy 5F6BFtOQCot41E/9Za5MlhU1b04KLuOBgoVgQKfAizZ10jE2A17Zf8DisMzYx9fXXhdt hH/w== X-Gm-Message-State: APjAAAWR6kJ3sWC/sG6/VbYqOZOskezn+lI7dek6T6RKfIFRM3Rgp8Lb svuQ2hInXPccB4smGYZ9LlM= X-Google-Smtp-Source: APXvYqzJruwB3BLorQUnITR7wXwHDhKhEK9EQj6LbRLkyRyGnBGDGwoCvhlER3VuwjymQNydf/xj7g== X-Received: by 2002:adf:9267:: with SMTP id 94mr2512655wrj.338.1559732292075; Wed, 05 Jun 2019 03:58:12 -0700 (PDT) Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id x3sm11974493wrp.78.2019.06.05.03.58.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 03:58:11 -0700 (PDT) Subject: Re: bug#32158: 26.1; Broken JSX indentation in case of arrow function passing to props To: Jackson Ray Hamilton , 32158@debbugs.gnu.org References: <2e0ccd59-e688-645c-eada-c4c85ff88b8a@jacksonrayhamilton.com> From: Dmitry Gutov Message-ID: Date: Wed, 5 Jun 2019 13:58:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <2e0ccd59-e688-645c-eada-c4c85ff88b8a@jacksonrayhamilton.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32158 Cc: valentignatev@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 05.06.2019 6:19, Jackson Ray Hamilton wrote: > A set of changes I pushed to the Emacs master branch 2 months ago should > resolve this issue.  (First fixed in 1a1ef28518, but there were several > commits after that when I broke/fixed it again.  The master branch is > your best bet.) Jackson, here's a slight variation on this example that looks problematic: const foo = (props) => (
i} />
); (Note the empty line) That seems incorrect to me. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 07:00:26 2019 Received: (at 32158-done) by debbugs.gnu.org; 5 Jun 2019 11:00:26 +0000 Received: from localhost ([127.0.0.1]:46598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYTeb-0002ye-S0 for submit@debbugs.gnu.org; Wed, 05 Jun 2019 07:00:26 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:36958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYTea-0002yP-90 for 32158-done@debbugs.gnu.org; Wed, 05 Jun 2019 07:00:24 -0400 Received: by mail-wr1-f50.google.com with SMTP id v14so1335845wrr.4 for <32158-done@debbugs.gnu.org>; Wed, 05 Jun 2019 04:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HzRU94rtZOEVjc67keAFxBBOxVRuJR6thmo1BFHkxcg=; b=jzbQIcmD1tDpDL0szvOjF7jMaPHw7tZPwXA0XPiM6A3YTdyUXJk6ZwG7L09cNqPGF2 TKcwS9UBUJkbmJtCiI40+8Wb6jKho9m5YT/B4GnRv17FWHOVUtR3xMIrovIHIw5WYTS2 FbpJ8btFMXbJMWYFeuOk5wgMAyKi6h2Z5WEnmvyDo38t3zMF9Bt2Uiby2OeFXi4xTXe6 m3Ok9k15vXVHeeH4BpJZ04LJdN65l8zBgfLWQUydPRhdeZGyB6SxT5Lo5ZbCapXjVZe+ XyAsrlz0hkE9tD9RW2auK06tQe+iYWfaXAs0HN6FZsuR6fNts/umE6WVmkKvXoZps2Jj Fydg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HzRU94rtZOEVjc67keAFxBBOxVRuJR6thmo1BFHkxcg=; b=C5yg8aQLJvtdTPvbmbOsg4s2tglI/GnLZB4tbxR8g1tITyTqg3xnSJMGcgysBJnAsp raGnU6N41Nay7L/hhrjwiKk0gKuRjCVBgf10q39RSZKjfqI1FmBAw2a+UJJVo+9joudr FE3968lGNgm8RzPbU5sYmden5OV0M8Q8sMBYjDso9DxwLXfCZnXLgaaTsIE+EOLPx8St bRhUSJsMT5tudTP0bbdhn0a9RT36uEuxgwLYH5N6wdVAkHkRvx8paF7YKFfj/KjypXRL G1C7mx8zdDfFuy3q+intY4yjp3nBabFecG8R6Rokz3OUrAgU63cmtWpgcUeQ/vIfpMCU p1Kg== X-Gm-Message-State: APjAAAXBa6BnBmW+Aur82XaJqzmgXD+uR+FU4KUN3xvkkyDYbaFAtzye IfUI4JK53h9dC0OXp1kDajA= X-Google-Smtp-Source: APXvYqzgYe4ajgrhATDQ9F//iqjw7ldXeEGVujveh+CKh7xY4TgkUx2J3xD/OQyd/7OOX6j2wdO6dw== X-Received: by 2002:a5d:484e:: with SMTP id n14mr617671wrs.348.1559732418618; Wed, 05 Jun 2019 04:00:18 -0700 (PDT) Received: from [192.168.1.3] ([185.105.174.23]) by smtp.googlemail.com with ESMTPSA id v184sm7053466wme.10.2019.06.05.04.00.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 04:00:18 -0700 (PDT) Subject: Re: bug#32158: 26.1; Broken JSX indentation in case of arrow function passing to props From: Dmitry Gutov To: Jackson Ray Hamilton , 32158-done@debbugs.gnu.org References: <2e0ccd59-e688-645c-eada-c4c85ff88b8a@jacksonrayhamilton.com> Message-ID: Date: Wed, 5 Jun 2019 14:00:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32158-done Cc: valentignatev@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 05.06.2019 13:58, Dmitry Gutov wrote: > Jackson, here's a slight variation on this example that looks problematic: > > const foo = (props) => ( >    
>       cat={i => i} /> > >  
> ); > > (Note the empty line) > > That seems incorrect to me. Sorry, never mind. I had to enable js-jsx-mode to test it properly. So, closing. Note that you can do it yourself by appending -done to a bug email. From unknown Tue Jun 17 01:39:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Jul 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator