From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#50895: 28.0.50; show-paren-mode is distracting in some modes Date: Thu, 30 Sep 2021 14:19:47 +0300 Message-ID: References: <87fstn8fak.fsf@gnus.org> <1cf60c2c-7ecc-631b-22c3-6d779476aeeb@gmail.com> <875yuj8dm8.fsf@gnus.org> <7867800d-f770-0316-6659-7ff6f310cd57@yandex.ru> <87pmsq5zoj.fsf@gnus.org> 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="28204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 50895@debbugs.gnu.org, Jim Porter To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 30 13:21:17 2021 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 1mVu7p-00079W-91 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 13:21:17 +0200 Original-Received: from localhost ([::1]:45104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVu7o-0001Pq-BH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 07:21:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVu7a-0001MC-Mi for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 07:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVu7a-0007rw-Ei for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 07:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVu7a-0002KN-BC for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 07:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Sep 2021 11:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50895 X-GNU-PR-Package: emacs Original-Received: via spool by 50895-submit@debbugs.gnu.org id=B50895.16330008038847 (code B ref 50895); Thu, 30 Sep 2021 11:21:02 +0000 Original-Received: (at 50895) by debbugs.gnu.org; 30 Sep 2021 11:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:51586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVu6c-0002Ia-Am for submit@debbugs.gnu.org; Thu, 30 Sep 2021 07:20:02 -0400 Original-Received: from mail-lf1-f47.google.com ([209.85.167.47]:33781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVu6a-0002I3-GG for 50895@debbugs.gnu.org; Thu, 30 Sep 2021 07:20:01 -0400 Original-Received: by mail-lf1-f47.google.com with SMTP id i19so20800535lfu.0 for <50895@debbugs.gnu.org>; Thu, 30 Sep 2021 04:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9z+iYqWHeErczBjoK81ulPjdRXnNNZtCz6XXRhHRj4g=; b=R+tEUVjmJUhgZ6guccCI7VK8QCSzWLTDBe3cZuGAPUhdwBeMKUj3YbnxdFu1pc8dy8 2iw2a3Cu2K0LSv1LdJUmNuX+5Y3D9+V1Ew8uwbR5U0vLncZsmBtsU1aFQhI5OZw6vgBi Os3U33y3PlPTDQMA8QAavjEsCREIy8R1Y554sCWHMrXxutVcgzZMDreO69cDjDWUVw87 0U/gPw/UHoLcC99qOsI33vWeWcvBaNYkgLrrVZ5DPnucTXjSYbXArq6G8jtG+cdj3QpA UaUrRoEsHhqvOdpugY6wowl+pNthMSJV6JSYcSDqNi2CsjSU6wSD+49Dhfwg6mImAkuF 2b7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9z+iYqWHeErczBjoK81ulPjdRXnNNZtCz6XXRhHRj4g=; b=J3rzxnm2hbb1DaTDgyAz5jMh/428cZgYwH7i//KEmgPOyFXx11rqZOovXaOuxgEJGC LgBSNWJc1cgo1pkipMhB8EWmD4UjGWyTQi+IIllqnDYvUBIXtLFQBHSmtU2NKlwfzqvg EHqespJVVTqflBmVdEhulWwMpajqfxj54166o9SLeAaen38BcxLFaIeAohtq7TSposA8 sOD/W7z4R4jLPMdjMb8yyAj0SBtvJH5Db3P3i0BRfVtyHr1XMnWBozRM2BkOagXA73Wg APX1N8LbPDETyn69GHhb2mzxvBTLDSmv1GfqGDHCbKi+cjfKvrwMa67n6AMxwrYUmU4z qFLA== X-Gm-Message-State: AOAM531EuNr5XL96dcLMyPWqrelp079JLa237GjQdUKcBonhUXrNDwtM 95zhMp7jHOgOzSMuUB7GefbkAuErCEWDwA== X-Google-Smtp-Source: ABdhPJwwLlyreTfTkw94wQ7pjK4wjAtiaJOuIEWIi/beDoQsZz9HbTNyasS2YX+6XfM/6hkI6IdRtA== X-Received: by 2002:a05:6512:304b:: with SMTP id b11mr5153520lfb.190.1633000794153; Thu, 30 Sep 2021 04:19:54 -0700 (PDT) Original-Received: from [192.168.43.35] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id s11sm335143lfd.262.2021.09.30.04.19.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Sep 2021 04:19:53 -0700 (PDT) In-Reply-To: <87pmsq5zoj.fsf@gnus.org> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:215960 Archived-At: On 30.09.2021 09:45, Lars Ingebrigtsen wrote: > Dmitry Gutov writes: > >> Unlike font-lock-global-mode, it seems in this case the code will be >> checking show-paren-global-modes at runtime (inside >> show-paren-function, I guess). > > Looking at show-paren-mode again -- I thought we'd agreed to make it a > globalized minor mode instead of a global minor mode? I.e., define it > with `define-globalized-minor-mode'. Did that prove to be difficult to > do (i.e., not backwards-compatible)? The current implementation seems both more efficient (which is good for an on-by-default mode) and actually easier to do, due to how show-paren-mode works. > If we do that, then we'd define it exactly like global-font-lock-mode is > defined (with the turn-on-paren-mode-if-desired logic). We don't really have buffer-local timers, AFAIK. So the same nuances should apply. >> The new var, if we add it now, should probably be just t by default. >> >> To avoid changing the behavior for those who customized >> show-paren-mode for many years, and yet allow an easy customization >> point for others who can by annoyed with the change. > > I don't see why the default value of a new `paren-mode-global-modes' > variable would affect people who are saying (show-paren-mode 1) in their > init files? It should only affect those who haven't made any such > customisation already. The value of font-lock-global-modes affects how global-font-lock-mode works.