mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON.
This commit is contained in:
parent
efd3ef3ceb
commit
4b2c83eeaf
1 changed files with 3 additions and 1 deletions
|
|
@ -1839,7 +1839,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
|
some; see below) buffers. It also executes the @var{body} forms. To
|
||||||
turn on the minor mode in a buffer, it uses the function
|
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
|
@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
|
Globally enabling the mode also affects buffers subsequently created
|
||||||
by visiting files, and buffers that use a major mode other than
|
by visiting files, and buffers that use a major mode other than
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue