GNU logs - #76676, boring messages


Message sent to casouri@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: casouri@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 02 Mar 2025 08:55:02 +0000
Resent-Message-ID: <handler.76676.B.174090564711037 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 76676
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 76676 <at> debbugs.gnu.org
Cc: Yuan Fu <casouri@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: Yuan Fu <casouri@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.174090564711037
          (code B ref -1); Sun, 02 Mar 2025 08:55:02 +0000
Received: (at submit) by debbugs.gnu.org; 2 Mar 2025 08:54:07 +0000
Received: from localhost ([127.0.0.1]:52954 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tof5J-0002rq-Lu
	for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:06 -0500
Received: from lists.gnu.org ([2001:470:142::17]:48304)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tof5F-0002qU-JN
 for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:03 -0500
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 <eliz@HIDDEN>) id 1tof59-0006ox-VZ
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:56 -0500
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 <eliz@HIDDEN>) id 1tof59-00013a-Mz
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to:
 references; bh=YwUd/0B1m7a4iodb8TFCY0fwziNMTpX7f3lgOpcJa1g=; b=QJJZ9ItrcVoKE2
 AsxfQdnQCh+r85adyej+aTFnbjm0WCKbgkeOw9TCC+uMB48OOZvC37enJsfNDImAR9u3rfcTC0OVm
 t0PBhWSWClky7YSfN4QA4mnAyvjcXnoYvFD4JRuBx79HRL27RaqFSI5/T5v7gJB85MwDcN/zg1Lq7
 qu1jJ+Pj55l/yWj23yQ2rpuJUqnM/u4FMnyOHnuiaNrJf7v4uQNYPUZx9NTaofSw3hr48Ei88VuU2
 Ks+UyZKA7b6k+Ts19ZT5YbPSccquqX14rN+At1w7qd5BuxKni/ntj1KMGQZFihudYNUCpW1VMfi+E
 6g1ievvXC4GmiFaJNeAg==;
Date: Sun, 02 Mar 2025 10:53:52 +0200
Message-Id: <86bjujolsv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

To reproduce:

  emacs -Q
  C-x C-f src/xdisp.c
  C-u 20722 M-g g

If xdisp.c is from the master branch, that should place you on the
closing brace at the end of the following fragment (else modify the
line number accordingly or just move point to that brace):

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    {
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */
      int ss = try_scrolling (window, just_this_one_p,
			      ((scroll_minibuffer_conservatively
			        && MINI_WINDOW_P (w))
			       ? SCROLL_LIMIT + 1
			       : scroll_conservatively),
			      emacs_scroll_step,
			      temp_scroll_step, last_line_misfit);
      switch (ss)
	{
	case SCROLLING_SUCCESS:
	  goto done;

	case SCROLLING_NEED_LARGER_MATRICES:
	  goto need_larger_matrices;

	case SCROLLING_FAILED:
	  break;

	default:
	  emacs_abort ();
	}
    }

Now type C-M-b.  The expected result is that point moves to the
corresponding opening brace, as shown below:

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    { <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */

But in fact, point moves to the first character of 'if' before that:

  if ((0 < scroll_conservatively

Let me know if I can supply more information.

In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32) of 2025-03-01 built on
 ELIZ-PC
Repository revision: 3998dea566aee807922e6edf8d1b20f3da89b4fc
Repository branch: emacs-30
Windowing system distributor 'Microsoft Corp.', version 10.0.26100
System Description: Microsoft Windows 10 Enterprise (v10.0.2009.26100.3194)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int
 --enable-checking=yes,glyphs --without-native-compilation 'CFLAGS=-O0
 -gdwarf-4 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY
PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: C/*

Minor modes in effect:
  bug-reference-prog-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-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
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-seq
c++-ts-mode c-ts-mode c-ts-common treesit vc-git diff-mode track-changes
easy-mmode vc vc-dispatcher bug-reference byte-opt gv bytecomp
byte-compile thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 92841 16422) (symbols 48 10144 0) (strings 16 28304 2881)
 (string-bytes 1 808502) (vectors 16 15855)
 (vector-slots 8 166559 10406) (floats 8 29 64) (intervals 40 3862 76)
 (buffers 896 11))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: bug#76676: Acknowledgement (30.1.50; C-M-b in c-ts-mode moves too
 far)
Message-ID: <handler.76676.B.174090564711037.ack <at> debbugs.gnu.org>
References: <86bjujolsv.fsf@HIDDEN>
X-Gnu-PR-Message: ack 76676
X-Gnu-PR-Package: emacs
Reply-To: 76676 <at> debbugs.gnu.org
Date: Sun, 02 Mar 2025 08:55:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Yuan Fu <casouri@HIDDEN>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 76676 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
76676: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76676
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 03 Mar 2025 07:45:01 +0000
Resent-Message-ID: <handler.76676.B76676.174098789029978 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76676
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Yuan Fu <casouri@HIDDEN>, 76676 <at> debbugs.gnu.org
Received: via spool by 76676-submit <at> debbugs.gnu.org id=B76676.174098789029978
          (code B ref 76676); Mon, 03 Mar 2025 07:45:01 +0000
Received: (at 76676) by debbugs.gnu.org; 3 Mar 2025 07:44:50 +0000
Received: from localhost ([127.0.0.1]:44027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tp0Tq-0007nS-HL
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 02:44:50 -0500
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:36917)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tp0Tn-0007mt-Ge
 for 76676 <at> debbugs.gnu.org; Mon, 03 Mar 2025 02:44:48 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 05B9B44320;
 Mon,  3 Mar 2025 07:44:35 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
In-Reply-To: <86bjujolsv.fsf@HIDDEN>
Organization: LINKOV.NET
References: <86bjujolsv.fsf@HIDDEN>
Date: Mon, 03 Mar 2025 09:27:14 +0200
Message-ID: <87ikoq60bx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelkeehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghofhffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepffegteefveelhfeljeefueehieduiedtfffhuddtkeeffffghfevheetgeeukeehnecukfhppeeluddruddvledruddthedruddujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddthedruddujedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheptggrshhouhhrihesghhmrghilhdrtghomhdprhgtphhtthhopeejieeijeeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> But in fact, point moves to the first character of 'if' before that:
>
>   if ((0 < scroll_conservatively
>
> Let me know if I can supply more information.
>
> In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)

This is already fixed in GNU Emacs 31.0.50.
Should this fix be backported into 30.1.50?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 03 Mar 2025 13:46:02 +0000
Resent-Message-ID: <handler.76676.B76676.174100950214202 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76676
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: casouri@HIDDEN, 76676 <at> debbugs.gnu.org
Received: via spool by 76676-submit <at> debbugs.gnu.org id=B76676.174100950214202
          (code B ref 76676); Mon, 03 Mar 2025 13:46:02 +0000
Received: (at 76676) by debbugs.gnu.org; 3 Mar 2025 13:45:02 +0000
Received: from localhost ([127.0.0.1]:46363 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tp66P-0003gb-9I
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 08:45:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55800)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tp66N-0003g5-05
 for 76676 <at> debbugs.gnu.org; Mon, 03 Mar 2025 08:45:00 -0500
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 <eliz@HIDDEN>)
 id 1tp66G-0002UV-HC; Mon, 03 Mar 2025 08:44:53 -0500
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=fewWzxIOGT+anv76eAWlUEHSQs8MGesnV/BUjMMVS+Y=; b=Grg9rT72Sjcq
 /8yHIlhJkK4jOocdsNmizcA8Qyv9RkPia6FP4P+LUIzeTHGQQy20zLK4Kz/qxdmuYicX/zv2a62az
 109VRqdd4YZM0J4Q/iVHHilMEpx+Wujz60IZeyAT8uvsHiyoZNipp7mr0nfavNfPiGy7Y8nxFrXJc
 zzfYQIMcFUBJUfW5mGS23sZ3aLbEcf8rR8KxSqpsp+Zvrpa3kDGAlmeq3dMXUTzj8UIQvNnsUfYfb
 ExypcAtopm5vxDEZMG4Gxn07EpDgNzhaho+NhGF/Kbvqsfs/ewkQH+0NxcUjGM7LOuNzP8q/EGI0w
 GNP1Ctf4RqGaXHmzU76YNQ==;
Date: Mon, 03 Mar 2025 15:44:47 +0200
Message-Id: <8634fumdo0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87ikoq60bx.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 03 Mar 2025 09:27:14 +0200)
References: <86bjujolsv.fsf@HIDDEN> <87ikoq60bx.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 76676 <at> debbugs.gnu.org,  Yuan Fu <casouri@HIDDEN>
> Date: Mon, 03 Mar 2025 09:27:14 +0200
> 
> > But in fact, point moves to the first character of 'if' before that:
> >
> >   if ((0 < scroll_conservatively
> >
> > Let me know if I can supply more information.
> >
> > In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)
> 
> This is already fixed in GNU Emacs 31.0.50.

Thanks, good to know.

> Should this fix be backported into 30.1.50?

Can you point me to the commit(s) which fixed that?  If they are safe,
I will backport them.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 03 Mar 2025 17:58:02 +0000
Resent-Message-ID: <handler.76676.B76676.174102467430544 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76676
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: casouri@HIDDEN, 76676 <at> debbugs.gnu.org
Received: via spool by 76676-submit <at> debbugs.gnu.org id=B76676.174102467430544
          (code B ref 76676); Mon, 03 Mar 2025 17:58:02 +0000
Received: (at 76676) by debbugs.gnu.org; 3 Mar 2025 17:57:54 +0000
Received: from localhost ([127.0.0.1]:51378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpA37-0007wZ-Pz
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 12:57:54 -0500
Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]:49841)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tpA35-0007vr-9U
 for 76676 <at> debbugs.gnu.org; Mon, 03 Mar 2025 12:57:51 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 8EFF4442AE;
 Mon,  3 Mar 2025 17:57:41 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
In-Reply-To: <8634fumdo0.fsf@HIDDEN>
Organization: LINKOV.NET
References: <86bjujolsv.fsf@HIDDEN> <87ikoq60bx.fsf@HIDDEN>
 <8634fumdo0.fsf@HIDDEN>
Date: Mon, 03 Mar 2025 19:56:32 +0200
Message-ID: <87r03e3smn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelleejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghofhffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepffegteefveelhfeljeefueehieduiedtfffhuddtkeeffffghfevheetgeeukeehnecukfhppeeluddruddvledruddthedruddujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddthedruddujedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheptggrshhouhhrihesghhmrghilhdrtghomhdprhgtphhtthhopeejieeijeeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> > But in fact, point moves to the first character of 'if' before that:
>> >
>> >   if ((0 < scroll_conservatively
>> >
>> > Let me know if I can supply more information.
>> >
>> > In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)
>> 
>> This is already fixed in GNU Emacs 31.0.50.
>
> Thanks, good to know.
>
>> Should this fix be backported into 30.1.50?
>
> Can you point me to the commit(s) which fixed that?  If they are safe,
> I will backport them.

There are too many commits during the previous 5 months.
Maybe easier would be to sync whole treesit.c, treesit.el
and ts-mode files to emacs-30?




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: bug#76676: closed (30.1.50; C-M-b in c-ts-mode moves too far)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.76676.D76676.174103064426015.ackdone <at> debbugs.gnu.org>
References: <86wmd5kisa.fsf@HIDDEN> <86bjujolsv.fsf@HIDDEN>
X-Gnu-PR-Message: closed 76676
X-Gnu-PR-Package: emacs
Date: Mon, 03 Mar 2025 19:38:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1741030681-26087-0"

This is a multi-part message in MIME format...

------------=_1741030681-26087-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Mon, 03 Mar 2025 21:37:09 +0200
with message-id <86wmd5kisa.fsf@HIDDEN>
and subject line Re: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
has caused the debbugs.gnu.org bug report #76676,
regarding 30.1.50; C-M-b in c-ts-mode moves too far
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
76676: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76676
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1741030681-26087-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 2 Mar 2025 08:54:07 +0000
Received: from localhost ([127.0.0.1]:52954 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tof5J-0002rq-Lu
	for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:06 -0500
Received: from lists.gnu.org ([2001:470:142::17]:48304)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tof5F-0002qU-JN
 for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:03 -0500
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 <eliz@HIDDEN>) id 1tof59-0006ox-VZ
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:56 -0500
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 <eliz@HIDDEN>) id 1tof59-00013a-Mz
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to:
 references; bh=YwUd/0B1m7a4iodb8TFCY0fwziNMTpX7f3lgOpcJa1g=; b=QJJZ9ItrcVoKE2
 AsxfQdnQCh+r85adyej+aTFnbjm0WCKbgkeOw9TCC+uMB48OOZvC37enJsfNDImAR9u3rfcTC0OVm
 t0PBhWSWClky7YSfN4QA4mnAyvjcXnoYvFD4JRuBx79HRL27RaqFSI5/T5v7gJB85MwDcN/zg1Lq7
 qu1jJ+Pj55l/yWj23yQ2rpuJUqnM/u4FMnyOHnuiaNrJf7v4uQNYPUZx9NTaofSw3hr48Ei88VuU2
 Ks+UyZKA7b6k+Ts19ZT5YbPSccquqX14rN+At1w7qd5BuxKni/ntj1KMGQZFihudYNUCpW1VMfi+E
 6g1ievvXC4GmiFaJNeAg==;
Date: Sun, 02 Mar 2025 10:53:52 +0200
Message-Id: <86bjujolsv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.1.50; C-M-b in c-ts-mode moves too far
X-Debbugs-Cc: Yuan Fu <casouri@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

To reproduce:

  emacs -Q
  C-x C-f src/xdisp.c
  C-u 20722 M-g g

If xdisp.c is from the master branch, that should place you on the
closing brace at the end of the following fragment (else modify the
line number accordingly or just move point to that brace):

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    {
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */
      int ss = try_scrolling (window, just_this_one_p,
			      ((scroll_minibuffer_conservatively
			        && MINI_WINDOW_P (w))
			       ? SCROLL_LIMIT + 1
			       : scroll_conservatively),
			      emacs_scroll_step,
			      temp_scroll_step, last_line_misfit);
      switch (ss)
	{
	case SCROLLING_SUCCESS:
	  goto done;

	case SCROLLING_NEED_LARGER_MATRICES:
	  goto need_larger_matrices;

	case SCROLLING_FAILED:
	  break;

	default:
	  emacs_abort ();
	}
    }

Now type C-M-b.  The expected result is that point moves to the
corresponding opening brace, as shown below:

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    { <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */

But in fact, point moves to the first character of 'if' before that:

  if ((0 < scroll_conservatively

Let me know if I can supply more information.

In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32) of 2025-03-01 built on
 ELIZ-PC
Repository revision: 3998dea566aee807922e6edf8d1b20f3da89b4fc
Repository branch: emacs-30
Windowing system distributor 'Microsoft Corp.', version 10.0.26100
System Description: Microsoft Windows 10 Enterprise (v10.0.2009.26100.3194)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int
 --enable-checking=yes,glyphs --without-native-compilation 'CFLAGS=-O0
 -gdwarf-4 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY
PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: C/*

Minor modes in effect:
  bug-reference-prog-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-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
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-seq
c++-ts-mode c-ts-mode c-ts-common treesit vc-git diff-mode track-changes
easy-mmode vc vc-dispatcher bug-reference byte-opt gv bytecomp
byte-compile thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 92841 16422) (symbols 48 10144 0) (strings 16 28304 2881)
 (string-bytes 1 808502) (vectors 16 15855)
 (vector-slots 8 166559 10406) (floats 8 29 64) (intervals 40 3862 76)
 (buffers 896 11))



------------=_1741030681-26087-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 76676-done) by debbugs.gnu.org; 3 Mar 2025 19:37:24 +0000
Received: from localhost ([127.0.0.1]:52099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpBbQ-0006lX-Bj
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:37:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53964)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tpBbN-0006lG-PT
 for 76676-done <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:37:22 -0500
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 <eliz@HIDDEN>)
 id 1tpBbH-0007DC-J1; Mon, 03 Mar 2025 14:37:15 -0500
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=1BGN8VW0U7mdhLfMiLSg72h048kDKfXF+afdgr8olSc=; b=bW67cSRJbn1f
 fAg1Gx/uS3Uh3t/q2ypznJXhpw9tPWc6IaDMW9RyfmPtAK88oDLnd7Mp58z9a7dbhd8CtdccIaM2S
 OR/7C/BEGFeLYpQV0CUdCNQk50XZonUlDDvMkBYkc5qBivqvz1tAVMl/H3+jUXRnA14WFx7Q+/rQ6
 +zzHJTymEKfNM1WiG2xR7ZF/FlXG+WuiNA9l5ueBDt2jJV+hKYNdji1DDQj5SzM/nrko52mIrllIv
 ZM+yt1vpegZouwEkyy8wPFbi4XRGNNfcAWaxW9L7d50nQteYz208pe8K672DHjHvnFvt+089K+yBA
 gXx9VraPYOkWli+Lg01QTg==;
Date: Mon, 03 Mar 2025 21:37:09 +0200
Message-Id: <86wmd5kisa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <87r03e3smn.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 03 Mar 2025 19:56:32 +0200)
Subject: Re: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
References: <86bjujolsv.fsf@HIDDEN> <87ikoq60bx.fsf@HIDDEN>
 <8634fumdo0.fsf@HIDDEN> <87r03e3smn.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76676-done
Cc: 76676-done <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 76676 <at> debbugs.gnu.org,  casouri@HIDDEN
> Date: Mon, 03 Mar 2025 19:56:32 +0200
> 
> >> > But in fact, point moves to the first character of 'if' before that:
> >> >
> >> >   if ((0 < scroll_conservatively
> >> >
> >> > Let me know if I can supply more information.
> >> >
> >> > In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)
> >> 
> >> This is already fixed in GNU Emacs 31.0.50.
> >
> > Thanks, good to know.
> >
> >> Should this fix be backported into 30.1.50?
> >
> > Can you point me to the commit(s) which fixed that?  If they are safe,
> > I will backport them.
> 
> There are too many commits during the previous 5 months.
> Maybe easier would be to sync whole treesit.c, treesit.el
> and ts-mode files to emacs-30?

No, that's too many non-trivial changes for my palate.  I thought you
knew which changeset on master fixed that, but if you don't, then the
fix will have to wait till Emacs 31.

Thanks.


------------=_1741030681-26087-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: bug#76676: closed (Re: bug#76676: 30.1.50; C-M-b in c-ts-mode
 moves too far)
Message-ID: <handler.76676.D76676.174103064426015.notifdone <at> debbugs.gnu.org>
References: <86wmd5kisa.fsf@HIDDEN> <86bjujolsv.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 76676
X-Gnu-PR-Package: emacs
Reply-To: 76676 <at> debbugs.gnu.org
Date: Mon, 03 Mar 2025 19:38:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1741030682-26087-1"

This is a multi-part message in MIME format...

------------=_1741030682-26087-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#76676: 30.1.50; C-M-b in c-ts-mode moves too far

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 76676 <at> debbugs.gnu.org.

--=20
76676: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76676
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1741030682-26087-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 76676-done) by debbugs.gnu.org; 3 Mar 2025 19:37:24 +0000
Received: from localhost ([127.0.0.1]:52099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpBbQ-0006lX-Bj
	for submit <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:37:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53964)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tpBbN-0006lG-PT
 for 76676-done <at> debbugs.gnu.org; Mon, 03 Mar 2025 14:37:22 -0500
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 <eliz@HIDDEN>)
 id 1tpBbH-0007DC-J1; Mon, 03 Mar 2025 14:37:15 -0500
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=1BGN8VW0U7mdhLfMiLSg72h048kDKfXF+afdgr8olSc=; b=bW67cSRJbn1f
 fAg1Gx/uS3Uh3t/q2ypznJXhpw9tPWc6IaDMW9RyfmPtAK88oDLnd7Mp58z9a7dbhd8CtdccIaM2S
 OR/7C/BEGFeLYpQV0CUdCNQk50XZonUlDDvMkBYkc5qBivqvz1tAVMl/H3+jUXRnA14WFx7Q+/rQ6
 +zzHJTymEKfNM1WiG2xR7ZF/FlXG+WuiNA9l5ueBDt2jJV+hKYNdji1DDQj5SzM/nrko52mIrllIv
 ZM+yt1vpegZouwEkyy8wPFbi4XRGNNfcAWaxW9L7d50nQteYz208pe8K672DHjHvnFvt+089K+yBA
 gXx9VraPYOkWli+Lg01QTg==;
Date: Mon, 03 Mar 2025 21:37:09 +0200
Message-Id: <86wmd5kisa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <87r03e3smn.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 03 Mar 2025 19:56:32 +0200)
Subject: Re: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
References: <86bjujolsv.fsf@HIDDEN> <87ikoq60bx.fsf@HIDDEN>
 <8634fumdo0.fsf@HIDDEN> <87r03e3smn.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76676-done
Cc: 76676-done <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 76676 <at> debbugs.gnu.org,  casouri@HIDDEN
> Date: Mon, 03 Mar 2025 19:56:32 +0200
> 
> >> > But in fact, point moves to the first character of 'if' before that:
> >> >
> >> >   if ((0 < scroll_conservatively
> >> >
> >> > Let me know if I can supply more information.
> >> >
> >> > In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)
> >> 
> >> This is already fixed in GNU Emacs 31.0.50.
> >
> > Thanks, good to know.
> >
> >> Should this fix be backported into 30.1.50?
> >
> > Can you point me to the commit(s) which fixed that?  If they are safe,
> > I will backport them.
> 
> There are too many commits during the previous 5 months.
> Maybe easier would be to sync whole treesit.c, treesit.el
> and ts-mode files to emacs-30?

No, that's too many non-trivial changes for my palate.  I thought you
knew which changeset on master fixed that, but if you don't, then the
fix will have to wait till Emacs 31.

Thanks.


------------=_1741030682-26087-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 2 Mar 2025 08:54:07 +0000
Received: from localhost ([127.0.0.1]:52954 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tof5J-0002rq-Lu
	for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:06 -0500
Received: from lists.gnu.org ([2001:470:142::17]:48304)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tof5F-0002qU-JN
 for submit <at> debbugs.gnu.org; Sun, 02 Mar 2025 03:54:03 -0500
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 <eliz@HIDDEN>) id 1tof59-0006ox-VZ
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:56 -0500
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 <eliz@HIDDEN>) id 1tof59-00013a-Mz
 for bug-gnu-emacs@HIDDEN; Sun, 02 Mar 2025 03:53:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to:
 references; bh=YwUd/0B1m7a4iodb8TFCY0fwziNMTpX7f3lgOpcJa1g=; b=QJJZ9ItrcVoKE2
 AsxfQdnQCh+r85adyej+aTFnbjm0WCKbgkeOw9TCC+uMB48OOZvC37enJsfNDImAR9u3rfcTC0OVm
 t0PBhWSWClky7YSfN4QA4mnAyvjcXnoYvFD4JRuBx79HRL27RaqFSI5/T5v7gJB85MwDcN/zg1Lq7
 qu1jJ+Pj55l/yWj23yQ2rpuJUqnM/u4FMnyOHnuiaNrJf7v4uQNYPUZx9NTaofSw3hr48Ei88VuU2
 Ks+UyZKA7b6k+Ts19ZT5YbPSccquqX14rN+At1w7qd5BuxKni/ntj1KMGQZFihudYNUCpW1VMfi+E
 6g1ievvXC4GmiFaJNeAg==;
Date: Sun, 02 Mar 2025 10:53:52 +0200
Message-Id: <86bjujolsv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.1.50; C-M-b in c-ts-mode moves too far
X-Debbugs-Cc: Yuan Fu <casouri@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

To reproduce:

  emacs -Q
  C-x C-f src/xdisp.c
  C-u 20722 M-g g

If xdisp.c is from the master branch, that should place you on the
closing brace at the end of the following fragment (else modify the
line number accordingly or just move point to that brace):

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    {
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */
      int ss = try_scrolling (window, just_this_one_p,
			      ((scroll_minibuffer_conservatively
			        && MINI_WINDOW_P (w))
			       ? SCROLL_LIMIT + 1
			       : scroll_conservatively),
			      emacs_scroll_step,
			      temp_scroll_step, last_line_misfit);
      switch (ss)
	{
	case SCROLLING_SUCCESS:
	  goto done;

	case SCROLLING_NEED_LARGER_MATRICES:
	  goto need_larger_matrices;

	case SCROLLING_FAILED:
	  break;

	default:
	  emacs_abort ();
	}
    }

Now type C-M-b.  The expected result is that point moves to the
corresponding opening brace, as shown below:

  /* Try to scroll by specified few lines.  */
  if ((0 < scroll_conservatively
       /* FIXME: the option is supposed to affect minibuffers, but we
	  test MINI_WINDOW_P, which can also catch uses of
	  mini-windows for displaying the echo area.  Do we need to
	  distinguish these two use cases?  */
       || (scroll_minibuffer_conservatively && MINI_WINDOW_P (w))
       || 0 < emacs_scroll_step
       || temp_scroll_step
       || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
       || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
      && CHARPOS (startp) >= BEGV
      && CHARPOS (startp) <= ZV)
    { <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      /* The function returns -1 if new fonts were loaded, 1 if
	 successful, 0 if not successful.  */

But in fact, point moves to the first character of 'if' before that:

  if ((0 < scroll_conservatively

Let me know if I can supply more information.

In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32) of 2025-03-01 built on
 ELIZ-PC
Repository revision: 3998dea566aee807922e6edf8d1b20f3da89b4fc
Repository branch: emacs-30
Windowing system distributor 'Microsoft Corp.', version 10.0.26100
System Description: Microsoft Windows 10 Enterprise (v10.0.2009.26100.3194)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int
 --enable-checking=yes,glyphs --without-native-compilation 'CFLAGS=-O0
 -gdwarf-4 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY
PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: C/*

Minor modes in effect:
  bug-reference-prog-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-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
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-seq
c++-ts-mode c-ts-mode c-ts-common treesit vc-git diff-mode track-changes
easy-mmode vc vc-dispatcher bug-reference byte-opt gv bytecomp
byte-compile thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel touch-screen dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 92841 16422) (symbols 48 10144 0) (strings 16 28304 2881)
 (string-bytes 1 808502) (vectors 16 15855)
 (vector-slots 8 166559 10406) (floats 8 29 64) (intervals 40 3862 76)
 (buffers 896 11))



------------=_1741030682-26087-1--


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Resent-From: Yuan Fu <casouri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 04 Mar 2025 23:17:02 +0000
Resent-Message-ID: <handler.76676.D76676.17411302044630 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76676
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 76676-done <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
Received: via spool by 76676-done <at> debbugs.gnu.org id=D76676.17411302044630
          (code D ref 76676); Tue, 04 Mar 2025 23:17:02 +0000
Received: (at 76676-done) by debbugs.gnu.org; 4 Mar 2025 23:16:44 +0000
Received: from localhost ([127.0.0.1]:33488 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tpbVE-0001Cb-Hc
	for submit <at> debbugs.gnu.org; Tue, 04 Mar 2025 18:16:44 -0500
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:44352)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <casouri@HIDDEN>) id 1tpbVB-0001CJ-8i
 for 76676-done <at> debbugs.gnu.org; Tue, 04 Mar 2025 18:16:42 -0500
Received: by mail-pl1-x62d.google.com with SMTP id
 d9443c01a7336-22339936bbfso92638835ad.1
 for <76676-done <at> debbugs.gnu.org>; Tue, 04 Mar 2025 15:16:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741130195; x=1741734995; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=1l/Mmp1eRiCWKhOYM8Rq+LpO7moVr/hkvsuJwFpY+9c=;
 b=Jp5orOnaZxddpzt4S8qXgNl/Q94Fl0FT7+zS4uhtLA4GaWK3SxfMhpiBB9/wF+2T+j
 T2IeNkzErnNY/GXZBKsWQiIyVgFzv+rB7Cu1jltlHQ7o8NSBnn8qGKBL5hyRYnToY0TG
 Vhl2upO6Omjah787izjkBvz0bb9bKCdlx8L+W312PlxYPP/Bc9bTg9frXye6uBL41SlQ
 z0Z7apt6m0WYhNtMWizaCMiZNtfmUrRSPiBYsZpeqjfaosZqhoI71emXnyjNF7T9NAA6
 e7jDLf28BY9QFe6Sz1UVF7jCnbuon52xRHw6pDt+SrEBlB4mwhTlLNZnVLa3/9/RPkyk
 5Dhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741130195; x=1741734995;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=1l/Mmp1eRiCWKhOYM8Rq+LpO7moVr/hkvsuJwFpY+9c=;
 b=wR4Kd2VwAN2Pn60WyISfGnmDDjvNNxiNUtzFRUyaSC9N0TR1ld6vP8loy5EOWBVe/+
 S0VE6t+XedZbYERdHoYG6/AYTy9p8VmgktLIN9drI42AzaqUoao31vIkKvgVW8R15DPT
 BUzoYjXwnvvUCMl+j6U1aBPqTznnCjIZfIQXWJd9vQHpsjsZjO5SZjMdpuaXkJ9pyQT1
 4EUbYzCeBxcUtDb6crPamx7SLLYQuWAif5M+8V6R9jJJzFjo2DyEt/decRwTlNHkwX2B
 OsMqZTgsRNzDTTdkD5eDULiFo45XaHMMBBcL5MDgZ/njlZbO2ofqIT2tMp2haYgyJ77d
 TtDw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWxmFtf08LYa47Un9OJ6OCq/O3IZzTrvU+RdwIdmhDskqXupQfijB/76HEZsUsX2rYHwtakRT9qjFpg <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YxDp6MaU3FwXfWINWGc2zJbDYn/loEAOHwFhLX8UeX+jshvFM+0
 EmYoSaxskwhyitp4hRRs8h9tzGHcvFV0oDuc67K43QQIioUEtmT3
X-Gm-Gg: ASbGncvo5BjiihSMEeNmQQbgnlr/teRaK7zesRPKJfRpaveqHBAlyVqaRSGFcmsxlME
 NrRAYkH/qKoCNK5wJIQzV6DNC+/s8K8NWQ3lW3O/3Ddqfzofre4c4V3iD91tgGicSdKCLxW8s/O
 YuwpTLcRWcO39HlBMfWTejLkrF7p5H9bd8Hn5eEkWjdnNxcbqH7cHCQE3wXfPzcle0XB/3W/oi5
 Y5I+OSgdGmQU1NckNYDo7tnHqG9/MK+QYc1h/DtFEME60JE6TgORH8mmHiTD7axIi2rzEV4N9h1
 7yj0oRC5tV/D+TXGlv/xMH0vyu9E0c9E+orijhRVA8ANHozVqNLo/9ep9hKbsmv9n3jS
X-Google-Smtp-Source: AGHT+IFVo6HZzCz+XfUNfrm1G56C5SLI6FvxloWAUhlIV74fcslJJemuaeuOgcaNOzuCMb6DxPFTGw==
X-Received: by 2002:a17:903:182:b0:223:2630:6b82 with SMTP id
 d9443c01a7336-223f1c6903amr18868265ad.10.1741130194852; 
 Tue, 04 Mar 2025 15:16:34 -0800 (PST)
Received: from smtpclient.apple ([2601:646:8f81:6120:c004:4d68:8d79:7ea8])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-223504c5cd2sm101512165ad.143.2025.03.04.15.16.33
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 04 Mar 2025 15:16:34 -0800 (PST)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
From: Yuan Fu <casouri@HIDDEN>
In-Reply-To: <86wmd5kisa.fsf@HIDDEN>
Date: Tue, 4 Mar 2025 15:16:23 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <7B3F7821-0477-4020-8FA3-FD1FD56A83DE@HIDDEN>
References: <86bjujolsv.fsf@HIDDEN> <87ikoq60bx.fsf@HIDDEN>
 <8634fumdo0.fsf@HIDDEN> <87r03e3smn.fsf@HIDDEN>
 <86wmd5kisa.fsf@HIDDEN>
X-Mailer: Apple Mail (2.3776.700.51)
X-Spam-Score: 0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)



> On Mar 3, 2025, at 11:37=E2=80=AFAM, Eli Zaretskii <eliz@HIDDEN> =
wrote:
>=20
>> From: Juri Linkov <juri@HIDDEN>
>> Cc: 76676 <at> debbugs.gnu.org,  casouri@HIDDEN
>> Date: Mon, 03 Mar 2025 19:56:32 +0200
>>=20
>>>>> But in fact, point moves to the first character of 'if' before =
that:
>>>>>=20
>>>>>  if ((0 < scroll_conservatively
>>>>>=20
>>>>> Let me know if I can supply more information.
>>>>>=20
>>>>> In GNU Emacs 30.1.50 (build 9, i686-pc-mingw32)
>>>>=20
>>>> This is already fixed in GNU Emacs 31.0.50.
>>>=20
>>> Thanks, good to know.
>>>=20
>>>> Should this fix be backported into 30.1.50?
>>>=20
>>> Can you point me to the commit(s) which fixed that?  If they are =
safe,
>>> I will backport them.
>>=20
>> There are too many commits during the previous 5 months.
>> Maybe easier would be to sync whole treesit.c, treesit.el
>> and ts-mode files to emacs-30?
>=20
> No, that's too many non-trivial changes for my palate.  I thought you
> knew which changeset on master fixed that, but if you don't, then the
> fix will have to wait till Emacs 31.
>=20
> Thanks.

Yes, to add to that, I made some significant changes to how indentation =
works on master which requires changes in c-ts-common.el.

Yuan=





Last modified: Tue, 4 Mar 2025 23:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.