diff options
| author | Dmitry Gutov | 2017-12-18 02:30:41 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2017-12-18 02:30:41 +0200 |
| commit | 446faf3efa0f2d9ccdaf746348c3173b3eb7be2f (patch) | |
| tree | e85942bf8f7f85b7fcb2da792ad8d71ee8beca90 | |
| parent | 7e9eef0ffd90cd7e39f15b003e4a9770be27b0ce (diff) | |
| download | emacs-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.texi | 4 |
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}). | |||
| 2396 | syntax belongs to a different major mode. Examples include | 2396 | syntax 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 |
| 2398 | snippets of source code, Yacc/Bison programs that include snippets of | 2398 | snippets of source code, Yacc/Bison programs that include snippets of |
| 2399 | plain C code, etc. To correctly indent the embedded chunks, the primary | 2399 | Python or JS code, etc. To correctly indent the embedded chunks, the primary |
| 2400 | mode needs to delegate the indentation to another mode's indentation | 2400 | mode needs to delegate the indentation to another mode's indentation |
| 2401 | engine (e.g., call @code{c-indent-defun} for C code or | 2401 | engine (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 |
| 2403 | context to guide the indentation. Major modes, for their part, should | 2403 | context to guide the indentation. Major modes, for their part, should |
| 2404 | avoid calling @code{widen} in their indentation code and obey | 2404 | avoid calling @code{widen} in their indentation code and obey |