From unknown Sat Jun 21 12:11:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling Resent-From: Renato Fernandes de Queiroz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2024 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 73800@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17288937619868 (code B ref -1); Mon, 14 Oct 2024 08:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Oct 2024 08:16:01 +0000 Received: from localhost ([127.0.0.1]:35231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0GFE-0002Z2-Tf for submit@debbugs.gnu.org; Mon, 14 Oct 2024 04:16:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:60456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0CA2-0004G1-BS for submit@debbugs.gnu.org; Sun, 13 Oct 2024 23:54:23 -0400 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 1t0C9l-0002oy-8U for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 23:54:05 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0C9j-0008M0-BK for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 23:54:05 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7ae3d7222d4so3221885a12.3 for ; Sun, 13 Oct 2024 20:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728878040; x=1729482840; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=FApbA2R1+TjhnoFs2B9zXc6aF5uMmQA6SmgseV+Ih48=; b=ekP40yROOFT77bJROZQAM+qhtqOnPWLfx7p7iMjlrQHhjHqzl6DEfZhTJOc81HWQwM H+eLfUqWn7FcoOmW1vxuwKym5b3WCNO3yWn1DoHk6DawRHUHkyjNRaTpDv3jRz8SUd+c ZDPbeoDOn7895Zoh6luaLBRjNtn745QG3o67g272cL0CMf1B1B4JeGJfHD8GmxGDNvid TGQrokdy1Zw39Sy7RE/QstEhkwsnBdhRu+0CqZmca35R5Wq0ifuq8Iipkc/3//7xdwmK UpV3DUe556pYr0Q4gMro29WdB3C+g4+jYYAIpRJy27O+NFElFGk2iD+So2gLjfWhxb5F xDIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728878040; x=1729482840; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=FApbA2R1+TjhnoFs2B9zXc6aF5uMmQA6SmgseV+Ih48=; b=vFYZUDLMb0VsFgaAT+TKH82sx9XDxtWpinKeBTkEZKkYvTVmHEeHPa6DWkIDyfZz4C k7sZYgF92B0FwZBv82P96knEn953vmmaGYcUoxtq2S7hb4vUC99Twin2UllEa4ZfzKVe +p+/jtfyE6bWBx8F/ksbOR0bNB6orsfypX7DtwB92eidr+XZQl/+2+Uch08a4U+mkKvP jhxYuAC0FNQoxn8Oi+5SipbUrGAwlxkENCR2y7giiB8YiqY6guZp0WoU2U3InvyVhfrL Jj1ToLzjYQt6H0jeaDXGQfoCZvJeJR0QaFZFtppIeNyl5LQQsI/aqq5ampYHdoKhNEKU kUnQ== X-Gm-Message-State: AOJu0YzUjTjsqnJ70mNtrUXW9IkShpPREnmV9LKXC5CDt9zcoSrEocBB v+Cnr2AbhU2C+2GGERsxQPfR4sYg6JzOwPPWhFVME7hFm+pAEIUIs7ryNw== X-Google-Smtp-Source: AGHT+IEs+nw2vpYcZApRS6GHBKae9Kq+hWy30dg93usAnfoYtWgl4RWsj0WwtcF3crwkLfZrJv9ynw== X-Received: by 2002:a05:6a20:e18a:b0:1d4:e4c9:99d with SMTP id adf61e73a8af0-1d8bcefcbadmr14937009637.7.1728878040143; Sun, 13 Oct 2024 20:54:00 -0700 (PDT) Received: from ?IPV6:2804:7f74:b1c:4e00:ec3f:811f:1e4:bd82? ([2804:7f74:b1c:4e00:ec3f:811f:1e4:bd82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e6818a0e2sm775324b3a.31.2024.10.13.20.53.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Oct 2024 20:53:59 -0700 (PDT) Message-ID: Date: Mon, 14 Oct 2024 00:53:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Renato Fernandes de Queiroz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=renatofq@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Mon, 14 Oct 2024 04:15:59 -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: -2.3 (--) Steps to reproduce: 1. Open a new buffer and load c-ts-mode 2. insert the following code int main (int argc, char *argv[]) { int x; a } 3. Move point past 'a' 4. Hit TAB Emacs enters a infinite loop. I've set debug-on-quit to t and got Debugger entered--Lisp error: (quit) looking-back("^[[:space:]]*" 283) c-ts-mode--anchor-prev-sibling(# # 304) treesit--simple-indent-eval((c-ts-mode--anchor-prev-sibling # # 304)) treesit-simple-indent(# # 304) apply(treesit-simple-indent (# # 304)) #[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward](# # 304) apply(#[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward] (# # 304)) #f(advice c-ts-base--before-indent :filter-args #[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward])(# # 304) treesit--indent-1() treesit-indent() indent--funcall-widened(treesit-indent) indent-for-tab-command(nil) funcall-interactively(indent-for-tab-command nil) command-execute(indent-for-tab-command) Looking at the function code I saw that a form that shoud be inside the condition. Probably a typo. The fix is trivial: diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 576d715510d..9003201c651 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -329,8 +329,8 @@ c-ts-mode--anchor-prev-sibling ;; and starting the items on the same line as {. (_ (goto-char (treesit-node-start prev-sibling)) (if (or (looking-back (rx bol (* whitespace)) - (line-beginning-position))) - (null (treesit-node-prev-sibling prev-sibling t)) + (line-beginning-position)) + (null (treesit-node-prev-sibling prev-sibling t))) (setq continue nil) (setq prev-sibling (treesit-node-prev-sibling prev-sibling))))))) This bug was introduced at e49b479f869. In GNU Emacs 30.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2024-10-13 built on carcara Repository revision: ae75ea62324598654b32ed28bf644ec2bc4c04b2 Repository branch: emacs-30 System Description: Arch Linux Configured using: 'configure --with-pgtk --without-gconf --with-sound=no --without-gpm --without-xaw3d --with-tree-sitter --with-modules --without-libotf --without-m17n-flt --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: pt_BR.UTF-8 locale-coding-system: utf-8-unix Major mode: C/* Minor modes in effect: 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 rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux dired dired-loaddefs cl-print debug backtrace find-func cus-edit pp wid-edit cus-start cus-load time-date c++-ts-mode c-ts-mode c-ts-common treesit cl-extra noutline outline help-fns radix-tree help-mode vc-git diff-mode track-changes easy-mmode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile text-property-search comint ansi-osc ansi-color ring comp-run comp-common rx ffap thingatpt url-parse auth-source cl-seq eieio eieio-core cl-macs icons cl-loaddefs cl-lib password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 170635 186225) (symbols 48 13031 15) (strings 32 39676 2329) (string-bytes 1 1551295) (vectors 16 21497) (vector-slots 8 267270 42860) (floats 8 55 133) (intervals 56 1333 679) (buffers 992 18)) From unknown Sat Jun 21 12:11:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling Resent-From: Charalampos Mitrodimas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2024 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Renato Fernandes de Queiroz Cc: 73800@debbugs.gnu.org Received: via spool by 73800-submit@debbugs.gnu.org id=B73800.17289119619118 (code B ref 73800); Mon, 14 Oct 2024 13:20:02 +0000 Received: (at 73800) by debbugs.gnu.org; 14 Oct 2024 13:19:21 +0000 Received: from localhost ([127.0.0.1]:37449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Kym-0002Mn-VU for submit@debbugs.gnu.org; Mon, 14 Oct 2024 09:19:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Kyj-0002MB-KZ for 73800@debbugs.gnu.org; Mon, 14 Oct 2024 09:19:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9C98B240027 for <73800@debbugs.gnu.org>; Mon, 14 Oct 2024 15:12:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1728911532; bh=7Hz8IsuEYMcAcBZek60GG0bev16q6+AYYdlu7U45e5A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=gxoTTTJDcBI7zL/gHbCukArgYvJxwrmig7ZPf1QfssxLAGX9ImKIGOKc/PQd2503v evPwnR+C5xwA9Fk64F122Z5vXjQq9WRUSwSv7n0Vk1uTPYzeCS2NZX57h+Wq3Z+bJD OKu3EKO+uIfTdq47tRunHbinZ+WPjjYgc4HIYdTKegTYSQemdWXTfesLO6l9tbUpnF L5ONwXlKNgBTucF3sFQdLAmVWDv48jpV/Ih/f6RskXHyCXYBhRUiDAz9ov5xbI5iNo P+0EEReQbL3jYr82W+2qwy9+28Uex7S3sJpIrT75lAd1ac84bfur+NcNONN01obb2M Eqbddia/x79PA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XRyLg6Y2vz9rxG; Mon, 14 Oct 2024 15:12:11 +0200 (CEST) From: Charalampos Mitrodimas In-Reply-To: (Renato Fernandes de Queiroz's message of "Mon, 14 Oct 2024 00:53:56 -0300") References: Date: Mon, 14 Oct 2024 13:12:10 +0000 Message-ID: <87froyltg5.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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: -3.3 (---) Hi, I also had this issue a week but didn't bother looking into it. The proposed fix works. Thanks Renato! C. Mitrodimas Renato Fernandes de Queiroz writes: > Steps to reproduce: > 1. Open a new buffer and load c-ts-mode > 2. insert the following code > > int > main (int argc, char *argv[]) > { > int x; > > a > } > > 3. Move point past 'a' > 4. Hit TAB > > Emacs enters a infinite loop. > > I've set debug-on-quit to t and got > > Debugger entered--Lisp error: (quit) > looking-back("^[[:space:]]*" 283) > c-ts-mode--anchor-prev-sibling(# in 304-337> # 304) > treesit--simple-indent-eval((c-ts-mode--anchor-prev-sibling > # # compound_statement in 281-390> 304)) > treesit-simple-indent(# 304-337> # 304) > apply(treesit-simple-indent (# 304-337> # 304)) > #[128 "\301\302\300!\2\"\207" [treesit-indent-function apply > default-value] 4 advice--forward](# expression_statement in 304-337> # in 281-390> 304) > apply(#[128 "\301\302\300!\2\"\207" [treesit-indent-function apply > default-value] 4 advice--forward] (# expression_statement in 304-337> # in 281-390> 304)) > #f(advice c-ts-base--before-indent :filter-args #[128 > "\301\302\300!\2\"\207" [treesit-indent-function apply > default-value] 4 advice--forward])(# expression_statement in 304-337> # in 281-390> 304) > treesit--indent-1() > treesit-indent() > indent--funcall-widened(treesit-indent) > indent-for-tab-command(nil) > funcall-interactively(indent-for-tab-command nil) > command-execute(indent-for-tab-command) > > > Looking at the function code I saw that a form that shoud be inside the > condition. Probably a typo. The fix is trivial: > > > diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el > index 576d715510d..9003201c651 100644 > --- a/lisp/progmodes/c-ts-mode.el > +++ b/lisp/progmodes/c-ts-mode.el > @@ -329,8 +329,8 @@ c-ts-mode--anchor-prev-sibling > ;; and starting the items on the same line as {. > (_ (goto-char (treesit-node-start prev-sibling)) > (if (or (looking-back (rx bol (* whitespace)) > - (line-beginning-position))) > - (null (treesit-node-prev-sibling prev-sibling t)) > + (line-beginning-position)) > + (null (treesit-node-prev-sibling prev-sibling t))) > (setq continue nil) > (setq prev-sibling > (treesit-node-prev-sibling prev-sibling))))))) > > This bug was introduced at e49b479f869. > > > > In GNU Emacs 30.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.43, cairo version 1.18.2) of 2024-10-13 built on carcara > Repository revision: ae75ea62324598654b32ed28bf644ec2bc4c04b2 > Repository branch: emacs-30 > System Description: Arch Linux > > Configured using: > 'configure --with-pgtk --without-gconf --with-sound=no --without-gpm > --without-xaw3d --with-tree-sitter --with-modules --without-libotf > --without-m17n-flt --with-native-compilation' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG > LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK > PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER > WEBP XIM GTK3 ZLIB > > Important settings: > value of $LANG: pt_BR.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: C/* > > Minor modes in effect: > 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 rfc822 > mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode > mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader > sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils > dired-aux dired dired-loaddefs cl-print debug backtrace find-func > cus-edit pp wid-edit cus-start cus-load time-date c++-ts-mode c-ts-mode > c-ts-common treesit cl-extra noutline outline help-fns radix-tree > help-mode vc-git diff-mode track-changes easy-mmode vc-dispatcher > cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine > cc-vars cc-defs compile text-property-search comint ansi-osc ansi-color > ring comp-run comp-common rx ffap thingatpt url-parse auth-source cl-seq > eieio eieio-core cl-macs icons cl-loaddefs cl-lib password-cache json > subr-x map byte-opt gv bytecomp byte-compile url-vars rmc iso-transl > tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks > lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win > touch-screen pgtk-dnd 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 dbusbind inotify dynamic-setting system-font-setting > font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar > make-network-process native-compile emacs) > > Memory information: > ((conses 16 170635 186225) (symbols 48 13031 15) > (strings 32 39676 2329) (string-bytes 1 1551295) (vectors 16 21497) > (vector-slots 8 267270 42860) (floats 8 55 133) > (intervals 56 1333 679) (buffers 992 18)) From unknown Sat Jun 21 12:11:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 08:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Renato Fernandes de Queiroz Cc: Yuan Fu , 73800@debbugs.gnu.org Received: via spool by 73800-submit@debbugs.gnu.org id=B73800.17293264169837 (code B ref 73800); Sat, 19 Oct 2024 08:27:02 +0000 Received: (at 73800) by debbugs.gnu.org; 19 Oct 2024 08:26:56 +0000 Received: from localhost ([127.0.0.1]:41318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t24nX-0002Yb-Hc for submit@debbugs.gnu.org; Sat, 19 Oct 2024 04:26:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t24nW-0002YN-0w for 73800@debbugs.gnu.org; Sat, 19 Oct 2024 04:26:54 -0400 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 1t24n1-00043m-Q7; Sat, 19 Oct 2024 04:26:25 -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=GFb4P9sj7BWFq/Tqh3agIcrrURH+eEPXLT8U3vDH2ws=; b=mt4ySVfXEGT4 RJdkkFPtSHAuVASMolv8bzb7tlsCTHkZgQIDptdDjqrK04q/WYwyWIVDtQSGM9RBWUH1qZCmqku+a KkRbvp/jbXydkN54DF4p4YEg569CAeE6rJdz7xI0/l0MnX1Cl5wr970rpqOppPmFHe97lf6qhJswR dLrbyGh+19/beit6VpW8Y9BswZPqk5SckZgs0xV5QaXbTN4muvk2jxtHLPSqlNzbu9UlNzoC8t0RF oxiJDVU87meVSJMmmELN1sr/HkIJiifsRQzVUGyn+VUQ2GAMJbyeVIm1DVr8D65oDXI60FN4XSg9U TPNwAWUV2MkZA/iChwLkkQ==; Date: Sat, 19 Oct 2024 11:26:17 +0300 Message-Id: <86plnwlcra.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Renato Fernandes de Queiroz on Mon, 14 Oct 2024 00:53:56 -0300) References: X-Spam-Score: -2.3 (--) 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: -3.3 (---) > Date: Mon, 14 Oct 2024 00:53:56 -0300 > From: Renato Fernandes de Queiroz > > Steps to reproduce: > 1. Open a new buffer and load c-ts-mode > 2. insert the following code > > int > main (int argc, char *argv[]) > { > int x; > > a > } > > 3. Move point past 'a' > 4. Hit TAB > > Emacs enters a infinite loop. It no longer does infloop with the current emacs-30 branch, probably due to changes installed there lately. Could you please try the latest branch and see if the problem persists? From unknown Sat Jun 21 12:11:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Renato Fernandes de Queiroz Subject: bug#73800: closed (Re: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling) Message-ID: References: <86a5f0l7pn.fsf@gnu.org> X-Gnu-PR-Message: they-closed 73800 X-Gnu-PR-Package: emacs Reply-To: 73800@debbugs.gnu.org Date: Sat, 19 Oct 2024 10:16:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1729332963-29375-1" This is a multi-part message in MIME format... ------------=_1729332963-29375-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling 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 73800@debbugs.gnu.org. --=20 73800: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73800 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1729332963-29375-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73800-done) by debbugs.gnu.org; 19 Oct 2024 10:15:50 +0000 Received: from localhost ([127.0.0.1]:41542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t26Uv-0007dJ-Py for submit@debbugs.gnu.org; Sat, 19 Oct 2024 06:15:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t26Ut-0007d0-M5 for 73800-done@debbugs.gnu.org; Sat, 19 Oct 2024 06:15:48 -0400 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 1t26UQ-0000WY-Pr; Sat, 19 Oct 2024 06:15:18 -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=Nwd4OvugkI/c6oMeuzOyvwSH8sSkIEaF07hi5AvuDqg=; b=R+VKITXYjaE8 EPTMVHECyP8J31p4/4cPOrf1BIDFHU2xqnBF/B0kAwJC6YiBmW3TXzG1vBbzDiSZJlma2uX9MS9W2 TpQB45mwFpjIeJ+ZFtj3aCgrIfEQsw2reahVsz+FsQsPZUNaW1kN4kHHxbCLKp9BWpMX2OqtO1Gk/ wdngjaDTluH2DLP390bmq8UgVoUaDyfolJEyS+D6H3q3mi8Kvo/8JMynCp7nfXwEIQF7wQu07PzkT IKSOURnaEAzODJNMnFvKVwJyicZRjdZJ0y3xaO9a/an7xOtXeOyOVD+tlMT4ZQLjoUlmtzl3Q85JG VNzQ8cXv5kMEK81Be4Cv1A==; Date: Sat, 19 Oct 2024 13:15:16 +0300 Message-Id: <86a5f0l7pn.fsf@gnu.org> From: Eli Zaretskii To: Renato Fernandes de Queiroz In-Reply-To: (message from Renato Fernandes de Queiroz on Sat, 19 Oct 2024 06:36:52 -0300) Subject: Re: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling References: <86plnwlcra.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73800-done Cc: casouri@gmail.com, 73800-done@debbugs.gnu.org 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: -3.3 (---) > Date: Sat, 19 Oct 2024 06:36:52 -0300 > Cc: 73800@debbugs.gnu.org, Yuan Fu > From: Renato Fernandes de Queiroz > > The issue is fixed in current emacs-30. Thanks Thanks, closing. ------------=_1729332963-29375-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Oct 2024 08:16:01 +0000 Received: from localhost ([127.0.0.1]:35231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0GFE-0002Z2-Tf for submit@debbugs.gnu.org; Mon, 14 Oct 2024 04:16:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:60456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0CA2-0004G1-BS for submit@debbugs.gnu.org; Sun, 13 Oct 2024 23:54:23 -0400 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 1t0C9l-0002oy-8U for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 23:54:05 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0C9j-0008M0-BK for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 23:54:05 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7ae3d7222d4so3221885a12.3 for ; Sun, 13 Oct 2024 20:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728878040; x=1729482840; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=FApbA2R1+TjhnoFs2B9zXc6aF5uMmQA6SmgseV+Ih48=; b=ekP40yROOFT77bJROZQAM+qhtqOnPWLfx7p7iMjlrQHhjHqzl6DEfZhTJOc81HWQwM H+eLfUqWn7FcoOmW1vxuwKym5b3WCNO3yWn1DoHk6DawRHUHkyjNRaTpDv3jRz8SUd+c ZDPbeoDOn7895Zoh6luaLBRjNtn745QG3o67g272cL0CMf1B1B4JeGJfHD8GmxGDNvid TGQrokdy1Zw39Sy7RE/QstEhkwsnBdhRu+0CqZmca35R5Wq0ifuq8Iipkc/3//7xdwmK UpV3DUe556pYr0Q4gMro29WdB3C+g4+jYYAIpRJy27O+NFElFGk2iD+So2gLjfWhxb5F xDIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728878040; x=1729482840; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=FApbA2R1+TjhnoFs2B9zXc6aF5uMmQA6SmgseV+Ih48=; b=vFYZUDLMb0VsFgaAT+TKH82sx9XDxtWpinKeBTkEZKkYvTVmHEeHPa6DWkIDyfZz4C k7sZYgF92B0FwZBv82P96knEn953vmmaGYcUoxtq2S7hb4vUC99Twin2UllEa4ZfzKVe +p+/jtfyE6bWBx8F/ksbOR0bNB6orsfypX7DtwB92eidr+XZQl/+2+Uch08a4U+mkKvP jhxYuAC0FNQoxn8Oi+5SipbUrGAwlxkENCR2y7giiB8YiqY6guZp0WoU2U3InvyVhfrL Jj1ToLzjYQt6H0jeaDXGQfoCZvJeJR0QaFZFtppIeNyl5LQQsI/aqq5ampYHdoKhNEKU kUnQ== X-Gm-Message-State: AOJu0YzUjTjsqnJ70mNtrUXW9IkShpPREnmV9LKXC5CDt9zcoSrEocBB v+Cnr2AbhU2C+2GGERsxQPfR4sYg6JzOwPPWhFVME7hFm+pAEIUIs7ryNw== X-Google-Smtp-Source: AGHT+IEs+nw2vpYcZApRS6GHBKae9Kq+hWy30dg93usAnfoYtWgl4RWsj0WwtcF3crwkLfZrJv9ynw== X-Received: by 2002:a05:6a20:e18a:b0:1d4:e4c9:99d with SMTP id adf61e73a8af0-1d8bcefcbadmr14937009637.7.1728878040143; Sun, 13 Oct 2024 20:54:00 -0700 (PDT) Received: from ?IPV6:2804:7f74:b1c:4e00:ec3f:811f:1e4:bd82? ([2804:7f74:b1c:4e00:ec3f:811f:1e4:bd82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e6818a0e2sm775324b3a.31.2024.10.13.20.53.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Oct 2024 20:53:59 -0700 (PDT) Message-ID: Date: Mon, 14 Oct 2024 00:53:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Renato Fernandes de Queiroz Subject: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=renatofq@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 14 Oct 2024 04:15:59 -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: -2.3 (--) Steps to reproduce: 1. Open a new buffer and load c-ts-mode 2. insert the following code int main (int argc, char *argv[]) { int x; a } 3. Move point past 'a' 4. Hit TAB Emacs enters a infinite loop. I've set debug-on-quit to t and got Debugger entered--Lisp error: (quit) looking-back("^[[:space:]]*" 283) c-ts-mode--anchor-prev-sibling(# # 304) treesit--simple-indent-eval((c-ts-mode--anchor-prev-sibling # # 304)) treesit-simple-indent(# # 304) apply(treesit-simple-indent (# # 304)) #[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward](# # 304) apply(#[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward] (# # 304)) #f(advice c-ts-base--before-indent :filter-args #[128 "\301\302\300!\2\"\207" [treesit-indent-function apply default-value] 4 advice--forward])(# # 304) treesit--indent-1() treesit-indent() indent--funcall-widened(treesit-indent) indent-for-tab-command(nil) funcall-interactively(indent-for-tab-command nil) command-execute(indent-for-tab-command) Looking at the function code I saw that a form that shoud be inside the condition. Probably a typo. The fix is trivial: diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 576d715510d..9003201c651 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -329,8 +329,8 @@ c-ts-mode--anchor-prev-sibling ;; and starting the items on the same line as {. (_ (goto-char (treesit-node-start prev-sibling)) (if (or (looking-back (rx bol (* whitespace)) - (line-beginning-position))) - (null (treesit-node-prev-sibling prev-sibling t)) + (line-beginning-position)) + (null (treesit-node-prev-sibling prev-sibling t))) (setq continue nil) (setq prev-sibling (treesit-node-prev-sibling prev-sibling))))))) This bug was introduced at e49b479f869. In GNU Emacs 30.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2024-10-13 built on carcara Repository revision: ae75ea62324598654b32ed28bf644ec2bc4c04b2 Repository branch: emacs-30 System Description: Arch Linux Configured using: 'configure --with-pgtk --without-gconf --with-sound=no --without-gpm --without-xaw3d --with-tree-sitter --with-modules --without-libotf --without-m17n-flt --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: pt_BR.UTF-8 locale-coding-system: utf-8-unix Major mode: C/* Minor modes in effect: 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 rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux dired dired-loaddefs cl-print debug backtrace find-func cus-edit pp wid-edit cus-start cus-load time-date c++-ts-mode c-ts-mode c-ts-common treesit cl-extra noutline outline help-fns radix-tree help-mode vc-git diff-mode track-changes easy-mmode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile text-property-search comint ansi-osc ansi-color ring comp-run comp-common rx ffap thingatpt url-parse auth-source cl-seq eieio eieio-core cl-macs icons cl-loaddefs cl-lib password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 170635 186225) (symbols 48 13031 15) (strings 32 39676 2329) (string-bytes 1 1551295) (vectors 16 21497) (vector-slots 8 267270 42860) (floats 8 55 133) (intervals 56 1333 679) (buffers 992 18)) ------------=_1729332963-29375-1-- From unknown Sat Jun 21 12:11:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73800: 30.0.91; infinite loop in c-ts-mode--anchor-prev-sibling Resent-From: Renato Fernandes de Queiroz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 14:26:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Yuan Fu , 73800@debbugs.gnu.org Received: via spool by 73800-submit@debbugs.gnu.org id=B73800.172934794411642 (code B ref 73800); Sat, 19 Oct 2024 14:26:06 +0000 Received: (at 73800) by debbugs.gnu.org; 19 Oct 2024 14:25:44 +0000 Received: from localhost ([127.0.0.1]:44219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2AOm-00031b-70 for submit@debbugs.gnu.org; Sat, 19 Oct 2024 10:25:44 -0400 Received: from mail-pl1-f182.google.com ([209.85.214.182]:47391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t25ue-0005p5-HJ for 73800@debbugs.gnu.org; Sat, 19 Oct 2024 05:38:21 -0400 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-20cdb889222so30611765ad.3 for <73800@debbugs.gnu.org>; Sat, 19 Oct 2024 02:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729330616; x=1729935416; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=MW4DQhJGHfwylQMXHRybywtQPpKOP4mAj0rgNyFX9H0=; b=MmviTAPUVFPvco8ZYYQEDjPML1kVCcVGIP3s4zC5vSFrFsgzXarqOrsgzA5L6pqfdY oXj4q9ijHzIQEUsQXFN8IKdWy+Yspjyfv7ZuaUerosNQGvpvtMWou7+FH6w34LdJr3Ll yQhZTxwvRgabM9Wbvb9HT6lUea6JvBKO2TJTHdmUaYMy3gfEP5NHPC4/UAHSi2GMlRHH LObSffqn/ah9yanHYMBj6uf7FfP4XSTI43mBZOBG9EiaIE135HN2rUUYp/rQYr0bMQMM OK6yBr+aeqewBbPgPADmEXKRxKI+AlANfY195r7B7Qf9IDNlbpaBJJYX/6ToNVS9UhuO D5gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729330616; x=1729935416; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MW4DQhJGHfwylQMXHRybywtQPpKOP4mAj0rgNyFX9H0=; b=eeNSkGoY3KXy252Lp2QXnb0msDNgYKMwDL4F+u61wTxfSDO/gCVzCTMqnZxqE+zKTF KZk9rd4uAjebGNkNSep07Rl8YPYjietLUry7pQ3AtPVqcdlhvjdYsSHBtWk6nN1vJ95S 7vPY0UD/yHHhhDYMDfAhEPKdvEOZhLXtJZFByrvBLMhSJtOZ++HRY4QX3rqaLelQmbDV uuurBAaSwq2T6XnPFFKgTcFRn20gET7xqXN7fbRSjDH48z0VljW1VDcVJ4vxeqzVB6td ILD+j5txP5TpNd5q+pNHUHWV/OqxvBqXdqlz47d617FvN9m/XSHMTVx2VxLsSVGYCB9+ LSVQ== X-Gm-Message-State: AOJu0YxL5N/3CCWip1cBQ5Et1EJ4h07o3TblMP5HQ2EOQewtrYqDOMs9 QA4KozFnKnazkqjDRTgepWxFtJ36Q4+nWtfErb7mxFheGrlGRs5m X-Google-Smtp-Source: AGHT+IGb775yrVXnS4Fkh2Y3UY2gGOfVqUAImND/IF2b9TUu7ZiIlfqoGrre2YADXeNEc0T8f3zDNQ== X-Received: by 2002:a17:902:ccc9:b0:20c:d2d9:765c with SMTP id d9443c01a7336-20e5a73eaddmr73988685ad.15.1729330615845; Sat, 19 Oct 2024 02:36:55 -0700 (PDT) Received: from ?IPV6:2804:7f74:b2a:d800:90dd:def5:e9af:5de5? ([2804:7f74:b2a:d800:90dd:def5:e9af:5de5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e5a7523bfsm24901625ad.70.2024.10.19.02.36.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Oct 2024 02:36:55 -0700 (PDT) Message-ID: Date: Sat, 19 Oct 2024 06:36:52 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <86plnwlcra.fsf@gnu.org> Content-Language: en-US From: Renato Fernandes de Queiroz In-Reply-To: <86plnwlcra.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sat, 19 Oct 2024 10:25:42 -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: -1.0 (-) The issue is fixed in current emacs-30. Thanks Em 19/10/2024 05:26, Eli Zaretskii escreveu: >> Date: Mon, 14 Oct 2024 00:53:56 -0300 >> From: Renato Fernandes de Queiroz >> >> Steps to reproduce: >> 1. Open a new buffer and load c-ts-mode >> 2. insert the following code >> >> int >> main (int argc, char *argv[]) >> { >> int x; >> >> a >> } >> >> 3. Move point past 'a' >> 4. Hit TAB >> >> Emacs enters a infinite loop. > > It no longer does infloop with the current emacs-30 branch, probably > due to changes installed there lately. Could you please try the > latest branch and see if the problem persists?