From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17392: 24.3.90; cursor blinks faster and faster Date: Mon, 05 May 2014 08:25:48 -0400 Message-ID: References: <87r44b1vrh.fsf@web.de> <8738gq67av.fsf@web.de> <87sioqcx7n.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399414080 32501 80.91.229.3 (6 May 2014 22:08:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 22:08:00 +0000 (UTC) Cc: 17392@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 07 00:07:52 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 1WhnSI-0002FQ-IJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 May 2014 00:03:18 +0200 Original-Received: from localhost ([::1]:57161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhHyO-0001xI-PM for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 May 2014 08:26:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhHyE-0001x4-C3 for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 08:26:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhHy6-0006c2-SG for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 08:26:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhHy6-0006bw-Pc for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 08:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WhHy5-00032Q-QZ for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 08:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 May 2014 12:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17392-submit@debbugs.gnu.org id=B17392.139929276011670 (code B ref 17392); Mon, 05 May 2014 12:26:01 +0000 Original-Received: (at 17392) by debbugs.gnu.org; 5 May 2014 12:26:00 +0000 Original-Received: from localhost ([127.0.0.1]:51367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhHy3-000329-UG for submit@debbugs.gnu.org; Mon, 05 May 2014 08:26:00 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:41077) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhHxy-00031q-FE for 17392@debbugs.gnu.org; Mon, 05 May 2014 08:25:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd/4Y/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgEnLyMFCws0EhQYDSQxh1MI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArYGAIDvNVNLd/4Y/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgEnLyMFCws0EhQYDSQxh1MI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="61527262" Original-Received: from 75-119-254-24.dsl.teksavvy.com (HELO pastel.home) ([75.119.254.24]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 May 2014 08:25:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3AA9F600D1; Mon, 5 May 2014 08:25:48 -0400 (EDT) In-Reply-To: <87sioqcx7n.fsf@web.de> (Michael Heerdegen's message of "Sun, 04 May 2014 00:29:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:88695 Archived-At: > I think I found the culprit. When changing the selected window (or > frame), I arrange to call something like this: > --8<---------------cut here---------------start------------->8--- > (defun my-flash-window () > (interactive) > "Flash the selected window." > (unless (minibufferp) > ... > (run-with-idle-timer > 0.001 nil > (lambda (win make-fringe-string ovl1 ovl2) > (overlay-put ovl1 'window win) > (overlay-put ovl2 'window win) > (overlay-put ovl1 'before-string (funcall make-fringe-string nil)) > (overlay-put ovl2 'before-string (funcall make-fringe-string t)) > (unless (window-minibuffer-p) (my-display-frame-list)) > (sit-for 1.5) > (delete-overlay ovl1) > (delete-overlay ovl2)) > win make-fringe-string ovl1 ovl2))) > --8<---------------cut here---------------end--------------->8--- > to get some visual feedback. The sit-for inside the timer function > seems to trigger the problem. This code is not kosher, I wanted to > rewrite it anyway. Now that I've done that (by just using a second timer), > this seems to fixed. > If there are no objections, I'll just close this report. It still seems to point to an underlying bug in timer.el, even if it is only triggered by "not kosher" code. Would it be possible for you to try and extract a reproducible recipe from your (old) code? Stefan