From 6fe132194c08910819261bad448e03ab29cb48c0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 30 May 2018 10:19:57 +0200 Subject: [PATCH] docs: improve the description of the --autoindent option --- doc/nano.1 | 5 +++-- doc/nano.texi | 13 +++++++++---- doc/nanorc.5 | 8 ++++++-- doc/sample.nanorc.in | 4 +++- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/doc/nano.1 b/doc/nano.1 index 589cfbc1..69be6e47 100644 --- a/doc/nano.1 +++ b/doc/nano.1 @@ -187,8 +187,9 @@ highlighted item. Useful for braille users. Show a summary of the available command-line options and exit. .TP .BR \-i ", " \-\-autoindent -Indent new lines to the previous line's indentation. Useful when -editing source code. +Automatically indent a newly created line to the same number of tabs +and/or spaces as the previous line (or as the next line if the previous +line is the beginning of a paragraph). .TP .BR \-k ", " \-\-cutfromcursor Make the 'Cut Text' command (normally \fB^K\fR) cut from the current cursor diff --git a/doc/nano.texi b/doc/nano.texi index d04a3bc3..65e60e37 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -298,8 +298,9 @@ Show a summary of command-line options and exit. @item -i @itemx --autoindent -Automatically indent new lines to the same number of spaces and tabs as -the previous line. +Automatically indent a newly created line to the same number of tabs +and/or spaces as the previous line (or as the next line if the previous +line is the beginning of a paragraph). @item -k @itemx --cutfromcursor @@ -705,7 +706,9 @@ When soft line wrapping is enabled, make it wrap lines at blank characters (tabs and spaces) instead of always at the edge of the screen. @item set autoindent -Use auto-indentation. +Automatically indent a newly created line to the same number of tabs +and/or spaces as the previous line (or as the next line if the previous +line is the beginning of a paragraph). @item set backup When saving a file, back up the previous version of it, using the current @@ -1382,7 +1385,9 @@ Toggles syntax highlighting. Toggles the smartness of the Home key. @item autoindent -Toggles whether new lines will contain the same amount of whitespace as the preceding line. +Toggles whether a newly created line will contain the same amount of leading +whitespace as the preceding line --- or as the next line if the preceding line +is the beginning of a paragraph. @item cutfromcursor Toggles whether cutting text will cut the whole line or just from the current cursor diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 8c9dd5a9..1620dbf1 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -66,7 +66,9 @@ When soft line wrapping is enabled, make it wrap lines at blank characters (tabs and spaces) instead of always at the edge of the screen. .TP .B set autoindent -Use auto-indentation. +Automatically indent a newly created line to the same number of tabs +and/or spaces as the previous line (or as the next line if the previous +line is the beginning of a paragraph). .TP .B set backup When saving a file, create a backup file by adding a tilde (\fB~\fP) to @@ -735,7 +737,9 @@ Toggles syntax highlighting. Toggles the smartness of the Home key. .TP .B autoindent -Toggles whether new lines will contain the same amount of whitespace as the preceding line. +Toggles whether a newly created line will contain the same amount of leading +whitespace as the preceding line -- or as the next line if the preceding line +is the beginning of a paragraph. .TP .B cutfromcursor Toggles whether cutting text will cut the whole line or just from the current cursor diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in index fe2fe5e4..e5892450 100644 --- a/doc/sample.nanorc.in +++ b/doc/sample.nanorc.in @@ -23,7 +23,9 @@ ## (tabs and spaces) instead of always at the edge of the screen. # set atblanks -## Use auto-indentation. +## Automatically indent a newly created line to the same number of +## tabs and/or spaces as the preceding line -- or as the next line +## if the preceding line is the beginning of a paragraph. # set autoindent ## Back up files to the current filename plus a tilde.