From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72573: 29.4; js-mode/JSX: forward-sexp behavior at end of string in JSX fragments Date: Sun, 18 Aug 2024 17:16:41 +0300 Message-ID: <868qwtzzjq.fsf@gnu.org> References: <86r0aq6x2a.fsf@gnu.org> <86ed6mymkf.fsf@gnu.org> <48cfa725-4bd2-4887-8006-655332239378@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72573@debbugs.gnu.org, daanturo@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 18 16:17:35 2024 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 1sfgit-0002vj-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Aug 2024 16:17:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfgii-00045t-6L; Sun, 18 Aug 2024 10:17:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfgif-00045d-TI for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 10:17:22 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfgif-0005Ke-KB for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 10:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=CEz+29dGvlVYJFcus6qqQmNcZAZnAMkjdvI8Cg2GdnM=; b=cB34G34n3VKxDbDfP2Hv2SV4iUljKYlpgtbudxcBlSY78QnntBB4KKzGdXFCGCrHDWiwotSYBGTiMvbENPGmZ6H6rsNW93qccJvPc5gNy0g+xEyXxQlzJUiYeSBGlvUv8LQY0cPRXVXN4x7oBp78dIFE2FOL2pPcxREnhLuTOLBq5WvGveBnSYEWcWalk/dBUxrSkN25N2g1ApTYhfQG+mhTrhux5zuUNIh86B9FTONT9Q926dXMiOBFuzZ8RsyhxxYgCuUgRxzOcMi8EIDBtgkf8j6NONeXWPgpOZHx/JZpmdWwE4AtwZ85f3q5y+wl1I8Bm+x5Hf7RyItCGFWyEQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfgjJ-0007w2-UO for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 10:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2024 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72573 X-GNU-PR-Package: emacs Original-Received: via spool by 72573-submit@debbugs.gnu.org id=B72573.172399066630321 (code B ref 72573); Sun, 18 Aug 2024 14:18:01 +0000 Original-Received: (at 72573) by debbugs.gnu.org; 18 Aug 2024 14:17:46 +0000 Original-Received: from localhost ([127.0.0.1]:56444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfgj3-0007sz-DI for submit@debbugs.gnu.org; Sun, 18 Aug 2024 10:17:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfgj0-0007sM-JB for 72573@debbugs.gnu.org; Sun, 18 Aug 2024 10:17:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfgiD-0005HM-2p; Sun, 18 Aug 2024 10:16:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CEz+29dGvlVYJFcus6qqQmNcZAZnAMkjdvI8Cg2GdnM=; b=QHjXkRnAujMY /Thsq+EJgjyfmcKkL88YUSsfkaPwVuXiN4pp4n/z9sEXNYZDZEK6hbRks0SLLE2yxP4hku0I+g2MM 4oKCSR8fnqXQSIdRaupYDMHfEAbZrm3utSEPyCOlsHVu2Xj6mDVefq1ngpyCu/Z2SC5MRBGKNiC0H Ozmlj/qiJjZatafx9iScrjFAo1PoyRA5a4enCUQYYX13N73D+/EwpSQUp9lKXh1CQFAeH01zudW+0 neUJ5uBxY8NtLZzpgbtKGQHAi6CqP72qYIfjGZe/jUFBOBb3NeICkOTeVsYSW3UG4UlN8qSz6FaTM Cr7LnMPVTNq5BE+wIVVJHA==; In-Reply-To: <48cfa725-4bd2-4887-8006-655332239378@gutov.dev> (message from Dmitry Gutov on Sun, 18 Aug 2024 17:11:44 +0300) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290325 Archived-At: > Date: Sun, 18 Aug 2024 17:11:44 +0300 > Cc: daanturo@gmail.com, 72573@debbugs.gnu.org > From: Dmitry Gutov > > On 18/08/2024 16:42, Eli Zaretskii wrote: > >> Date: Sun, 18 Aug 2024 16:37:03 +0300 > >> Cc: 72573@debbugs.gnu.org > >> From: Dmitry Gutov > >> > >>>> 2. Put cursor at the end of "cacaca" (before the closing double quote) > >>>> 3. `C-M-f`/`forward-sexp` > >>>> > >>>> * Observed: Cursor moves to the beginning of "h2-id". > >>> > >>> Here it moves to after the opening quotes of

. > >>> This is in Emacs 30. Looks like some mistake in handling the syntax > >>> of the starting position? > >> > >> In my testing it moves like the report says: to the beginning of h2-id. > >> > >> Maybe you skipped step 2? > > > > No, I haven't. > > At the end of step 2 the cursor is already close to the end of > >

> > (the character | denoted its position). So C-M-f can't move it to the > opening quote of this tag - that would be the opposite direction of > where it's supposed to move. I expected it to move out of the tag or to the next tag/element. > >> I don't think there's much we can do in js-mode (or js-jsx-mode). > > > > So you suggest to close this as wontfix? > > Probably, yes. > > But IIRC we had another bug# where somebody also requested a different > behavior for forward-sexp. So they could be merged. Sure, if you know the number, we should merge them.