Re: set fill 72 issue in Debian

Niels ten Oever <[email protected]>
Newsgroups gmane.editors.nano.general
Message-ID <20160702203229.GA10906@wolgograd>
Dear Benno,

Thanks a lot, worked like a charm. (I should probably have done better at RTFM thoug ;) ).

Thanks again and all the best,

Niels

On Tue, Jun 28, 2016 at 07:52:18PM +0200, Benno Schulenberg wrote:
> 
> Hello Niels,
> 
> On Tue, Jun 28, 2016, at 17:23, Niels ten Oever wrote:
> > My .nanorc looks like this (I also added this to /etc/nanorc):
> 
> (Putting it in two places is probably not a good idea.  But that
> as an aside.)
> 
> > [code]
> > syntax "mutt"
> > color green "^>.*"
> > unset nowrap
> > set fill 68
> > set tabstospaces
> > set tabsize 4
> > set smarthome
> > [/code]
> 
> From the arrangements of the settings, I get the impression that
> you seem to think that set and unset commands can be specific
> to a syntax.  They are not.  They are global.  If there are other
> "set fill" or "set nowrap" commands later in your .nanorc file,
> they willoverride the above ones.
> 
> >  Compiled options: --disable-wrapping-as-root [...]
> 
> I am assuming you are not running mutt as root?
> 
> > My current fix is calling nano in mutt with:
> > 
> > set editor="nano -w -$" 
> 
> But...  That is not a fix: -w means --nowrap, so effectively you
> are telling nano *not* to wrap, no matter what it says in
> /etc/nanorc or your .nanorc.
> 
> The best is not to try and set things in your .nanorc but set
> all the options you want in your .muttrc:
> 
> set editor="nano --fill=68 --tabstospaces --tabsize=4 --smarthome"
> 
> Does that not work?
> 
> (You may need to remove all "set fill" settings from both
> /etc/nanorc and .nanorc, because there was a small bug
> where a command-line --fill would not override a nanorc
> "set fill".  See https://savannah.gnu.org/bugs/?46492.
> It is fixed in nano-2.5.0 and later.  Yes, this wrapping/
> filling/justifying stuff is quite confusing.)
> 
> Benno
> 
> -- 
> http://www.fastmail.com - Does exactly what it says on the tin
>

_______________________________________________
Help-nano mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-nano
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJXeCTdAAoJEAi1oPJjbWjprjgH/0VPf61XLVgbguzXsBVehk0C
xDnmCztzZp2OGPyMpV2HSsKxV2G/agiN2qDaM4v7AsqvH7tTIKdTg6fyzU4tNMqX
jZ2QeZiJEehOpHsidaZeR3aNumIYKWRAli39k+w/1xLfY9z8BbnQsRV+XNi+Ba9X
ixh7m8P7Puz+mpVOU58z3foyZHRQbphc0yjw2uZiLYf9ZQ95baQQE2ZgECOpDwcH
ZbfR1kmOVd15K6gmyRHAfe0N3mfCTc4sG4w5vxa4DXAb4fvll90+xGyT1FcD416r
0IxiD70NPswV2d1Hz0r0hXM9GzSAUIRhBEY/Nk0vUH/+eZjkkxO4EHP4l18Fojg=
=9+rm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.