Re: how to make it default so that nano wraps lines at 80 columns
shirish शिरीष <[email protected]>
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <CADdDZRn3MGMKVPhrQz65jOigRR9CRgHdfUo3iqy1G7hSvgcAkw@mail.gmail.com> |
in-line :- On 13/11/2016, Benno Schulenberg <[email protected]> wrote: > > On Sat, Nov 12, 2016, at 21:17, shirish शिरीष wrote: >> Hello Benno, >> >> First of all let me take opportunity to thank you for creating and >> maintaining nano for so long. > > It was Chris who created nano, and has been maintaining > and extending it for so many years. Sorry for the goof-up, meant no harm. >> It seems you took over rein somewhere in >> Jan./Feb 2014 according to changelog.gz at /usr/share/doc/nano > > I have been fixing bugs since the beginning of 2014, yes, > but I have been "given the reins" (been officially appointed > the maintainer of GNU nano) somewhere last August, shortly > before the release of 2.7.0. > >> > If you run '/bin/nano --ignore --fill=80 yourfile', does it >> > then correctly wrap at eighty columns? >> >> Yes this correctly wraps at 80 columns > > Okay. So there is nothing wrong with nano; it works correctly. > >> but then why doesn't it do it >> with the same option in .nanorc > > Somehow your .nanorc is not being read? Try running > 'strace nano 2>TRAIL' and type ^X to exit nano. Then > run 'grep nanorc TRAIL | grep -e etc -e home' and paste > what it says. Output of the commands requested - ┌─[shirish@debian] - [~] - [4163] └─[$] strace nano 2>TRAIL Exited out of nano and then - ┌─[shirish@debian] - [~] - [4458] └─[$] grep nanorc TRAIL | grep -e etc -e home stat("/etc/nanorc", {st_mode=S_IFREG|0644, st_size=8769, ...}) = 0 open("/etc/nanorc", O_RDONLY) = 3 stat("/home/shirish/.nanorc", {st_mode=S_IFREG|0644, st_size=55, ...}) = 0 open("/home/shirish/.nanorc", O_RDONLY) = 3 > Did you compile nano yourself? If yes, what --prefix > and other options did you use? Or are you running > Debian unstable? As shared before, am running Debian testing/stretch. >> [$] type -a nano >> nano is /bin/nano > > It's strange that you don't have a /usr/bin/nano, when > you are on a Debian system. This is what is also listed by - ┌─[shirish@debian] - [~] - [4466] └─[$] dpkg -L nano | head /. /bin /bin/nano /etc /etc/nanorc /usr /usr/share /usr/share/doc /usr/share/doc/nano /usr/share/doc/nano/AUTHORS I just saw https://bugs.debian.org/811206 I have just done hash -r and seeing if it effects what I'm seeing. > Also, please run 'grep set /etc/nanorc' and paste that. Aha, found the culprit, see - └─[$] grep set /etc/nanorc [19:48:38] ## To make sure an option is disabled, use "unset <option>". ## Other options are unset by default. # set quiet # set autoindent # set backup # set backupdir "" # set backwards # set boldtext # set brackets ""')>]}" # set casesensitive # set constantshow # set cut # set fill -8 set historylog # set justifytrim set locking ## searches. They cannot contain blank characters. The former set must ## come before the latter set, and both must be in the same order. # set matchbrackets "(<[{)>]}" # set morespace ## mouse clicks can be used to place the cursor, set the mark (with a # set mouse # set multibuffer # set noconvert # set nohelp # set nonewlines set nowrap # set operatingdir "" # set positionlog # set preserve # set punct "!.?" # set quickblank # set quotestr "^([ ]*[#:>\|}])+" # set quotestr "> " # set rebinddelete # set rebindkeypad # set regexp # set smarthome # set smooth # set softwrap # set speller "aspell -x -c" set suspend # set tabsize 8 # set tabstospaces # set tempfile # set view # set whitespace "»·" # set whitespace ">." # set wordbounds ## set, it overrides option 'set wordbounds'. # set wordchars "<_>." # set titlecolor brightwhite,blue # set statuscolor brightwhite,green # set keycolor green # set functioncolor yellow ## to set the background color to black or white. maybe it is - [$] grep nowrap /etc/nanorc set nowrap But this is supposed to be for root, right and it is supposed to be superseded by .nanorc in user's profile right ? > Benno > > -- > http://www.fastmail.com - Access your email from home and the web > > I will update if I get any more info. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 _______________________________________________ Help-nano mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-nano