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#14582: 24.3.50.1; Strange overlay behavior, when window-start is inside an overlay. Date: Fri, 04 Feb 2022 15:56:29 +0200 Message-ID: <83k0ea3fci.fsf@gnu.org> References: <83y5ajmcwk.fsf@gnu.org> <83sj0rmat2.fsf@gnu.org> <83r4gbm991.fsf@gnu.org> <87czk87vmo.fsf@gnus.org> <87k0egwxk6.fsf@web.de> <83k0eg7y23.fsf@gnu.org> <87sft37nmo.fsf@web.de> <83a6fb90zy.fsf@gnu.org> <87h79j2srb.fsf@web.de> <83pmo678o1.fsf@gnu.org> <87iltynkbg.fsf@web.de> <83h79i6iw6.fsf@gnu.org> <878rut6hlq.fsf@web.de> <83czk578m0.fsf@gnu.org> <837dab4zmm.fsf@gnu.org> <875ypvcsyf.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37184"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, esabof@gmail.com, 14582@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 15:02:52 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 1nFzAq-0009U9-IR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 15:02:52 +0100 Original-Received: from localhost ([::1]:46208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFzAp-0005uA-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 09:02:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFz5C-0002Ak-FF for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFz5C-0003vI-4n for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFz5C-0006Hs-4Q for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08: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: Fri, 04 Feb 2022 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 14582-submit@debbugs.gnu.org id=B14582.164398299624123 (code B ref 14582); Fri, 04 Feb 2022 13:57:02 +0000 Original-Received: (at 14582) by debbugs.gnu.org; 4 Feb 2022 13:56:36 +0000 Original-Received: from localhost ([127.0.0.1]:59087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFz4m-0006H0-AU for submit@debbugs.gnu.org; Fri, 04 Feb 2022 08:56:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFz4k-0006Go-F0 for 14582@debbugs.gnu.org; Fri, 04 Feb 2022 08:56:34 -0500 Original-Received: from [2001:470:142:3::e] (port=46056 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFz4Y-0003mY-TT; Fri, 04 Feb 2022 08:56:28 -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=ODc1p0d6ubFvkiy2kNteKDOhTi83zCjRPwYVbCOGLqg=; b=rbrnTmUecWA2 7e9Bx43WhCBRaAbJTWkj+risEswoP4jguI3v9zw1scOHlVErxEV2wFSnsZHE3HklefyCCeyCVTWvW 1jI2a/hbWQ5ewYhiDKyO7KyXkuSrtCegId52+xm6pXbXn2vxKA7VDLyjaROOHIjq3V39qtTJnNyFY bzHrBy94nstVUkFykGHuMJU4MTfeMV21+I/6pJiAf/QcdeaUhLr1Q4eT/nO95xa+iBDIq36W+cY8Z iyg55yjsu3HK4Lff1bpU37AMAMHBZoTAdwTpsDz9K5jFnmFwhFd56qcJCwd9EkGj8S3P9lL/sitDK TV5q3GAkpcnet+ZGj7Rhuw==; Original-Received: from [87.69.77.57] (port=2626 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 1nFz4Y-0000Fo-7o; Fri, 04 Feb 2022 08:56:22 -0500 In-Reply-To: <875ypvcsyf.fsf@web.de> (message from Michael Heerdegen on Fri, 04 Feb 2022 02:37:44 +0100) 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:225991 Archived-At: > From: Michael Heerdegen > Cc: larsi@gnus.org, esabof@gmail.com, 14582@debbugs.gnu.org > Date: Fri, 04 Feb 2022 02:37:44 +0100 > > I played shortly with the new option enabled. I didn't experience this > issue, but in some situations redisplay seems to infloop. Seems that > happens when the first line is wrapped - at least I didn't see the same > problem without wrapped lines. Here is a reproducer for emacs -Q (just > eval with M-:): > > #+begin_src emacs-lisp > (progn > (dotimes (_ 100) (insert "\ > \(defun foooooooooo (long-arg another-long-arg an-even-very-long-arg \ > and-one-more-arg) > 1 > 2)\n")) > (setq make-window-start-visible t) > (goto-char (point-max)) > (sit-for 1) > (scroll-down) > (sit-for 1) > (hs-minor-mode) > (hs-hide-all)) > #+end_src Thanks, should be fixed now. > BTW, I wondered - do we also have to care about window-end - or can > the thing this report is about only happen for window-start? window-end point is determined as side effect of successful complete redisplay of a window, and cannot be determined before redisplay is complete. The window-end point isn't necessarily at the end of some physical line, and it is by definition at the end of a visual line. So I don't see why would we need to care about something similar happening at the window's end.