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.devel Subject: Re: Emacs 31.0.50 (2f1052d9b0de) will line-number in some buffers which shouldn't show it, is there some changed in recent master branch related to display-line-number Date: Fri, 03 Jan 2025 13:50:45 +0200 Message-ID: <86ldvsglpm.fsf@gnu.org> References: <87h66gcuxk.fsf@gmail.com> <809895537e1e07fca05e124a4741f2de8e0cc080.camel@yandex.ru> <8c0f6726a535fdb203907ee0a105a9cc72861ca1.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, execvy@gmail.com, emacs-devel@gnu.org To: Konstantin Kharlamov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 03 12:51:52 2025 Return-path: Envelope-to: ged-emacs-devel@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 1tTgDY-0006t5-2F for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Jan 2025 12:51:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTgCn-0006DO-Qy; Fri, 03 Jan 2025 06:51:05 -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 1tTgCk-0006D5-Rz for emacs-devel@gnu.org; Fri, 03 Jan 2025 06:51:02 -0500 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 1tTgCj-00018a-10; Fri, 03 Jan 2025 06:51:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ln7VWrKuoL+RsjxtNpg/jyr6zupk1V5uTeM3q1fH10w=; b=Z4glq1+X8WdM6B4KMDA9 Rm6uEe2mXTU7ru59gToGAbpFKSLJmakyGOL80wj1kB8tvX2Tdim4cwESmYk74GUz64qfO9/ZQTrPN OvvCA2FSQRYIrmaB1CzMT0e02Rk4Con4qSswmj/tht6MfFWoHFfBRh2bcltRmEDsnmRPvLbAiCb7s dizkWNVStTRhOXVH0r1NmIprP1lhS5aMbvBsemyAtEZCgp7ih7M4c/Dx8K5I3p+VxJYW3ajz+1b2j xNrybS7hjrjEMEnIKQjVnMXA8A1W9X69Ek3dJFO0RBkc2UW/QUMGnQWu97catCNwvims/x48uU0Yp DyDO9Z+Y5n5tBg==; In-Reply-To: <8c0f6726a535fdb203907ee0a105a9cc72861ca1.camel@yandex.ru> (message from Konstantin Kharlamov on Fri, 03 Jan 2025 12:31:23 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327622 Archived-At: > From: Konstantin Kharlamov > Date: Fri, 03 Jan 2025 12:31:23 +0300 > > On Fri, 2025-01-03 at 03:21 -0600, Stefan Kangas wrote: > > Konstantin Kharlamov writes: > > > > > On Fri, 2025-01-03 at 13:45 +0800, Eval EXEC wrote: > > > > Hello, I am building Emacs from source, and I’ve noticed > > > > something > > > > unusual. Line numbers appear in my rg and xref buffers, but they > > > > disappear after approximately 100ms. This happens even though > > > > I’ve > > > > only > > > > configured display-line-number-mode to be enabled in prog-mode > > > > via an > > > > add-hook. > > > > > > > > Has there been any recent change in the code related to display- > > > > line- > > > > number-mode that might explain this behavior? > > > > > > > > Thank you for your help! > > > > > > FWIW, I just tried building Emacs from latest commit to look at it, > > > but > > > it doesn't even build with `Error: void-function (rx)`. > > > > > > Now, I know Emacs build system has some controversial design > > > decisions > > > that were discussed a few months ago (which basically lead to > > > errors > > > like that), so I tried removing `build/` dir completely and `find - > > > type > > > f -name "*.elc" -delete` but it didn't help. 🤷 > > > > Did you try make bootstrap? > > Nope. Why not? > I think if I remove the repo completely, the error will go away, > because that's how it usually works with that kind of errors. But IMO > this is a bug in build system, because build system should handle > rebuilds without any kind of cleaning or removing specific files. As already abundantly explained in the past, there are valid reasons for us not to reach that ideal in 100% of cases. That's why when a build fails, the Makefile suggests "make bootstrap". To make shortcuts, you need to know many intimate details of how Emacs is built and how it works, and we don't expect that from casual builders.