From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: What's the line length limit in the Emacs codebase? Date: Sat, 26 Dec 2020 13:21:25 +0100 Message-ID: <20201226122125.GA16399@tuxteam.de> References: <83wnx8pm0e.fsf@gnu.org> <20201225203227.GA10689@tuxteam.de> <87o8igzwaw.fsf@gmx.de> <87eejczua4.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Michael Albinus , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 26 13:22:31 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kt8ac-0005gV-R5 for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Dec 2020 13:22:30 +0100 Original-Received: from localhost ([::1]:49768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt8aa-0006pS-Ry for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Dec 2020 07:22:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt8Zk-0006PJ-Tg for emacs-devel@gnu.org; Sat, 26 Dec 2020 07:21:37 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:33786) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kt8Zf-0007mD-LW for emacs-devel@gnu.org; Sat, 26 Dec 2020 07:21:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=yqg+z4leTA4zERTvN0yo1xtm80xj9ZLudeLjYnZuxRU=; b=QOJefBGNL0VZQNetgGlcLcYMpRaISEo017oB9wSMFtclKH1qFsCAbsbsGjpTYaa3k76LfZbiTlNsAdceYL8gFs8NujUeRQkUFlpMmhmskXs1MSZfIgkzOw2AeTAhwRQIM5OGt+IiCfrMLLy0E/SqmYkjF6EtgWSXDhkzd1j3sCgTxNhW+JnAPe/IaUMvGB7frryoKxM4jCuPZQeV9FyCyi6RuVE8QvYQK0yaD4X0xV8nXFb0S3f/Ae9odO9EcH5uFBU4KBxy9SUTCaBfIREaPs/e+FDhGQJ0PQieqs230tpqXlyNmidmgq1/4Y1ATo0J3YR0/uQ9rKAZQxvhn1BCUA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kt8ZZ-0004UF-5I; Sat, 26 Dec 2020 13:21:25 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261851 Archived-At: --J/dobhs11T7y2rNN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 26, 2020 at 06:36:29PM +0700, Yuri Khan wrote: > On Sat, 26 Dec 2020 at 18:22, Michael Albinus wr= ote: [break long strings to honour max source line width] > > > I have actually found myself trying to grep for an error message ang > > > failing to find it in code at first try because it was line-broken at > > > a non-obvious point. > > > > Yes, it is always a trade-off. However, I'm failing to find error > > messages in the code much more often because they are produced by > > format, which could be banned for the same reason. >=20 > When you see an error message, most of the time, it=E2=80=99s easy to see > which parts are constant text and which are substituted variable text. > Whereas line breaks could be anywhere. >=20 > When I break string literals to fit line length limits, I go for any > embedded \n first, then sentence boundaries [...] That' similar to what I do. Suffice it to say that these are often moments of great agony :) Cheers - t --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/nKsUACgkQBcgs9XrR2kaTggCbBBFCTLeaMOLO2TlnWp28qlZN Ih4An0KdTkOxpjW42PIzn3Eu+DU+B7VB =DXwc -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--