aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Willcock2026-01-29 18:05:38 +0000
committerStefan Monnier2026-02-11 15:35:29 -0500
commita1e32130dee7f7e4ff84549e2bd157744f571ab0 (patch)
tree0e7f5cabd31f6fc1972a2af99321f1d2dad1a38f
parentbc9a53616a0555e90cb5a65ec257846e1f0c77bb (diff)
downloademacs-a1e32130dee7f7e4ff84549e2bd157744f571ab0.tar.gz
emacs-a1e32130dee7f7e4ff84549e2bd157744f571ab0.zip
Fix typo in smie-rules-function documentation
Fix a typo in the documentation for the expected arguments when calling smie-rules-function to set the indentation offset of function arguments. * doc/lispref/modes.texi (SMIE Indentation): * lisp/emacs-lisp/smie.el (smie-rules-function): Fix typo in documentation for smie-rules-function arguments.
-rw-r--r--doc/lispref/modes.texi2
-rw-r--r--lisp/emacs-lisp/smie.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 2214a30c170..13a8ec46a8a 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -5026,7 +5026,7 @@ should return the @var{offset} to use to indent @var{arg} itself.
5026@item 5026@item
5027@code{:elem}, in which case the function should return either the offset 5027@code{:elem}, in which case the function should return either the offset
5028to use to indent function arguments (if @var{arg} is the symbol 5028to use to indent function arguments (if @var{arg} is the symbol
5029@code{arg}) or the basic indentation step (if @var{arg} is the symbol 5029@code{args}) or the basic indentation step (if @var{arg} is the symbol
5030@code{basic}). 5030@code{basic}).
5031@item 5031@item
5032@code{:list-intro}, in which case @var{arg} is a token and the function 5032@code{:list-intro}, in which case @var{arg} is a token and the function
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el
index 91f3332a79b..33821b8be28 100644
--- a/lisp/emacs-lisp/smie.el
+++ b/lisp/emacs-lisp/smie.el
@@ -1153,7 +1153,7 @@ METHOD can be:
1153- :before, in which case ARG is a token and the function should return the 1153- :before, in which case ARG is a token and the function should return the
1154 OFFSET to use to indent ARG itself. 1154 OFFSET to use to indent ARG itself.
1155- :elem, in which case the function should return either: 1155- :elem, in which case the function should return either:
1156 - the offset to use to indent function arguments (ARG = `arg') 1156 - the offset to use to indent function arguments (ARG = `args')
1157 - the basic indentation step (ARG = `basic'). 1157 - the basic indentation step (ARG = `basic').
1158 - the token to use (when ARG = `empty-line-token') when we don't know how 1158 - the token to use (when ARG = `empty-line-token') when we don't know how
1159 to indent an empty line. 1159 to indent an empty line.