From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: Nano: disable hard wrapping by default Date: Wed, 07 Nov 2018 13:38:35 +0800 Message-ID: <87h8gtv44k.fsf@gmail.com> References: <87pnviypjz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKGYP-0005qW-2e for guix-devel@gnu.org; Wed, 07 Nov 2018 00:39:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKGYL-0001PV-KL for guix-devel@gnu.org; Wed, 07 Nov 2018 00:39:00 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:43317) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKGYF-0001Kh-DV for guix-devel@gnu.org; Wed, 07 Nov 2018 00:38:53 -0500 Received: by mail-pg1-x52b.google.com with SMTP id n10-v6so6861191pgv.10 for ; Tue, 06 Nov 2018 21:38:48 -0800 (PST) In-Reply-To: (swedebugia's message of "Tue, 6 Nov 2018 22:57:39 +0100") 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: swedebugia Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable swedebugia writes: [...] > > That is what soft wrapping is for (soft wrap =3D on screen only, hard > wrap =3D break lines with \n to fit on screen whatever the cost). > > Soft wrapping is supported with: --softwrap > > Arch/Antergos has this: > > $ nano -V > =C2=A0GNU nano, version 3.1 > =C2=A0Kompileringsflaggor: --disable-wrapping-as-root --enable-utf8 > > Gentoo warns in their wiki but compile as we do now with > utf8. https://packages.gentoo.org/packages/app-editors/nano > Good to learn something new! For editing files, I prefer soft wrapping because of the reason mentioned before but not hard wrapping because of the reason mentioned by Gentoo: Important 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.=20 Although I do use hard wrapping when writing emails and git commit messages in Emacs (in different modes). > Nixpkgs uses no arguments > https://github.com/NixOS/nixpkgs/blob/1c2d575205f7aa3fc37d64d0606e3fd33de= 08d74/pkgs/applications/editors/nano/default.nix > > Dunno with other distributions. For Debian, 'nano -V' displays: alexvong1995@debian:~$ nano -V GNU nano=EF=BC=8C=E7=89=88=E6=9C=AC 3.1 (C) 1999-2011, 2013-2018 Free Software Foundation, Inc. (C) 2014-2018 Nano =E8=B2=A2=E7=8D=BB=E8=80=85 =E9=9B=BB=E5=AD=90=E9=83=B5=E4=BB=B6: nano@nano-editor.org =E7=B6=B2=E9=A0= =81: https://nano-editor.org/ =E7=B7=A8=E8=AD=AF=E9=81=B8=E9=A0=85: --disable-libmagic --disable-wrappin= g-as-root --enable-utf8 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).=20 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCW+J6WwAKCRBh71Au9gJS 8nTcAP4mZrcqfQhA5Fmn7p4Pe4PCVKg/J4U3P/A5h7JYZwY0eQD/XMINd8ufXaT5 OTFljug9F2VVWo/Sj0gEAmPuxlGb9gA= =YwNG -----END PGP SIGNATURE----- --=-=-=--