From: Drew Adams <drew.adams@oracle.com>
To: Drew Adams <drew.adams@oracle.com>,
"52007@debbugs.gnu.org" <52007@debbugs.gnu.org>
Subject: bug#52007: 26.3; Doc of `define-globalized-minor-mode' and global(ized) minor modes
Date: Sat, 20 Nov 2021 23:17:49 +0000 [thread overview]
Message-ID: <SJ0PR10MB548861C115674B7EB1577151F39D9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <SJ0PR10MB5488D10165DC230E78C51BA0F39D9@SJ0PR10MB5488.namprd10.prod.outlook.com>
It's even worse than I thought.
The first line of the doc string of the globalized
version of minor mode `foo-mode' (`global-foo-mode')
says that it toggles `foo-mode' everywhere:
Toggle Foo mode in all buffers.
It doesn't do that at all. Instead, it toggles
`global-foo-mode'. BIG difference. If `foo-mode'
is ON in buffer B1 and OFF in buffer B2, then
toggling `foo-mode' everywhere would result in
`foo-mode' being OFF in B1 and ON in B2.
What instead happens is that if the global mode was
OFF then `global-foo-mode' is turned ON, which turns
ON `foo-mode' in all buffers. And if the global
mode was ON then it is turned OFF, which turns OFF
`foo-mode' in all buffers.
We don't seem to have a command that toggles a minor
mode in all buffers, that is, flips its state ON/OFF.
next prev parent reply other threads:[~2021-11-20 23:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-20 22:44 bug#52007: 26.3; Doc of `define-globalized-minor-mode' and global(ized) minor modes Drew Adams
2021-11-20 23:17 ` Drew Adams [this message]
2021-11-21 6:42 ` Eli Zaretskii
2021-11-21 17:22 ` bug#52007: [External] : " Drew Adams
2021-11-21 17:28 ` Eli Zaretskii
2021-11-21 17:45 ` Drew Adams
2021-11-21 18:03 ` Eli Zaretskii
2021-11-21 18:25 ` Drew Adams
2021-11-21 6:41 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR10MB548861C115674B7EB1577151F39D9@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=52007@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).