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#14744: 24.3.50; Flickering mouse-face on process output Date: Sat, 29 Jun 2013 17:45:14 +0300 Message-ID: <838v1tdlhh.fsf@gnu.org> References: <87r4flzshg@ch.ristopher.com> <83k3lde4v7.fsf@gnu.org> <87ip0xw8nw@ch.ristopher.com> <83d2r5dtzk.fsf@gnu.org> <87txkhf52j@ch.ristopher.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372517169 17283 80.91.229.3 (29 Jun 2013 14:46:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Jun 2013 14:46:09 +0000 (UTC) Cc: 14744@debbugs.gnu.org To: Christopher Schmidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 29 16:46:09 2013 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 1UswPg-0007Dz-6e for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2013 16:46:08 +0200 Original-Received: from localhost ([::1]:38990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UswPf-0005GH-Ok for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2013 10:46:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UswPc-0005G0-Ay for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UswPb-0004b3-8n for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:46:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UswPb-0004az-5R for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UswPa-0003Jo-Gj for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2013 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137251713312708 (code B ref -1); Sat, 29 Jun 2013 14:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jun 2013 14:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:48377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UswP5-0003Is-Sy for submit@debbugs.gnu.org; Sat, 29 Jun 2013 10:45:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40501) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UswP2-0003Ie-Jf for submit@debbugs.gnu.org; Sat, 29 Jun 2013 10:45:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UswOw-0004So-5T for submit@debbugs.gnu.org; Sat, 29 Jun 2013 10:45:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UswOw-0004Sk-2w for submit@debbugs.gnu.org; Sat, 29 Jun 2013 10:45:22 -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 1UswOu-0005EB-H4 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:45:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UswOq-0004RS-Gj for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:45:20 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UswOq-0004R5-8f for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 10:45:16 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MP500A00SYXE900@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2013 17:45:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP500A2GSZD1Y80@a-mtaout20.012.net.il>; Sat, 29 Jun 2013 17:45:13 +0300 (IDT) In-reply-to: <87txkhf52j@ch.ristopher.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:75717 Archived-At: > From: Christopher Schmidt > Date: Sat, 29 Jun 2013 13:56:53 +0100 (BST) > > Eli Zaretskii writes: > > For the record, what is the real-life use case where this matters? > > The one Stephen described in <8761wxfbm8.fsf@rosalinde.fritz.box>. Thanks. For the record, here's what happens: . comint-output-filter moves the comint-last-prompt-overlay overlay . This eventually calls modify_overlay, which has this code: /* If BUF is visible, consider updating the display if ... */ if (buffer_window_count (buf) > 0) { /* ... it's visible in other window than selected, */ if (buf != XBUFFER (XWINDOW (selected_window)->contents)) windows_or_buffers_changed = 1; /* ... or if we modify an overlay at the end of the buffer and so we cannot be sure that window end is still valid. */ else if (end >= ZV && start <= ZV) windows_or_buffers_changed = 1; } In our case, the overlay is at the end of the buffer, so the last 'else if' clause fires, and sets windows_or_buffers_changed to a non-zero value. . When redisplay sees a non-zero value in windows_or_buffers_changed, it forces a thorough redisplay of all the windows, because having the window end invalid generally means the window configuration might have changed. I guess one way of fixing this problem would be to modify comint.el not to use overlays for this purpose.