From a1e32130dee7f7e4ff84549e2bd157744f571ab0 Mon Sep 17 00:00:00 2001 From: Morgan Willcock Date: Thu, 29 Jan 2026 18:05:38 +0000 Subject: [PATCH] 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. --- doc/lispref/modes.texi | 2 +- lisp/emacs-lisp/smie.el | 2 +- 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. @item @code{:elem}, in which case the function should return either the offset to use to indent function arguments (if @var{arg} is the symbol -@code{arg}) or the basic indentation step (if @var{arg} is the symbol +@code{args}) or the basic indentation step (if @var{arg} is the symbol @code{basic}). @item @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: - :before, in which case ARG is a token and the function should return the OFFSET to use to indent ARG itself. - :elem, in which case the function should return either: - - the offset to use to indent function arguments (ARG = `arg') + - the offset to use to indent function arguments (ARG = `args') - the basic indentation step (ARG = `basic'). - the token to use (when ARG = `empty-line-token') when we don't know how to indent an empty line.