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#17588: 24.3.91; mouse-face glitchy Date: Sun, 25 May 2014 22:25:31 +0300 Message-ID: <83a9a5k6dw.fsf@gnu.org> References: <87lhtpwuh5@ristopher.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401045991 11807 80.91.229.3 (25 May 2014 19:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 19:26:31 +0000 (UTC) Cc: 17588@debbugs.gnu.org To: Christopher Schmidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 25 21:26:22 2014 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 1Woe3p-00059w-0k for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 May 2014 21:26:21 +0200 Original-Received: from localhost ([::1]:52856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe3o-0002vm-IU for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 May 2014 15:26:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe3d-0002vU-TB for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:26:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Woe3X-000273-5p for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:26:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe3X-00026z-2X for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Woe3W-0001Ny-Hp for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:26: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: Sun, 25 May 2014 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17588 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.14010459585317 (code B ref -1); Sun, 25 May 2014 19:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2014 19:25:58 +0000 Original-Received: from localhost ([127.0.0.1]:59897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Woe3R-0001Ng-Ia for submit@debbugs.gnu.org; Sun, 25 May 2014 15:25:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34785) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Woe3O-0001NS-Ns for submit@debbugs.gnu.org; Sun, 25 May 2014 15:25:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Woe3C-00025e-PK for submit@debbugs.gnu.org; Sun, 25 May 2014 15:25:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe3C-00025a-Ks for submit@debbugs.gnu.org; Sun, 25 May 2014 15:25:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe36-0002nC-NR for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:25:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Woe30-000245-Jh for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:25:36 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:56589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woe30-00022w-CU for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 15:25:30 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N6500G009PJ1I00@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Sun, 25 May 2014 22:25:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6500FDQ9YGS760@a-mtaout20.012.net.il>; Sun, 25 May 2014 22:25:29 +0300 (IDT) In-reply-to: <87lhtpwuh5@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:89486 Archived-At: > From: Christopher Schmidt > Date: Sun, 25 May 2014 15:04:18 -0400 (EDT) > > emacs -q > M-: (run-at-time nil 0.01 > (lambda () > (with-current-buffer (get-buffer-create "rms") > (with-silent-modifications > (dotimes (_ 10) > (insert (if (= (random 2) 1) "gpl" "fsf") "\n"))) > (when (> (- (point-max) (point-min)) 100) > (delete-region (point-min) (+ (point-min) 100)))))) RET > C-x 2 > C-x 3 > C-x b rms RET > C-x o > C-x b rms2 RET > C-x o > C-x b rms2 RET > M-: (dotimes (i 1000) > (insert (propertize (format "%3d%3d%3d" i i i) > 'mouse-face 'highlight) > "\n")) RET > # Move your mouse pointer around within the rms2 windows and the > # modeline of the rms window. > > I see two glitches with regard to mouse-face highlighting. Either there > is no highlighting at all or the font does not switch back to the > regular one after leaving the connected highlight region. > > This recipe is not exactly reliable. It usually takes up to 20 seconds > of mouse movement to trigger the issue here. Some scrolling helps. > > I realise my recipe puts a lot of pressure on the display engine. When > reducing the timer's REPEAT value, the issue does not vanish but is > harder to reproduce. My real use-case, which provokes this issue after > a few minutes, is a process filter which updates the buffer of a window > exactly once a second. > > When applying this recipe to 24.3 on the same system using the same > libraries for building the binary, there are some glitches. Most > notably the mouse face of mode-line-buffer-identification is not reset > reliably. Yet 24.3.91 is a lot worse than 24.3. IMO this is a > regression. I see no problems with this recipe on my system. Maybe my machine is faster than yours. In general, each redisplay requires removing the mouse-highlight and then re-applying it, so if Emacs cannot keep up, you might see annoyingly visible flickering or even such extreme effects as you describe. There's nothing new here. May I ask what is the real-life situation where you need to refresh the display at such high frequency?