diff options
| author | Eli Zaretskii | 2022-10-19 14:50:23 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-10-19 14:50:23 +0300 |
| commit | 4b2c83eeaf25dc2e95b0265d2e3013ad0d16aa25 (patch) | |
| tree | eef944372dae7c1b40f4375aaf00ce039a598327 | |
| parent | efd3ef3ceb799fa26be8f84d54d4a21ebc4a5d31 (diff) | |
| download | emacs-4b2c83eeaf25dc2e95b0265d2e3013ad0d16aa25.tar.gz emacs-4b2c83eeaf25dc2e95b0265d2e3013ad0d16aa25.zip | |
; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON.
| -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 ad46708f027..72b4a6fb4f7 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1839,7 +1839,9 @@ to enable or disable the buffer-local minor mode @var{mode} in all (or | |||
| 1839 | some; see below) buffers. It also executes the @var{body} forms. To | 1839 | some; see below) buffers. It also executes the @var{body} forms. To |
| 1840 | turn on the minor mode in a buffer, it uses the function | 1840 | turn on the minor mode in a buffer, it uses the function |
| 1841 | @var{turn-on}; to turn off the minor mode, it calls @var{mode} with | 1841 | @var{turn-on}; to turn off the minor mode, it calls @var{mode} with |
| 1842 | @minus{}1 as argument. | 1842 | @minus{}1 as argument. (The function @var{turn-on} is a separate |
| 1843 | function so it could determine whether to enable the minor mode or not | ||
| 1844 | when it is not a priori clear that it should always be enabled.) | ||
| 1843 | 1845 | ||
| 1844 | Globally enabling the mode also affects buffers subsequently created | 1846 | Globally enabling the mode also affects buffers subsequently created |
| 1845 | by visiting files, and buffers that use a major mode other than | 1847 | by visiting files, and buffers that use a major mode other than |