Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
73c050cc
Commit
73c050cc
authored
Dec 24, 2014
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/lispref/modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.
parent
1783e6cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+4
-0
doc/lispref/modes.texi
doc/lispref/modes.texi
+2
-2
No files found.
doc/lispref/ChangeLog
View file @
73c050cc
2014-12-24 Glenn Morris <rgm@gnu.org>
* modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.
2014-12-23 Eli Zaretskii <eliz@gnu.org>
2014-12-23 Eli Zaretskii <eliz@gnu.org>
* windows.texi (Recombining Windows): Index subject of sections.
* windows.texi (Recombining Windows): Index subject of sections.
...
...
doc/lispref/modes.texi
View file @
73c050cc
...
@@ -1490,7 +1490,7 @@ A positive prefix argument enables the mode, any other prefix argument
...
@@ -1490,7 +1490,7 @@ A positive prefix argument enables the mode, any other prefix argument
disables it. From Lisp, an argument of @code{toggle} toggles the mode,
disables it. From Lisp, an argument of @code{toggle} toggles the mode,
whereas an omitted or @code{nil} argument enables the mode.
whereas an omitted or @code{nil} argument enables the mode.
This makes it easy to enable the minor mode in a major mode hook, for example.
This makes it easy to enable the minor mode in a major mode hook, for example.
If @var{doc} is nil, the macro supplies a default documentation string
If @var{doc} is
@code{
nil
}
, the macro supplies a default documentation string
explaining the above.
explaining the above.
By default, it also defines a variable named @var{mode}, which is set to
By default, it also defines a variable named @var{mode}, which is set to
...
@@ -3659,7 +3659,7 @@ For example:
...
@@ -3659,7 +3659,7 @@ For example:
Notice how those lexers return the empty string when in front of
Notice how those lexers return the empty string when in front of
parentheses. This is because SMIE automatically takes care of the
parentheses. This is because SMIE automatically takes care of the
parentheses defined in the syntax table. More specifically if the lexer
parentheses defined in the syntax table. More specifically if the lexer
returns nil or an empty string, SMIE tries to handle the corresponding
returns
@code{
nil
}
or an empty string, SMIE tries to handle the corresponding
text as a sexp according to syntax tables.
text as a sexp according to syntax tables.
@node SMIE Tricks
@node SMIE Tricks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment