From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#73005: [REGRESSION, BISECTED]: line numbers disappear when pressing `df` in evil-mode Date: Tue, 03 Sep 2024 19:18:02 +0300 Message-ID: References: <378550cb5821f2a459742bb78b960280024ee30a.camel@yandex.ru> <86a5go7o1r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18561"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.52.4 Cc: 73005@debbugs.gnu.org, da_vid@orange.fr To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 03 18:19:42 2024 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 1slWFo-0004HQ-Vo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Sep 2024 18:19:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slWFK-0003LE-4L; Tue, 03 Sep 2024 12:19:10 -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 1slWF9-0002kq-Vq for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:19:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slWF9-0004P1-ME for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=zXWZg5+ZFPE40AJm+sMaSwyDsbIZFGSvnmcMwYbxyBc=; b=S5DRYg2i4T1T4/Z+jh92LNiPTcxx0XXH/joHdhARveSF4R2UGep71feBIx7BFPPpKRcdAm439j7YW4L5BCOIn+oZJePQVrnARufEEd7fQku6pd65IeR9r7/vr0Os8Xn4FHTtXn6lSeWNru9H5lDixKYf4qck97gNxrYAAQvskqvxQkQmDNyHbKbldPYA5ltaJRwLOz9BTvit0XWjyViMsiaxISao9/aB0YWUWWgsZQOKAmDeVMQJSaJ+D/R0zsqs+TN12ciMPO1GdKLAgFkx93V/eXuI+3wgcdJd0pEexXOHnZbaAS3qMmuEfJgQeW9v+wpcf9s+N4ky/1zWta6H3Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slWG9-0000nR-Re for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Sep 2024 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73005 X-GNU-PR-Package: emacs Original-Received: via spool by 73005-submit@debbugs.gnu.org id=B73005.17253803532989 (code B ref 73005); Tue, 03 Sep 2024 16:20:01 +0000 Original-Received: (at 73005) by debbugs.gnu.org; 3 Sep 2024 16:19:13 +0000 Original-Received: from localhost ([127.0.0.1]:60648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWFM-0000m8-UC for submit@debbugs.gnu.org; Tue, 03 Sep 2024 12:19:13 -0400 Original-Received: from forward500a.mail.yandex.net ([178.154.239.80]:34854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slWFJ-0000lt-EH for 73005@debbugs.gnu.org; Tue, 03 Sep 2024 12:19:11 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e9c:0:640:b3f4:0]) by forward500a.mail.yandex.net (Yandex) with ESMTPS id 7A612618C3; Tue, 3 Sep 2024 19:18:03 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 2IeYUU1OeOs0-dcOL6ebD; Tue, 03 Sep 2024 19:18:03 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1725380283; bh=zXWZg5+ZFPE40AJm+sMaSwyDsbIZFGSvnmcMwYbxyBc=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=tZq4oxyKXhK4c04ZXe9+FiIQ8UkXXjT6JDofKhyAWNSlhk6nSdR4tS3e2f3L6Ddss rilFqcxr9hCbc542W8AnCtJJI8KHMWF8KUGu+yh58mxZ8BvdRx2Y3SdCFLjto22a2E GwbxEn5EdBzyLr97Il85e8wvrH7K9LuOqsfCKK2s= Authentication-Results: mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <86a5go7o1r.fsf@gnu.org> 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:291156 Archived-At: On Tue, 2024-09-03 at 18:30 +0300, Eli Zaretskii wrote: > > Cc: da_vid@orange.fr > > From: Konstantin Kharlamov > > Date: Tue, 03 Sep 2024 17:46:09 +0300 > >=20 > > CCing the commit author. > >=20 > > Sorry for using external plugin, but master has two separate > > unrelated > > critical regressions (the other one is going via link in *Help* > > buffer > > and getting Emacs locked up with 100% CPU and quickly increasing > > memory > > usage, which complicates reducing the steps), and since there's a > > clear > > commit that introduced the problem I decided to report it as is. > >=20 > > # Steps to reproduce > >=20 > > 1. Make sure you're in the Emacs repository and `./build/src/emacs` > > is > > the built binary > > 2. Execute `git clone --depth 1 https://github.com/emacs-evil/evil > > /tmp/evil` > > 3. Execute `PATH=3D"$(pwd)/build/src/:$PATH" make -C /tmp/evil emacs` > > (Emacs with Evil loaded will start) > > 4. Press `n` to refuse running tests > > 5. Turn line numbers on by evaluating: (setq-default display-line- > > numbers 'visual) > > 6. Press `df` >=20 > What does "df" do? "df" is triggering the action "delete text up to" and it will wait for the third key, the symbol to "delete text up to". But for the problem to appear pressing the third key is not required. As a matter of fact, sometimes it gets reproduced by just pressing "f" which stands for "go to next symbol" (and it would similarly wait a keypress to define a symbol to go to), but for some reason it happens much less compared to pressing "df". > =C2=A0 Does it somehow end up calling string-pixel-width? It seems it doesn't. I used a `M-x debug-on-entry string-pixel-width` and then pressed "df" which made line numbers disappear, but debugger wasn't triggered. > IOW, please show how string-pixel-width is related to the above. Offhand I don't know. I would reduce steps, but I can't use *Help* for reasons mentioned in my 1st email, and I still didn't find a commit which does not hang upon following *Help* buffer, because 1000 commits before dffdbc1f1fd6 Emacs fails to compile with some native-compilation errors and `make clean` doesn't help. I presume finding the culprit for this problem will take some time. I don't know if it's of any help, but upon pressing "df" the caret turns from a rectangle to a square (half the rectangle size). This is indicating that Emacs is waiting for the next keypress, perhaps this indication somehow triggers the problem=E2=80=A6