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

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

bug#52007: [External] : Re: bug#52007: 26.3; Doc of `define-globalized-m


From: Eli Zaretskii
Subject: bug#52007: [External] : Re: bug#52007: 26.3; Doc of `define-globalized-minor-mode' and global(ized) minor modes
Date: Sun, 21 Nov 2021 20:03:50 +0200

> From: Drew Adams <drew.adams@oracle.com>
> CC: "52007@debbugs.gnu.org" <52007@debbugs.gnu.org>
> Date: Sun, 21 Nov 2021 17:45:53 +0000
> 
> > > That's not what it means to toggle `foo-mode'
> > > everywhere.  Doing that would flip the value that
> > > `foo-mode' (non-global mode) has in each buffer.
> > 
> > And it does.
> 
> It does not.  If `foo-mode' is on in buffer A, and
> the global mode is off, then toggling the global mode
> results in `foo-mode' being (still) on in buffer A.
> 
> Toggling `foo-mode' in all buffers (which is what
> the erroneous doc string said) would turn it on where
> it is off and off where it is on.  It would turn it
> off in buffer A.  It does not do so; it doesn't
> toggle `foo-mode' in each buffer; instead, it turns
> the mode on everywhere or off everywhere, depending
> on the value of `global-foo-mode'.

You are splitting hair.  The doc string describes what happens when
the mode is off everywhere.

> But as you've acknowledged, the bug exists in 27.2,
> the latest Emacs release.

I didn't try this in Emacs 27, so I didn't acknowledge that.





reply via email to

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