From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#59727: Problems with displaying long lines Date: Wed, 30 Nov 2022 20:11:14 +0200 Organization: LINKOV.NET Message-ID: <86sfi0cny5.fsf@mail.linkov.net> References: <86zgc8e3nm.fsf@mail.linkov.net> <837czcjpif.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1551"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 59727@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 19:15:20 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 1p0Rc7-00007H-7p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 19:15:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0Rbu-0004Wz-5P; Wed, 30 Nov 2022 13:15:06 -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 1p0Rbr-0004WS-9C for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:15: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 1p0Rbr-0000sr-0B for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0Rbq-0001mH-F0 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 18:15: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.16698320426801 (code B ref 59727); Wed, 30 Nov 2022 18:15:02 +0000 Original-Received: (at 59727) by debbugs.gnu.org; 30 Nov 2022 18:14:02 +0000 Original-Received: from localhost ([127.0.0.1]:34258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Rar-0001lW-V9 for submit@debbugs.gnu.org; Wed, 30 Nov 2022 13:14:02 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:44411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Raq-0001lB-6o for 59727@debbugs.gnu.org; Wed, 30 Nov 2022 13:14:00 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id F29B2100002; Wed, 30 Nov 2022 18:13:50 +0000 (UTC) In-Reply-To: <837czcjpif.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Nov 2022 19:55:36 +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:249542 Archived-At: >> 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? Not sure how to document this limitation because it still works to some extent: when lines are not truncated, and point can be moved to the end of a 1 GB buffer, then after toggling line truncation while point is at the end of the buffer, cursor motion is shown correctly with auto-hscrolling near the end of the buffer. >> >> 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". I don't know how it works but the docstring of pos-visible-in-window-p says: If POS is only out of view because of horizontal scrolling, return non-nil.