From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64048: 30.0.50; global-display-line-numbers-mode has no easy way to set modes where it is enabled Date: Tue, 13 Jun 2023 17:21:30 +0000 Message-ID: <87352vs2g5.fsf@localhost> References: <87a5x3sa7w.fsf@localhost> <83bkhjweco.fsf@gnu.org> <875y7rs5s5.fsf@localhost> <835y7rwbmb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64048@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 13 19:17:23 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 1q97dy-0008uG-Mm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jun 2023 19:17:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q97dg-0002L0-BQ; Tue, 13 Jun 2023 13:17:04 -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 1q97df-0002Kl-Ay for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:17:03 -0400 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 1q97df-0004e2-2E for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q97de-0007uG-Eu for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Jun 2023 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64048 X-GNU-PR-Package: emacs Original-Received: via spool by 64048-submit@debbugs.gnu.org id=B64048.168667661230370 (code B ref 64048); Tue, 13 Jun 2023 17:17:02 +0000 Original-Received: (at 64048) by debbugs.gnu.org; 13 Jun 2023 17:16:52 +0000 Original-Received: from localhost ([127.0.0.1]:42975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q97dT-0007tl-Ux for submit@debbugs.gnu.org; Tue, 13 Jun 2023 13:16:52 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:53599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q97dP-0007tP-6S for 64048@debbugs.gnu.org; Tue, 13 Jun 2023 13:16:50 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 05A1F24002B for <64048@debbugs.gnu.org>; Tue, 13 Jun 2023 19:16:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686676601; bh=QuCxtkfR9TDVwQEfr45IxXiH039fs+lbcttQZvSPiUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=K2NjR4ZJox39kqetrFPvOI0OjRRSq4mFkW4eKOhqT1OCKOoHRj9YEfB5dIyLt3qcC y7I2WbE7RfSGb2kSycBO48KnqbbcrUT2ZKcRBo8LwwD9NaMc6hKfB6PsaXwCkSo/xo 0B7eOU5SwlN0IzPJleLKs0ECAlpD8RB6jhjzQJlHnue1dObrr5Lu9C1Loik/RYjqsh wKctaI2osHegaCISErNhQYiDu6xriesLSRG2pPuPDJmoga0RkxtcBUudzsC35Xw1xs pPSh1UBY6njg2t37dGrtQJYp5jAJCKcXSTGDRgwFN14eYFTaMULXViEDEnJcQ9XADw 8dFQtDI0s09Ow== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QgZwS20k9z6txf; Tue, 13 Jun 2023 19:16:40 +0200 (CEST) In-Reply-To: <835y7rwbmb.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:263339 Archived-At: Eli Zaretskii writes: >> May you please elaborate? >> >> IMHO, the only way honouring `global-foo-modes' variable will break >> someone's setup is when somebody sets `global-foo-modes' (which has no >> effect now) and expects that there will be no effect in future as well. > > I have enough gray hair to know that any such changes break something. > > This mode has been with us since Emacs 26, so we cannot make such > changes after so much time. May I rephrase is as a feature request then? Like, please add `global-*-modes' customization for modes defined via `define-globalized-minor-mode'? Or, at least, add `global-display-line-numbers-modes' customization? I see not how adding a new feature can break anything here. If a normal minor mode is made into global, it is a given that it can be activated independently in arbitrary number of buffers. So, extra predicate (in addition to the mode's own) should not create any problem. > ... Especially since the problem, if there is > a problem, is minor at best. I recall multiple occasions when I tried hard to disable a global mode in some buffers, remembered that there is some special variable for it; just to find out that a specific global minor mode does not support it. And then we have non-standard variables like `dabbrev-ignored-buffer-modes', `hi-lock-exclude-modes', `which-func-modes' - all with different conventions. I can also tell you that a question about disabling global minor modes in some buffers re-surfaces regularly in reddit discussions and IRC. We even have FAQ entries like https://www.emacswiki.org/emacs/LineNumbers#h5o-10 And the suggested solution is re-defunning "turn-on" function - do we really want to say that it is the way to go? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at