1
1

Replacing SYSCONFDIR with an absolute path or a circumlocution,

as suggested by Mike Frysinger, plus some other tweaks.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4977 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
Benno Schulenberg 2014-06-17 20:30:59 +00:00
родитель e96022b923
Коммит b439f55678
4 изменённых файлов: 18 добавлений и 13 удалений

Просмотреть файл

@ -4,6 +4,9 @@
2014-06-17 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_undo, do_redo): Remove obsolete boolean variable.
* doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Replace
SYSCONFDIR with an absolute path or a circumlocution, as suggested
by Mike Frysinger, plus some other tweaks.
2014-06-16 David Lawrence Ramsey <pooka109@gmail.com>
* src/nano.c (do_exit): Display the message "No file name" on the

Просмотреть файл

@ -78,7 +78,7 @@ Log search and replace strings to \fI~/.nano/search_history\fP, so they can be
retrieved in later sessions (if \fInanorc\fP support has been compiled in).
.TP
.B \-I (\-\-ignorercfiles)
Don't look at \fISYSCONFDIR/nanorc\fP or \fI~/.nanorc\fP
Don't look at the system's \fBnanorc\fP nor at \fB~/.nanorc\fP
(if \fInanorc\fP support has been compiled in).
.TP
.B \-K (\-\-rebindkeypad)
@ -228,13 +228,14 @@ Ignored, for compatibility with Pico.
.SH INITIALIZATION FILE
\fBnano\fP will read initialization files in the following order:
\fISYSCONFDIR/nanorc\fP, then \fI~/.nanorc\fP. Please see
\fBnanorc(5)\fP and the example file \fBnanorc.sample\fP, both of which
should be provided with \fBnano\fP.
the system's \fBnanorc\fP (if it exists), and then the user's
\fB~/.nanorc\fP (if it exists). Please see
.BR nanorc (5)
for more information on the possible contents of those files.
.SH NOTES
If no alternative spell checker command is specified on the command
line or in one of the \fInanorc\fP files, \fBnano\fP will check the
line nor in one of the \fInanorc\fP files, \fBnano\fP will check the
\fBSPELL\fP environment variable for one.
In some cases \fBnano\fP will try to dump the buffer into an emergency

Просмотреть файл

@ -29,8 +29,8 @@ nanorc \- GNU nano's rcfile
The \fInanorc\fP file contains the default settings for \fBnano\fP, a
small and friendly editor. The file should be in Unix format, not in
DOS or Mac format. During startup, \fBnano\fP will first read the
system-wide settings, from \fBSYSCONFDIR/nanorc\fP, and then the
user-specific settings, from \fB~/.nanorc\fP.
system-wide settings, from \fB/etc/nanorc\fP (the exact path might be
different), and then the user-specific settings, from \fB~/.nanorc\fP.
.SH OPTIONS
The configuration file accepts a series of \fBset\fP and \fBunset\fP
@ -648,11 +648,11 @@ A special name meaning: apply to all menus where this function exists.
.SH FILES
.TP
.B SYSCONFDIR/nanorc
System-wide configuration file
.B /etc/nanorc
System-wide configuration file.
.TP
.B ~/.nanorc
Per-user configuration file
Per-user configuration file.
.SH SEE ALSO
.TP
\fBnano\fP(1)

Просмотреть файл

@ -158,7 +158,7 @@ Log search and replace strings to ~/.nano/search_history, so they can be
retrieved in later sessions (if nanorc support has been compiled in).
@item -I, --ignorercfiles
Don't look at SYSCONFDIR/nanorc or ~/.nanorc
Don't look at the system's nanorc file nor at the user's ~/.nanorc
(if nanorc support has been compiled in).
@item -K, --rebindkeypad
@ -521,8 +521,9 @@ toggles the -$ (@code{--softwrap}) command line option.
The nanorc files contain the default settings for @code{nano}. They
should be in Unix format, not in DOS or Mac format. During startup,
@code{nano} will first read the system-wide settings, from SYSCONFDIR/nanorc,
and then the user-specific settings, from ~/.nanorc.
@code{nano} will first read the system-wide settings, from /etc/nanorc
(the exact path might be different), and then the user-specific settings,
from ~/.nanorc.
A nanorc file accepts a series of "set" and "unset" commands, which can
be used to configure @code{nano} on startup without using command-line