From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ponce via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73005: [REGRESSION, BISECTED]: line numbers disappear when pressing `df` in evil-mode Date: Thu, 5 Sep 2024 00:07:35 +0200 Message-ID: <5a9e9405-170d-42b9-84b0-7dd7579895d9@orange.fr> References: <378550cb5821f2a459742bb78b960280024ee30a.camel@yandex.ru> <86a5go7o1r.fsf@gnu.org> <86frqf5zlj.fsf@gnu.org> Reply-To: David Ponce 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="2178"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73005@debbugs.gnu.org To: Konstantin Kharlamov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 05 00:08:20 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 1slyAl-0000Py-W8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Sep 2024 00:08:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slyAU-000664-IW; Wed, 04 Sep 2024 18:08:02 -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 1slyAR-00065i-N8 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 18:07:59 -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 1slyAQ-0002Ho-Md for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 18:07:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=isHCYxcAsScdLwwLumeM5qh2Jz5d5T/cBtYy8UWYN9Y=; b=fqMF9U5hOf8GEWAAzoMydiIdxA/MjJdhu4lNqszg7+SrEvqx3LA//nDK6ZsqN/10ELr6i3C3iL7/IHwPqHTnwa6l57jn69jLEPDfRyvqDRfFK2A3uT1GP1LksMfqynkQcP3kXcz4rr4rEr2Ak6i+8C4ewp4/ockGdI8R2QQzGqmh+YJKNGj2OZYiUmws3zY7fWpuemB7TMsh7HZEk1jbD11nrjI6ZEhHbP5Uf+cmXESddYEMZvQud5B4hpNyZBuh12mhokOti7mTA2Q1ZSlu6eKEhHibLrX14gSm6AIpbtdZTJHGr6w3s3FmQmg9Y3aZkAPyMUOizjLuLfZKUU92SQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slyBR-0002KJ-TL for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 18:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Sep 2024 22:09: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.17254877268917 (code B ref 73005); Wed, 04 Sep 2024 22:09:01 +0000 Original-Received: (at 73005) by debbugs.gnu.org; 4 Sep 2024 22:08:46 +0000 Original-Received: from localhost ([127.0.0.1]:35610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slyBB-0002Jk-J7 for submit@debbugs.gnu.org; Wed, 04 Sep 2024 18:08:45 -0400 Original-Received: from smtp-78.smtpout.orange.fr ([80.12.242.78]:63920 helo=msa.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slyB8-0002JY-LC for 73005@debbugs.gnu.org; Wed, 04 Sep 2024 18:08:43 -0400 Original-Received: from [192.168.1.21] ([2.7.225.247]) by smtp.orange.fr with ESMTPA id lyA3scLGYiKc3lyA3sNXkf; Thu, 05 Sep 2024 00:07:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1725487657; bh=isHCYxcAsScdLwwLumeM5qh2Jz5d5T/cBtYy8UWYN9Y=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=sp+FSoKWZcbD5IJZLsX79Y0TIq7ln9+bf6vn3Oesk83nmM9OZCsPu/m60rcfgaNd7 EahIvHCPJk9A16OBbW2uB5KhpF4AdR2JYviBck1HHIx9tZ8y8OXycSRVs42G6N8CUT prmSWGk45mTr8geXKEzZa7rVFtwV9AjaFSAwfISGxXgSY7sHaFca0SjYb/sFZWEfT7 ZoMPFqYAJvt/3sKRyhDJHNhsFCdcatrZpuL8QTpfyk6zx9oV7sHsTIOmXEnuAN0OK/ i6LOvAoJLhLWJGiq7R3FQzrnEjE2EUI14U3uueyJuIEMctNc5Yommgb7nlPRjJiAsL Kf35PzhVzk1sw== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Thu, 05 Sep 2024 00:07:37 +0200 X-ME-IP: 2.7.225.247 Content-Language: fr, en-US In-Reply-To: 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:291218 Archived-At: On 04/09/2024 6:00 PM, Konstantin Kharlamov wrote: > On Wed, 2024-09-04 at 16:15 +0300, Eli Zaretskii wrote: >>> From: Konstantin Kharlamov >>> Cc: 73005@debbugs.gnu.org, da_vid@orange.fr >>> Date: Wed, 04 Sep 2024 16:02:27 +0300 >>> >>> 1. Press f (it will wait for next character) >>> 2. Press C-g to cancel the action >>> 3. Press M-: >>> >>> Result: line numbers disappear along with minibuffer popping up. >>> >>> Another interesting point: after line numbers disappeared, if I >>> evaluate `display-line-numbers` (i.e. just to see its value), line >>> numbers immediately appear back. >> >> Sounds like Evil does the above with current buffer set to the work >> buffer where we calculate string-pixel-width, and where we therefore >> disabled display-line-numbers? > > I git-grepped over Evil the word `work-buffer` and there is no matches. > So there isn't direct call to `with-work-buffer`. Then I tried to `M-x > debug-on-entry with-work-buffer` and reproduced the issue, but debugger > wasn't triggered either. > > So doesn't seem like it. Could it be that a temporary buffer named " *work*" is being used somewhere? In which case there could be nasty side effects with the same buffer being used by `with-work-buffer'? Just a wild guess.