Replace the mention of c-indent-defun with js-indent-line
* doc/lispref/text.texi (Mode-Specific Indent): Avoid mentioning c-indent-defun in the context of multi-mode indentation.
This commit is contained in:
parent
7e9eef0ffd
commit
446faf3efa
1 changed files with 2 additions and 2 deletions
|
@ -2396,9 +2396,9 @@ text at point (@pxref{Completion in Buffers}).
|
||||||
syntax belongs to a different major mode. Examples include
|
syntax belongs to a different major mode. Examples include
|
||||||
@dfn{literate programming} source files that combine documentation and
|
@dfn{literate programming} source files that combine documentation and
|
||||||
snippets of source code, Yacc/Bison programs that include snippets of
|
snippets of source code, Yacc/Bison programs that include snippets of
|
||||||
plain C code, etc. To correctly indent the embedded chunks, the primary
|
Python or JS code, etc. To correctly indent the embedded chunks, the primary
|
||||||
mode needs to delegate the indentation to another mode's indentation
|
mode needs to delegate the indentation to another mode's indentation
|
||||||
engine (e.g., call @code{c-indent-defun} for C code or
|
engine (e.g., call @code{js-indent-line} for JS code or
|
||||||
@code{python-indent-line} for Python), while providing it with some
|
@code{python-indent-line} for Python), while providing it with some
|
||||||
context to guide the indentation. Major modes, for their part, should
|
context to guide the indentation. Major modes, for their part, should
|
||||||
avoid calling @code{widen} in their indentation code and obey
|
avoid calling @code{widen} in their indentation code and obey
|
||||||
|
|
Loading…
Add table
Reference in a new issue