diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-10-20 06:31:29 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-10-20 06:31:29 +0200 |
commit | d8eae291e5a5e6d1285d6606acc1d86fe275b149 (patch) | |
tree | 832831891e6a8a02e5ef31e1996c3ec2b8864e7b /doc/lispref/modes.texi | |
parent | 56c63ca21b3e5e2d0bb05d3897ea287a754c5b29 (diff) | |
parent | 4b2c83eeaf25dc2e95b0265d2e3013ad0d16aa25 (diff) | |
download | emacs-d8eae291e5a5e6d1285d6606acc1d86fe275b149.tar.gz |
Merge from origin/emacs-28
4b2c83eeaf ; * doc/lispref/modes.texi (Defining Minor Modes): Explain...
Diffstat (limited to 'doc/lispref/modes.texi')
-rw-r--r-- | doc/lispref/modes.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 73c5fcd44d7..434538dcbf8 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -1851,7 +1851,9 @@ to enable or disable the buffer-local minor mode @var{mode} in all (or some; see below) buffers. It also executes the @var{body} forms. To turn on the minor mode in a buffer, it uses the function @var{turn-on}; to turn off the minor mode, it calls @var{mode} with -@minus{}1 as argument. +@minus{}1 as argument. (The function @var{turn-on} is a separate +function so it could determine whether to enable the minor mode or not +when it is not a priori clear that it should always be enabled.) Globally enabling the mode also affects buffers subsequently created by visiting files, and buffers that use a major mode other than |