From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20607: 24.5; Problem with overlays at same position but in different windows Date: Tue, 19 May 2015 18:43:04 +0300 Message-ID: <83egmcefp3.fsf@gnu.org> References: <87siatsps9.fsf@gmail.com> <83pp5xempd.fsf@gnu.org> <83oalhem0j.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432050317 17451 80.91.229.3 (19 May 2015 15:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2015 15:45:17 +0000 (UTC) Cc: 20607-done@debbugs.gnu.org To: ohwoeowho@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 19 17:45:08 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yujha-0007Af-63 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2015 17:45:06 +0200 Original-Received: from localhost ([::1]:47094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YujhZ-0004nX-Jw for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2015 11:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yujge-0003KH-G4 for bug-gnu-emacs@gnu.org; Tue, 19 May 2015 11:44:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YujgZ-0006pP-6h for bug-gnu-emacs@gnu.org; Tue, 19 May 2015 11:44:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YujgZ-0006pL-4l for bug-gnu-emacs@gnu.org; Tue, 19 May 2015 11:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YujgY-0003g3-Sw for bug-gnu-emacs@gnu.org; Tue, 19 May 2015 11:44:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 May 2015 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20607@debbugs.gnu.org, eliz@gnu.org, ohwoeowho@gmail.com Original-Received: via spool by 20607-done@debbugs.gnu.org id=D20607.143205020814075 (code D ref 20607); Tue, 19 May 2015 15:44:02 +0000 Original-Received: (at 20607-done) by debbugs.gnu.org; 19 May 2015 15:43:28 +0000 Original-Received: from localhost ([127.0.0.1]:50291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yujfw-0003et-HW for submit@debbugs.gnu.org; Tue, 19 May 2015 11:43:28 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:44267) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yujfr-0003ed-9Y for 20607-done@debbugs.gnu.org; Tue, 19 May 2015 11:43:23 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NOL00D00SK6R500@mtaout25.012.net.il> for 20607-done@debbugs.gnu.org; Tue, 19 May 2015 18:39:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOL00EQFST15C00@mtaout25.012.net.il>; Tue, 19 May 2015 18:39:01 +0300 (IDT) In-reply-to: <83oalhem0j.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102953 Archived-At: > Date: Mon, 18 May 2015 22:14:20 +0300 > From: Eli Zaretskii > Cc: 20607@debbugs.gnu.org > > > > Suppose I have two windows, WND1 and WND2, both displaying the same > > > buffer. In WND1, there's an overlay from 1 to 2 with window property > > > WND1 and display "ab". In WND2, there's an overlay from 1 to 3 with > > > window property WND2 and display "abc". > > > > > > Instead of the expected, I see "ab" in WND1, but "abcabc" in WND2. When > > > I `move-overlay' in the first window to 1-3, the glitch disappears, but > > > I actually want the overlay to be 1-2, not 1-3. If I have to make it > > > 1-3, I'd have to modify the display as well to include one more > > > character from the buffer. I think it's better to fix the overlay logic > > > rather than go for this work-around. > > > > Please show the code to reproduce this. > > Actually, you need not bother: I see it here. > > For now, all I can say is that this is very old: Emacs 22 already > behaves like that. I think the problem is that the display engine > bumps into the same overlay twice while walking the buffer, but I need > to take a closer look to be sure. Fixed in commit 18338b1, which also includes a fix to a related subtle problem with cursor movement in this case (you couldn't put point at position 2 in WND1 window: it would be "adjusted" to position 3).