From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Nano: disable hard wrapping by default Date: Wed, 7 Nov 2018 10:19:49 +0100 Message-ID: <9d3f1901-c649-8966-ef42-30de5c5c5704@freenet.de> References: <87pnviypjz.fsf@gmail.com> <87h8gtv44k.fsf@gmail.com> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKK2R-0000uD-IU for guix-devel@gnu.org; Wed, 07 Nov 2018 04:22:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKK2I-0006CN-0x for guix-devel@gnu.org; Wed, 07 Nov 2018 04:22:13 -0500 Received: from mout3.freenet.de ([195.4.92.93]:35632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKK2H-0006BO-GO for guix-devel@gnu.org; Wed, 07 Nov 2018 04:22:05 -0500 Received: from [195.4.92.163] (helo=mjail0.freenet.de) by mout3.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1gKK2E-0007zV-5r for guix-devel@gnu.org; Wed, 07 Nov 2018 10:22:02 +0100 Received: from [::1] (port=55142 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gKK2E-0002JT-53 for guix-devel@gnu.org; Wed, 07 Nov 2018 10:22:02 +0100 Received: from sub6.freenet.de ([195.4.92.125]:59118) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gKK0A-0000Y6-P6 for guix-devel@gnu.org; Wed, 07 Nov 2018 10:19:54 +0100 Received: from p200300e4f3eeb300e03987df4c580fb3.dip0.t-ipconnect.de ([2003:e4:f3ee:b300:e039:87df:4c58:fb3]:35968) by sub6.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1gKK06-0003kd-Ms for guix-devel@gnu.org; Wed, 07 Nov 2018 10:19:54 +0100 In-Reply-To: <87h8gtv44k.fsf@gmail.com> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org On 07/11/2018 06.38, Alex Vong wrote: > To edit configuration files always pass nano the -w option. Without > the -w option long lines become wrapped lines. This creates problems > when saving because the lines are saved as wrapped lines instead of > how they were in the original file. Many time this will break > configuration files. Even though I got in the habit of always using -w back in my Gentoo days, I either never knew leaving it out would have affected more than display, or I have forgotten about it. I think this qualifies as unexpected/surprising behavior. > I think we can also go ahead with the change if many nano users think it > is a better default (even if not all distros do it). Ubuntu is also in the --disable-wrapping-as-root flag club. A potential reason against joining would be if there's a real need for the default behavior (no --disable-wrapping-as-root, no -w) and it being hard to achieve with the flag. It looks like the option to use would be: -r number, --fill=number Hard-wrap lines at column number. If this value is 0 or less, wrapping will occur at the width of the screen less number columns, allowing the wrap point to vary along with the width of the screen if the screen is resized. The default value is -8. This option conflicts with -w (--nowrap) -- the last one given takes effect. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/