From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode Date: Mon, 27 Mar 2023 19:29:02 +0300 Organization: LINKOV.NET Message-ID: <86v8imfrbt.fsf@mail.linkov.net> References: <9cfb677e-2c3b-94f3-e09f-8b231dd9b8f5@yandex.ru> <86v8iomzk3.fsf@mail.linkov.net> <7f03efd3-b3d8-2a93-3414-63a7a2604943@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: =?UTF-8?Q?Bo=C5=A1ko_?= =?UTF-8?Q?Ivani=C5=A1evi=C4=87?= , 62416@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 27 18:42:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgpvP-0009Eh-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Mar 2023 18:42:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgpv3-0001sR-Nb; Mon, 27 Mar 2023 12:42:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgpv1-0001qW-2H for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 12:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pgpuz-0005yt-Ta for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 12:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgpuz-0004Ms-P7 for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 12:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Mar 2023 16:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62416 X-GNU-PR-Package: emacs Original-Received: via spool by 62416-submit@debbugs.gnu.org id=B62416.167993529216724 (code B ref 62416); Mon, 27 Mar 2023 16:42:01 +0000 Original-Received: (at 62416) by debbugs.gnu.org; 27 Mar 2023 16:41:32 +0000 Original-Received: from localhost ([127.0.0.1]:48315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgpuV-0004Lg-Qe for submit@debbugs.gnu.org; Mon, 27 Mar 2023 12:41:32 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgpuT-0004LP-56 for 62416@debbugs.gnu.org; Mon, 27 Mar 2023 12:41:30 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9374EE0009; Mon, 27 Mar 2023 16:41:21 +0000 (UTC) In-Reply-To: <7f03efd3-b3d8-2a93-3414-63a7a2604943@yandex.ru> (Dmitry Gutov's message of "Sun, 26 Mar 2023 05:14:35 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258761 Archived-At: >> But anyway I think in its current state >> treesit-sexp-type-regexp is underdesigned as noted in >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62238#59 >> so no tweaking could fix its design flaws. For example, >> foo = { >> a: b >> } >> when point is on the left curly bracket, 'C-M-f C-M-b' doesn't >> move back to the original position, etc. > > Hm, yeah, it's a little unexpected that not only it doesn't move back > exactly, it skips the full assignment expression in both directions. > > What is the downside of dropping "binary" and "assignment" from > treesit-sexp-type-regexp, added there not too long ago? Without > "assignment" there, your example becomes a round-trip. This will break other cases, e.g. b = %Q{This is a "string"} c = %w!foo bar baz! d = %(hello (nested) world) when point is after "b", 'C-M-f' will move to "c" instead of the end of line.