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: Thu, 03 Feb 2022 19:40:49 +0200 Message-ID: <837dab4zmm.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21674"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, esabof@gmail.com, 14582@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 03 19:04:33 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 1nFgTA-0005Nb-14 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 19:04:32 +0100 Original-Received: from localhost ([::1]:53368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFgT8-0001Ql-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 13:04:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFg6R-0004f5-Du for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 12:41:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFg6Q-00046R-GY for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 12:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFg6Q-0004m5-9u for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 12:41: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: Thu, 03 Feb 2022 17:41: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.164391005718334 (code B ref 14582); Thu, 03 Feb 2022 17:41:02 +0000 Original-Received: (at 14582) by debbugs.gnu.org; 3 Feb 2022 17:40:57 +0000 Original-Received: from localhost ([127.0.0.1]:57650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFg6K-0004le-NF for submit@debbugs.gnu.org; Thu, 03 Feb 2022 12:40:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFg6H-0004lL-2J for 14582@debbugs.gnu.org; Thu, 03 Feb 2022 12:40:54 -0500 Original-Received: from [2001:470:142:3::e] (port=35898 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 1nFg6B-00045X-AH; Thu, 03 Feb 2022 12:40:47 -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=uBLKl2PfB6YBoNWIugZJMO8/v2n+HcykQIyiqBUTTWc=; b=M16J/40kdGTf URAuXARVpUAtv+zARi1/vHcqkOIx2VH1J3PagEPpRqAuedTQtYWahUw9EG1lZ9l5bU9fGnwBPFSNR cOcPxJffVDLImIHVC7mf2nZf8rTtGpIc3RT2jmp8RueW1oNabi7tZk0zV/Pa/jrQdJb3skbg9zO/r IJyz6k1cDIGnl+qaYQj6iaQsYuKE1WYrYh1CJVdSsQIuNYf9tyWad31jwCD6PwYE2/g318e5QODbj R7X5xnmzCs8nBjRmGMLOwvgLOj5Wi/XQ2irwCZ9uKy0lKZ0Iv9j9jzCkM+hq4kzPT2dxdwUB5+SPX c4qJWuDN8ePzaSv0/MgeOw==; Original-Received: from [87.69.77.57] (port=3438 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 1nFg6A-0007Fo-9M; Thu, 03 Feb 2022 12:40:47 -0500 In-Reply-To: <83czk578m0.fsf@gnu.org> (message from Eli Zaretskii on Wed, 02 Feb 2022 14:31:35 +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" Xref: news.gmane.io gmane.emacs.bugs:225903 Archived-At: > Date: Wed, 02 Feb 2022 14:31:35 +0200 > From: Eli Zaretskii > Cc: larsi@gnus.org, esabof@gmail.com, 14582@debbugs.gnu.org > > > From: Michael Heerdegen > > Cc: larsi@gnus.org, esabof@gmail.com, 14582@debbugs.gnu.org > > Date: Wed, 02 Feb 2022 05:02:41 +0100 > > > > Is there a third alternative, a hook or something that could be used, to > > perform this task automatically? > > It cannot be a hook, because from the display engine POV nothing > happened that could trigger a hook. The visible contents of the > window is different, that's all. > > So it shouldn't be a hook, it should be a buffer-local variable that > would change how redisplay behaves in these cases. I will see what > can be done about it. I installed a change along these lines. A buffer that sets the new variable make-window-start-visible non-nil should force redisplay to reject a window-start point that is in invisible text or is covered by a "replacing" 'display' property (which also makes window-start invisible), and choose a different starting point. Please test.