unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Daan Ro <daanturo@gmail.com>, Dmitry Gutov <dmitry@gutov.dev>
Cc: 72573@debbugs.gnu.org
Subject: bug#72573: 29.4; js-mode/JSX: forward-sexp behavior at end of string in JSX fragments
Date: Thu, 15 Aug 2024 10:54:05 +0300	[thread overview]
Message-ID: <86r0aq6x2a.fsf@gnu.org> (raw)
In-Reply-To: <A266E0F4-B939-4A20-A5DF-417C988E6ACA@getmailspring.com> (message from Daan Ro on Sun, 11 Aug 2024 16:33:28 +0700)

> Date: Sun, 11 Aug 2024 16:33:28 +0700
> From: Daan Ro <daanturo@gmail.com>
> 
> Unexpected forward-sexp behavior at the end of strings in JSX fragments
> 
> * Reproduce
> 1. Create file.jsx:
> 
> ```jsx
> 
> function Foo() {
>   // cursor at the end of "cacaca", `forward-sexp-default-function'
>   return (
>     <div>
>       <h1 className="cacaca|">
>         hello world
>         <h2 id="h2-id"></h2>
>       </h1>
>     </div>
>   );
> }
> 
> ```
> 
> 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 <h1 className="cacaca|">.
This is in Emacs 30.  Looks like some mistake in handling the syntax
of the starting position?

> * Expected: Cursor stays without moving.

Dmitry, could you have a look, please?





  reply	other threads:[~2024-08-15  7:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-11  9:33 bug#72573: 29.4; js-mode/JSX: forward-sexp behavior at end of string in JSX fragments Daan Ro
2024-08-15  7:54 ` Eli Zaretskii [this message]
2024-08-18 13:37   ` Dmitry Gutov
2024-08-18 13:42     ` Eli Zaretskii
2024-08-18 14:11       ` Dmitry Gutov
2024-08-18 14:16         ` Eli Zaretskii
2024-08-18 20:19           ` Dmitry Gutov
2024-08-19  6:42             ` Juri Linkov
2024-08-24  8:32               ` Eli Zaretskii
2024-08-24  9:34                 ` Daan Ro
2024-08-31  9:26                   ` Eli Zaretskii
2024-09-01 17:02                 ` Juri Linkov
2024-09-14  7:39                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r0aq6x2a.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72573@debbugs.gnu.org \
    --cc=daanturo@gmail.com \
    --cc=dmitry@gutov.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).