bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29381: show-paren-mode should not be globalized


From: Lars Ingebrigtsen
Subject: bug#29381: show-paren-mode should not be globalized
Date: Fri, 03 Sep 2021 08:58:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Phil Sainty <psainty@orcon.net.nz> writes:

> Note that show-paren-mode is not "globalized"; it is simply a
> global minor mode.  If it was a globalized mode, then there would
> (necessarily) be a buffer-local mode already.
>
> Changing it to a globalized mode would actually be a possible
> solution to your issue, as you could then provide a way for the
> user to determine whether or not the buffer-local mode was enabled
> for any given buffer.

Well...  if the user wants the mode disabled in some mode, the user can
say (setq-local show-paren-mode nil) in the hook for the mode.  (And can
check whether it's enabled by just looking at that variable.)

On the other hand, it'd make the mode more regular -- perhaps the user
just wants to switch it on in just a particular buffer.

But we can't really change the names of the global(ized) version of the
mode, because that'd break people's setups.  So instead of having a
global-show-paren-mode/show-paren-mode, we'd have
show-paren-mode/show-parent-mode-this-buffer (or something), which is
also pretty confusing.

So taking all that into consideration, I think it'd better to just leave
things as they are, and I'm closing this bug report.

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]