diff options
| author | Eli Zaretskii | 2001-06-22 11:32:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-06-22 11:32:07 +0000 |
| commit | 5cc06e0b745c4cadb183b91da8a0452e9e1b43f5 (patch) | |
| tree | 835234f8d47a766852151f5e4d93b3432135982b | |
| parent | 04142c9a2512f1ec9a52ad763ab70d123bb111ed (diff) | |
| download | emacs-5cc06e0b745c4cadb183b91da8a0452e9e1b43f5.tar.gz emacs-5cc06e0b745c4cadb183b91da8a0452e9e1b43f5.zip | |
(Multi-line Indent): Document indent-code-rigidly.
| -rw-r--r-- | man/programs.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/man/programs.texi b/man/programs.texi index f3dcd3abd28..ec8e53c09b0 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -478,6 +478,9 @@ Shift an entire list rigidly sideways so that its first line | |||
| 478 | is properly indented. | 478 | is properly indented. |
| 479 | @item C-M-\ | 479 | @item C-M-\ |
| 480 | Reindent all lines in the region (@code{indent-region}). | 480 | Reindent all lines in the region (@code{indent-region}). |
| 481 | @item M-x indent-code-rigidly | ||
| 482 | Shift all the lines in the region rigidly sideways, but do not alter | ||
| 483 | lines that start inside comments and strings. | ||
| 481 | @end table | 484 | @end table |
| 482 | 485 | ||
| 483 | @kindex C-M-q | 486 | @kindex C-M-q |
| @@ -500,9 +503,15 @@ whole grouping rigidly as a unit. It is clever, though, and does not | |||
| 500 | alter lines that start inside strings, or C preprocessor lines when in C | 503 | alter lines that start inside strings, or C preprocessor lines when in C |
| 501 | mode. | 504 | mode. |
| 502 | 505 | ||
| 506 | @findex indent-code-rigidly | ||
| 503 | Another way to specify the range to be reindented is with the region. | 507 | Another way to specify the range to be reindented is with the region. |
| 504 | The command @kbd{C-M-\} (@code{indent-region}) applies @key{TAB} to | 508 | The command @kbd{C-M-\} (@code{indent-region}) applies @key{TAB} to |
| 505 | every line whose first character is between point and mark. | 509 | every line whose first character is between point and mark. The command |
| 510 | @kbd{M-x indent-code-rigidly} rigidly shifts all the lines in the region | ||
| 511 | sideways, like @code{indent-rigidly} does (@pxref{Indentation | ||
| 512 | Commands}), except that it doesn't alter the indentation of lines that | ||
| 513 | start inside comments and strings, unless the region starts inside that | ||
| 514 | comment or string. | ||
| 506 | 515 | ||
| 507 | @node Lisp Indent | 516 | @node Lisp Indent |
| 508 | @subsection Customizing Lisp Indentation | 517 | @subsection Customizing Lisp Indentation |