From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56683: 29.0.50; long lines fix doesn't work correctly when lines are truncated Date: Tue, 26 Jul 2022 15:37:41 +0300 Message-ID: <83r128cane.fsf@gnu.org> References: <87h73ab8bo.fsf@gmail.com> <83zgh2kzlo.fsf@gnu.org> <83y1wlllnc.fsf@gnu.org> <83mtd1li6o.fsf@gnu.org> <835yjpl5vm.fsf@gnu.org> <83y1wljmkn.fsf@gnu.org> <83r12djjvm.fsf@gnu.org> <8a3eaeef01b9a103450a@heytings.org> <835yjkdrrk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, andreyorst@gmail.com, 56683@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 14:38:50 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oGJpp-0004lc-Tt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 14:38:50 +0200 Original-Received: from localhost ([::1]:39724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGJpm-0004ik-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 08:38:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJp5-0004gj-E5 for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGJp4-0002R3-8s for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGJp4-0001PA-24 for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 08:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56683 X-GNU-PR-Package: emacs Original-Received: via spool by 56683-submit@debbugs.gnu.org id=B56683.16588390705372 (code B ref 56683); Tue, 26 Jul 2022 12:38:02 +0000 Original-Received: (at 56683) by debbugs.gnu.org; 26 Jul 2022 12:37:50 +0000 Original-Received: from localhost ([127.0.0.1]:52529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJos-0001Oa-DP for submit@debbugs.gnu.org; Tue, 26 Jul 2022 08:37:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGJon-0001OK-Lf for 56683@debbugs.gnu.org; Tue, 26 Jul 2022 08:37:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJoi-0002KD-Cf; Tue, 26 Jul 2022 08:37:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RgDITeoPsV+xiHDg4UspS0bQUHP0LpsFLlK1rRxh18k=; b=JikRPNJbuTyl OxIxjkImDti45nz77Ya5myUSjUV7K5L70lxSz44KzJ2NxAxi3Sb9lc7iEBzSGb2RNVNmayL16afrP jquIhd4uCSUJcGXegKmAD75pIsguUEizDg+tzRnG2isCWKNR77Wu5gpbcALQfsP4tmzMJFZapnhrV Wj9jRa1jFTcT75ODzmAoDiIvA+urHHNAQF0ei1Ie7n1kDysIjIXS8axxFl1V/KuxO0UJcY/Ee03LD +VvbT8mPH9UStunB8BMuF9io4ze2uWvEWGy9kGENuGMq37fp+6Fl8C3mLaswLE7pCMyA+4krqdzgA tzwJJBBFyabVl4V4GTbAmA==; Original-Received: from [87.69.77.57] (port=2145 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGJof-00048L-FD; Tue, 26 Jul 2022 08:37:40 -0400 In-Reply-To: (message from Gregory Heytings on Tue, 26 Jul 2022 12:17:33 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237954 Archived-At: > Date: Tue, 26 Jul 2022 12:17:33 +0000 > From: Gregory Heytings > cc: gerd.moellmann@gmail.com, andreyorst@gmail.com, 56683@debbugs.gnu.org > > > Maybe optionally. Or maybe displaying a message/warning suggesting > > that. I don't like disabling truncate-lines unconditionally in such > > buffers, I prefer leaving that to the user. > > The user would still have the choice to disable the automatic disabling by > setting long-line-threshold to nil. Yes, I understand. I still don't like it very much. But if many users will complain, we might change that before Emacs 29 is released. > > And I think we should use INT_MAX instead of DISP_INFINITY, for the > > purpose of auto-hscroll. (There are several other uses of that macro, > > but I didn't yet look at all of them to see if it would make sense to > > increase DISP_INFINITY itself.) > > But you said earlier that this was undesirable because it would affect > performance? No, I said making the type of the struct member current_x a ptrdiff_t or intmax_t will affect performance. The above doesn't propose any such changes, it just enlarges the "infinity" value. With that value, lines up to (/ (expt 2 31) 20) => 107374182 (i.e. about 107 million characters) per line will still display correctly with truncate-lines when hscrolling is required.