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#59727: Problems with displaying long lines Date: Wed, 30 Nov 2022 19:55:36 +0200 Message-ID: <837czcjpif.fsf@gnu.org> References: <86zgc8e3nm.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27105"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59727@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 18:57:17 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 1p0RKf-0006ll-Fl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 18:57:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0RKT-0006lC-1E; Wed, 30 Nov 2022 12:57:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0RKR-0006kq-SJ for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 12:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0RKQ-0006Av-HP for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 12:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0RKQ-0001ap-Da for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 12:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59727 X-GNU-PR-Package: emacs Original-Received: via spool by 59727-submit@debbugs.gnu.org id=B59727.16698309766093 (code B ref 59727); Wed, 30 Nov 2022 17:57:02 +0000 Original-Received: (at 59727) by debbugs.gnu.org; 30 Nov 2022 17:56:16 +0000 Original-Received: from localhost ([127.0.0.1]:34163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0RJf-0001aD-T8 for submit@debbugs.gnu.org; Wed, 30 Nov 2022 12:56:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0RJc-0001a6-HY for 59727@debbugs.gnu.org; Wed, 30 Nov 2022 12:56:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0RJW-000669-UF; Wed, 30 Nov 2022 12:56:06 -0500 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=T+ZQV6+/dXDnsTgXIfuLNrj4HnoZ7rjofdG1oEd1TzE=; b=ciWWa/tYOOaW jCiLFYn4hJ/ViRGQ+/11vZtBTb+jnC4o47NtjrQ8OXrDWRn/tMXoVxdxCas7Bo8jN6RPJxmqwOJEz fSUTlUU9cjMwPg6lnrhDnFcudJ4YPRwis2Q93R7JGU4vS2MmbupOPpv5ew+fWyVfD+UUOuoyDK5MX EKmTxSVqLeMjewCc2NGkfrey3X+EkFPqyHsUGHkGDQ70LhCZRKwiMrufflApindJAdfxG9U80VuD+ LUsz6jokP0IPgy0/HDlJkNWkXZ5tXnS9ubYAt/cQBgvXLoWqa4pSp3bEhDr+htT1M31orxXmHHug7 tC+SmTnDiaAFNIIz2MLscA==; Original-Received: from [87.69.77.57] (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 1p0RJW-0005il-Dj; Wed, 30 Nov 2022 12:56:06 -0500 In-Reply-To: <86zgc8e3nm.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 30 Nov 2022 19:46:37 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249539 Archived-At: > From: Juri Linkov > Date: Wed, 30 Nov 2022 19:46:37 +0200 > > [A new bug report from bug#56682] > > >> 1. after 'M-g TAB' (move-to-column) to 214748364 or more, > >> the display is not updated anymore: moving point to the left > >> from this position shows the cursor, moving point to the right > >> has no visible effect. Is it a hard limit in the display engine? > >> Its hex value is #xccccccc. > > > > Sounds like a possible bug. Does point move? What does "C-x =" say about > > point if you move beyond column 214748364? > > Point moves correctly: OK, then the new shortcuts in Emacs 29 for moving by columns in very long and truncated lines do work reasonably. > but the cursor motion is not visible. > > > If you window is auto-hscrolled as result, then there is indeed hard limit: > > the X coordinate of a screen line is an 'int', so MAX_INT divided by the > > pixel-width of your default font is as far as we can go. > > Maybe this limitation of auto-hscrolling should be documented? We could document them, indeed. But where? maybe in PROBLEMS? > >> 2. after starting Isearch at a large column number, > >> Emacs hangs up indefinitely, e.g. with > >> 'M-g TAB 10000000 RET C-s' then even C-g doesn't get out. > >> Debugging shows that the problem is in 'isearch-update' > >> where the call to 'pos-visible-in-window-group-p' doesn't return. > >> When this call is removed, the search is instantaneous. > >> (Optimizing lazy-highlight is a separate problem in bug#56815.) > > > > I thought we agreed that calling pos-visible-in-window-p is not a good idea > > in this situation, since it will always think any position is visible? > > Does pos-visible-in-window-p fail only on long lines? Not long, truncated ones. It doesn't understand that positions that are to the left or to the right of the viewport are not "visible".