aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2017-12-18 02:30:41 +0200
committerDmitry Gutov2017-12-18 02:30:41 +0200
commit446faf3efa0f2d9ccdaf746348c3173b3eb7be2f (patch)
treee85942bf8f7f85b7fcb2da792ad8d71ee8beca90
parent7e9eef0ffd90cd7e39f15b003e4a9770be27b0ce (diff)
downloademacs-446faf3efa0f2d9ccdaf746348c3173b3eb7be2f.tar.gz
emacs-446faf3efa0f2d9ccdaf746348c3173b3eb7be2f.zip
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.
-rw-r--r--doc/lispref/text.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 67a303a5994..0ec1998da40 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -2396,9 +2396,9 @@ text at point (@pxref{Completion in Buffers}).
2396syntax belongs to a different major mode. Examples include 2396syntax belongs to a different major mode. Examples include
2397@dfn{literate programming} source files that combine documentation and 2397@dfn{literate programming} source files that combine documentation and
2398snippets of source code, Yacc/Bison programs that include snippets of 2398snippets of source code, Yacc/Bison programs that include snippets of
2399plain C code, etc. To correctly indent the embedded chunks, the primary 2399Python or JS code, etc. To correctly indent the embedded chunks, the primary
2400mode needs to delegate the indentation to another mode's indentation 2400mode needs to delegate the indentation to another mode's indentation
2401engine (e.g., call @code{c-indent-defun} for C code or 2401engine (e.g., call @code{js-indent-line} for JS code or
2402@code{python-indent-line} for Python), while providing it with some 2402@code{python-indent-line} for Python), while providing it with some
2403context to guide the indentation. Major modes, for their part, should 2403context to guide the indentation. Major modes, for their part, should
2404avoid calling @code{widen} in their indentation code and obey 2404avoid calling @code{widen} in their indentation code and obey