GNU bug report logs - #50895
28.0.50; show-paren-mode is distracting in some modes

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Wed, 29 Sep 2021 17:26:02 UTC

Severity: wishlist

Merged with 50894

Found in version 28.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #40 received at 50895 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 50895 <at> debbugs.gnu.org, Jim Porter <jporterbugs <at> gmail.com>
Subject: Re: bug#50895: 28.0.50; show-paren-mode is distracting in some modes
Date: Thu, 30 Sep 2021 08:45:48 +0200
Dmitry Gutov <dgutov <at> yandex.ru> 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)?

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).

> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.