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: Mon, 18 May 2015 22:14:20 +0300 Message-ID: <83oalhem0j.fsf@gnu.org> References: <87siatsps9.fsf@gmail.com> <83pp5xempd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1431976524 21335 80.91.229.3 (18 May 2015 19:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2015 19:15:24 +0000 (UTC) Cc: 20607@debbugs.gnu.org To: ohwoeowho@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 18 21:15:14 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 1YuQVN-0007rO-Nt for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2015 21:15:13 +0200 Original-Received: from localhost ([::1]:42633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQVM-0001PM-H4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2015 15:15:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQVI-0001NY-Lx for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 15:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuQVD-0008AS-ME for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 15:15:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQVD-0008A7-Je for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 15:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YuQVC-0006pT-Sc for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 15:15:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2015 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20607-submit@debbugs.gnu.org id=B20607.143197648126206 (code B ref 20607); Mon, 18 May 2015 19:15:02 +0000 Original-Received: (at 20607) by debbugs.gnu.org; 18 May 2015 19:14:41 +0000 Original-Received: from localhost ([127.0.0.1]:49428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuQUq-0006oc-Db for submit@debbugs.gnu.org; Mon, 18 May 2015 15:14:40 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42463) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuQUn-0006oJ-Hg for 20607@debbugs.gnu.org; Mon, 18 May 2015 15:14:38 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NOK00M007YC4400@a-mtaout22.012.net.il> for 20607@debbugs.gnu.org; Mon, 18 May 2015 22:14:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOK00LI1846PW90@a-mtaout22.012.net.il>; Mon, 18 May 2015 22:14:31 +0300 (IDT) In-reply-to: <83pp5xempd.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:102936 Archived-At: > Date: Mon, 18 May 2015 21:59:26 +0300 > From: Eli Zaretskii > Cc: 20607@debbugs.gnu.org > > > From: Oleh Krehel > > Date: Mon, 18 May 2015 20:29:10 +0200 > > > > > > 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.