From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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: Sat, 17 Jun 2023 15:18:42 -0400 Message-ID: References: <87a5x3sa7w.fsf@localhost> <83bkhjweco.fsf@gnu.org> <875y7rs5s5.fsf@localhost> <835y7rwbmb.fsf@gnu.org> <87352vs2g5.fsf@localhost> <83wn07usx7.fsf@gnu.org> <87sfavqhn5.fsf@localhost> <83mt12uufn.fsf@gnu.org> <87fs6u8b0p.fsf@localhost> <83ttv6r0oy.fsf@gnu.org> <87mt0xap20.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12402"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64048@debbugs.gnu.org, Eli Zaretskii To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 17 21:19:20 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 1qAbSC-00030D-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jun 2023 21:19:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAbRw-0003Df-FY; Sat, 17 Jun 2023 15:19: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 1qAbRu-0003CX-TR for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 15:19:02 -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 1qAbRu-0007YD-Kk for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 15:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAbRu-00064w-2r for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jun 2023 19:19: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.168702953223344 (code B ref 64048); Sat, 17 Jun 2023 19:19:02 +0000 Original-Received: (at 64048) by debbugs.gnu.org; 17 Jun 2023 19:18:52 +0000 Original-Received: from localhost ([127.0.0.1]:52664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAbRk-00064S-9u for submit@debbugs.gnu.org; Sat, 17 Jun 2023 15:18:52 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAbRh-00064C-JC for 64048@debbugs.gnu.org; Sat, 17 Jun 2023 15:18:51 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 590AF1001FC; Sat, 17 Jun 2023 15:18:44 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7CA09100083; Sat, 17 Jun 2023 15:18:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1687029523; bh=aaFGi+3wBKJfzBQI1UWA64S3xWf62kUhV8MpZnSOQVM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ctDBqxFaV/X75Kzzw1CkZtc245CQfc0Pj4zRAcHIcnFfAjj0GOInZzGlAHjJ20BeX g1JHbEEeA0GURhtLG7DFaR6Nm4iNwoY5I9ToF/0Hc6CVSd6PE6bdnEEP22dZGItJ9A TGnjqu1KGlglVGynhhH8QpJ5DozMYbfNib3FpRC4zfBhPMEJGKnqQiIDWxe1OkqBA+ c+bKUQTQfonqm5mQKuWc0Vs+3KyA9kUK6CJhf+7Gug18RjEGErSIyXIx8GnUbAP4KC rugSsAEjcpARLcsTdBgCnLeWBZjJogLCNF6pBerEPj+JqTKpFnzI+Z7pYgsWKaAg/4 qQkxHJm5S+kcg== Original-Received: from pastel (unknown [45.72.207.87]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 513E11201CA; Sat, 17 Jun 2023 15:18:43 -0400 (EDT) In-Reply-To: <87mt0xap20.fsf@localhost> (Ihor Radchenko's message of "Sat, 17 Jun 2023 19:04:07 +0000") 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:263575 Archived-At: >> But indeed, it seems the docstring forgets to mention that the >> `:predicate MODES` argument causes the introduction of a new variable >> called `MINOR-MODE-predicate` and whose default value is MODES. > > Not `MINOR-MODE-predicate', `MINOR-MODE-modes': > > (MODE-predicate (intern (concat (replace-regexp-in-string > "-mode\\'" "" global-mode-name) > "-modes"))) Ha! Great minds do think alike after all! Stefan