From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62086: 29.0.60; ruby-ts-mode regressions Date: Fri, 10 Mar 2023 00:02:14 +0200 Message-ID: <5abcf765-f8ce-9563-63aa-20c558409898@yandex.ru> References: <86y1o5op2v.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28525"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: Juri Linkov , 62086@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 09 23:03:17 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 1paOM0-0007GX-TF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Mar 2023 23:03:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paOLo-0000kj-T1; Thu, 09 Mar 2023 17:03:04 -0500 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 1paOLm-0000iS-EO for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2023 17:03:02 -0500 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 1paOLm-0004qI-5w for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2023 17:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1paOLm-0006x3-10 for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2023 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Mar 2023 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62086 X-GNU-PR-Package: emacs Original-Received: via spool by 62086-submit@debbugs.gnu.org id=B62086.167839934526673 (code B ref 62086); Thu, 09 Mar 2023 22:03:01 +0000 Original-Received: (at 62086) by debbugs.gnu.org; 9 Mar 2023 22:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:53259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paOLA-0006w9-JZ for submit@debbugs.gnu.org; Thu, 09 Mar 2023 17:02:24 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:38885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paOL8-0006vv-QJ for 62086@debbugs.gnu.org; Thu, 09 Mar 2023 17:02:23 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id cw28so12944199edb.5 for <62086@debbugs.gnu.org>; Thu, 09 Mar 2023 14:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678399336; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=weX9bnKK1c/XWW19YYTU7QffmfTW7PDiWL3HpX0lnKM=; b=e9H759d6dWu2dwKPFCY6rBugo7GYq5g/QZiLF73IH6AjzkRXihAf2CgwStapwa7+N+ hrTsySBdLP73k6dnrXLNhmxg3hzJ0a1IeMOsHu30tmAzoZbb1jR8t/QdO2zMIqqDkD06 rcan5E/cQwnme+2WKKpY5iTVcvBTLnXz75QRT+wuQzBjg/lmaej6YlzWFVDRHeWNOCQp q/kBwqwTT96lgG49LJn4JYqgkC5KjIr6KkZAMUo+Tc8sQV66l8yt0kyZQxI3Uk2ZYtHC H4bSg3hgzKxsh7VO4fT7cR1UVbdjtmh7GY51i+gFzhpjKLfTO85Z/lo3UySrxYXQ9/yC gDiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678399336; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=weX9bnKK1c/XWW19YYTU7QffmfTW7PDiWL3HpX0lnKM=; b=6cegFB/VPVutcSgbIQ5Q9BcCTMkx6vNJpyZApQd4EJtdpdSPe5+yzeVCx6lAgsZ05/ eDnvKfqGNk1APg0j64GSBA/yEaGgrCJE96rmB1MLK44/55BTvbz5zv7LF7Jn108aZex4 0WpSrvLAzG2m9iXl+pnz0UVHy2NYJ+jhopUA8sGEmlvyK+OnC9Ub7d5pBdkvOF6i3hG5 DOjsSsr+lcSGXFetINFCrN6EZkne5Vzh2RBgMByAfLFn8X/q1nDKoXnDvnm03H7FQFi2 /MvzqUFajsbu+wVZZcH/XO66VCfquU/qZrS7Y2g69a7TWFBXsL5ReA3Oq72826Hn2jKn nLDA== X-Gm-Message-State: AO0yUKVPHeBf8oCVA8O5gx01srdXxV/fD+oysdwdyMlZs7LoAQbrvigO JGFOuU3xqBrKRUT8wIpQc2k= X-Google-Smtp-Source: AK7set9l3ot18qsihmyNF9ZntAhcJsmHritKliE5wQl29+5dZH8B3uvjxPZPZyvdSVKSNCIQaspy+Q== X-Received: by 2002:a17:907:320a:b0:87a:ee05:f7b with SMTP id xg10-20020a170907320a00b0087aee050f7bmr27600915ejb.24.1678399336403; Thu, 09 Mar 2023 14:02:16 -0800 (PST) Original-Received: from [192.168.0.2] ([85.132.229.92]) by smtp.googlemail.com with ESMTPSA id q27-20020a50c35b000000b004c4eed3fe20sm232998edb.5.2023.03.09.14.02.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Mar 2023 14:02:15 -0800 (PST) Content-Language: en-US In-Reply-To: <86y1o5op2v.fsf@mail.linkov.net> 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:257643 Archived-At: Hi! Thanks for the report. On 09/03/2023 19:24, Juri Linkov wrote: > 'C-M-f' ('forward-sexp') commands currently are unusable in master > because they skip too much. I'm happy to discuss this sometime later, in a different report, preferably after Emacs 29's pre-release drops. We'd probably just need to tweak the relevant regexp. But from what I see, most of the possible confusion stems from it jumping over implicit parens, just like over explicit ones. The addition of binary operators and assignments might also have something to do with it. > So I relied on word motion commands like > 'M-f' ('forward-word') to move in ruby-ts-mode. But unfortunately > some recent change broke even word motion in emacs-29, so no motion commands > can be used in ruby-ts-mode, only motion by characters can be used with > 'C-f' ('forward-char'). Here is a recipe for recent regression in emacs-29: > > 0. emacs -Q > 1. C-x C-f test/lisp/progmodes/ruby-mode-resources/ruby-parenless-call-arguments-indent.rb RET > 2. M-x ruby-ts-mode RET > 3. move point to after the first letter 'c' > 4. type 'M-f' ('forward-word') > > It skips two words in symbols. I might have been too eager in propertizing symbol contents with the "symbol" syntax. Now fixed in emacs-29, commit ecdfd584a52. > I don't know if the second bug is related to this, but while > in the same file, also type 'C-M-l' ('reposition-window'). > It raises the error: > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > treesit-end-of-defun() > end-of-defun(-1) > reposition-window(nil nil) > reposition-window(nil 89) > funcall-interactively(reposition-window nil 89) > command-execute(reposition-window) > > This regression is also recent. I've managed to reproduce this, but only once. Do you see this every time?