Subject: Re: [External] : Re: bug#52007: 26.3; Doc of `define-globalized-minor-mode' and global(ized) minor modes

From: Eli Zaretskii <[email-masked]>
Date: Sun, 21 Nov 2021 20:03:50 +0200

> From: Drew Adams <[email-masked]>
> CC: "[email-masked]" <[email-masked]>
> 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.