GNU bug report logs -
#52007
26.3; Doc of `define-globalized-minor-mode' and global(ized) minor modes
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 20 Nov 2021 22:45:01 UTC
Severity: minor
Found in version 26.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 52007 <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> CC: "52007 <at> debbugs.gnu.org" <52007 <at> 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.
This bug report was last modified 3 years and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.