Commit 74ac8ce4 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Clarifying the meaning of the --backupdir option.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5243 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent f87de12b
Showing with 24 additions and 14 deletions
+24 -14
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
in the main menu, to make it easy to find. in the main menu, to make it easy to find.
* doc/texinfo/nano.texi: Improve some formatting, hyphenation, wording * doc/texinfo/nano.texi: Improve some formatting, hyphenation, wording
and dashes. And remove some confusing, historical things. and dashes. And remove some confusing, historical things.
* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Clarify the
meaning of --backupdir: it doesn't just specify a directory for saving
backup files, it mainly causes uniquely numbered backups to be made.
2015-06-04 Benno Schulenberg <bensberg@justemail.net> 2015-06-04 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h: Fix compilation with --enable-tiny. * src/nano.h: Fix compilation with --enable-tiny.
......
...@@ -53,12 +53,13 @@ already at that position, it will jump to the true beginning of the ...@@ -53,12 +53,13 @@ already at that position, it will jump to the true beginning of the
line. line.
.TP .TP
.BR \-B ", " \-\-backup .BR \-B ", " \-\-backup
When saving a file, back up the previous version of it to the current When saving a file, back up the previous version of it, using the current
filename suffixed with a tilde (\fB~\fP). filename suffixed with a tilde (\fB~\fP).
.TP .TP
.BR \-C\ \fIdirectory\fR ", " \-\-backupdir= \fIdirectory .BR \-C\ \fIdirectory\fR ", " \-\-backupdir= \fIdirectory
Set the directory where \fBnano\fP puts unique backup files, if file Make and keep not just one backup file, but make and keep a uniquely
backups are enabled. numbered one every time a file is saved -- when backups are enabled.
The uniquely numbered files are stored in the specified \fIdirectory\fR.
.TP .TP
.BR \-D ", " \-\-boldtext .BR \-D ", " \-\-boldtext
Use bold text instead of reverse video text. Use bold text instead of reverse video text.
......
...@@ -64,11 +64,14 @@ NOT enable this option unless you are sure you need it. ...@@ -64,11 +64,14 @@ NOT enable this option unless you are sure you need it.
Use auto-indentation. Use auto-indentation.
.TP .TP
.B set backup .B set backup
Create backup files by adding a tilde (\fB~\fP) to each file's name. When saving a file, create a backup file by adding a tilde (\fB~\fP) to
the file's name.
.TP .TP
.B set backupdir "\fIdirectory\fP" .B set backupdir "\fIdirectory\fP"
Set the directory where \fBnano\fP puts unique backup files, if file Make and keep not just one backup file, but make and keep a uniquely
backups are enabled. numbered one every time a file is saved --- when backups are enabled
with \fBset backup\fR or \fB\-\-backup\fR or \fB\-B\fR.
The uniquely numbered files are stored in the specified \fIdirectory\fR.
.TP .TP
.B set backwards .B set backwards
Do backwards searches by default. Do backwards searches by default.
...@@ -615,7 +618,7 @@ Toggles whether long lines will be hard-wrapped to the next line. ...@@ -615,7 +618,7 @@ Toggles whether long lines will be hard-wrapped to the next line.
Toggles whether typed tabs will be converted to spaces. Toggles whether typed tabs will be converted to spaces.
.TP .TP
.B backupfile .B backupfile
Toggles whether a backup will be made of the file to be edited. Toggles whether a backup will be made of the file being edited.
.TP .TP
.B multibuffer .B multibuffer
Toggles whether a file is inserted into the current buffer Toggles whether a file is inserted into the current buffer
......
...@@ -134,13 +134,14 @@ line. ...@@ -134,13 +134,14 @@ line.
@item -B @item -B
@itemx --backup @itemx --backup
When saving a file, back up the previous version of it to the current When saving a file, back up the previous version of it, using the current
filename suffixed with a @samp{~}. filename suffixed with a tilde (@samp{~}).
@item -C @var{directory} @item -C @var{directory}
@itemx --backupdir=@var{directory} @itemx --backupdir=@var{directory}
Set the directory where @command{nano} puts unique backup files if file Make and keep not just one backup file, but make and keep a uniquely
backups are enabled. numbered one every time a file is saved --- when backups are enabled.
The uniquely numbered files are stored in the specified directory.
@item -D @item -D
@itemx --boldtext @itemx --boldtext
...@@ -610,12 +611,14 @@ You should NOT enable this option unless you are sure you need it. ...@@ -610,12 +611,14 @@ You should NOT enable this option unless you are sure you need it.
Use auto-indentation. Use auto-indentation.
@item set backup @item set backup
When saving a file, back up the previous version of it to the current When saving a file, back up the previous version of it, using the current
filename suffixed with a tilde (@code{~}). filename suffixed with a tilde (@code{~}).
@item set backupdir "directory" @item set backupdir "directory"
Set the directory where @code{nano} puts unique backup files, if file Make and keep not just one backup file, but make and keep a uniquely
backups are enabled. numbered one every time a file is saved --- when backups are enabled
with @code{set backup} or @code{--backup} or @code{-B}.
The uniquely numbered files are stored in the specified directory.
@item set backwards @item set backwards
Do backwards searches by default. Do backwards searches by default.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment