From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73005: [REGRESSION, BISECTED]: line numbers disappear when pressing `df` in evil-mode Date: Tue, 03 Sep 2024 18:30:08 +0300 Message-ID: <86a5go7o1r.fsf@gnu.org> References: <378550cb5821f2a459742bb78b960280024ee30a.camel@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73005@debbugs.gnu.org, da_vid@orange.fr To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 03 17:31:26 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 1slVV7-0001cp-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Sep 2024 17:31:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slVUv-0003Le-C3; Tue, 03 Sep 2024 11:31:13 -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 1slVUq-0003Kj-J8 for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 11:31:09 -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 1slVUi-0004qd-FO for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 11:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=PvlkvH/HYKbhG7SUaN9eQd+xzisQF7HkQmtwcl9LPEg=; b=tpDQr7Mg+PpX764KaO8OB4NQtw5JEa7m4PKd1d+juwuDT0I7i2k9aA3D1FZ2uMwJmF+sKEDquIHYgZOaYqSd89LcPGCCzrZxC5X+mcceDMvOC1KukGf9kyMxMn2za8bYH+jZzLE/sO9KD20gvtckSIbXoZZhsnerGOYppK/ouIPFKzd2QfjB36/k8JGoJ/GtsGTZDscU/SqjNq3I20bMyEU7o8utrTNfj7kcbN8WHqCZ+AEKca3mBgWB2U7bxmd2CdOSsRjctPSLZbrUDZZFhcGmDLyLwyrg5FiI+cugCOdhK436uRB+nnhWh+3G0RA/616c/dQj8eWeENMYK+iTxw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slVVi-0007sQ-Fe for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Sep 2024 15:32:02 +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.172537751830266 (code B ref 73005); Tue, 03 Sep 2024 15:32:02 +0000 Original-Received: (at 73005) by debbugs.gnu.org; 3 Sep 2024 15:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:60559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slVVd-0007s5-Hb for submit@debbugs.gnu.org; Tue, 03 Sep 2024 11:31:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slVVY-0007rp-Tw for 73005@debbugs.gnu.org; Tue, 03 Sep 2024 11:31:56 -0400 Original-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 1slVUE-0004mv-Bm; Tue, 03 Sep 2024 11:30:44 -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=PvlkvH/HYKbhG7SUaN9eQd+xzisQF7HkQmtwcl9LPEg=; b=f9RSHFzG6fY1 jyDFkPH85jIGZFAoyjT9vZiYZk5syaZsE8kIogHqzTwz94XRO8uSWIEn8ab0sfPSDMGklJoUuKjbm 6H63jqXWPqanmBVIYphE4lVWbMLqgcbD++PZhzV8bdIc6uQLrrSYOL6IQELCiLfJuaXuY1jtV62qj OUiU3nR9bQl2dHq5iElmJu4rh8wNBYkjIxI+CXa93u0KAUAanT40yEz9U89oFkuEVDgbXzX/5aqFW Y3AsqQbfVOb01qoe3I6AZTiNTYfM4J9xp4ETb+eCj+Wc2RR7JjWvf0FzMY+o8FdoCiy3VsSd/Tuzq t1l5bXBsFNhW4PksngSf3Q==; In-Reply-To: <378550cb5821f2a459742bb78b960280024ee30a.camel@yandex.ru> (message from Konstantin Kharlamov on Tue, 03 Sep 2024 17:46:09 +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:291151 Archived-At: > Cc: da_vid@orange.fr > From: Konstantin Kharlamov > Date: Tue, 03 Sep 2024 17:46:09 +0300 > > CCing the commit author. > > 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. > > # Steps to reproduce > > 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="$(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` What does "df" do? Does it somehow end up calling string-pixel-width? IOW, please show how string-pixel-width is related to the above. > ## Expected > > Line numbers are still shown > > ## Actual > > Line numbers disappear > > # Additional information > > The commit that introduced the problem: > > commit dffdbc1f1fd6569c518e2e3b5e771a54e9e9483f (HEAD) > Author: David Ponce > Date: Thu Aug 22 16:56:11 2024 +0200 > > Use 'with-work-macro' in 'string-pixel-width' Does it help to replace (setq display-line-numbers nil with (setq-local display-line-numbers nil in string-pixel-width?