From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#20285: 25.0.50; blink-cursor-mode sometimes stops blinking Date: Fri, 10 Apr 2015 09:46:46 +0200 Message-ID: <87wq1kmnmh.fsf@gnu.org> References: <8761954apb.fsf@gnu.org> <831tjtfijq.fsf@gnu.org> <83zj6he14h.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1428652055 8345 80.91.229.3 (10 Apr 2015 07:47:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2015 07:47:35 +0000 (UTC) Cc: 20285@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 10 09:47:24 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 1YgTeh-0004gD-O8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Apr 2015 09:47:11 +0200 Original-Received: from localhost ([::1]:37902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTeg-0001IJ-TD for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Apr 2015 03:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTec-0001Fh-UU for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 03:47:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgTeY-0005aO-Sr for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 03:47:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTeY-0005aK-Pb for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 03:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YgTeY-0004wA-DR for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 03:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Apr 2015 07:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20285 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20285-submit@debbugs.gnu.org id=B20285.142865201318957 (code B ref 20285); Fri, 10 Apr 2015 07:47:02 +0000 Original-Received: (at 20285) by debbugs.gnu.org; 10 Apr 2015 07:46:53 +0000 Original-Received: from localhost ([127.0.0.1]:51769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgTeO-0004vg-UY for submit@debbugs.gnu.org; Fri, 10 Apr 2015 03:46:53 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50444) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgTeN-0004vV-73 for 20285@debbugs.gnu.org; Fri, 10 Apr 2015 03:46:51 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5CED1208A1 for <20285@debbugs.gnu.org>; Fri, 10 Apr 2015 03:46:46 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 10 Apr 2015 03:46:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=bF1UPtOQ/p/TT6C I0+PBTxboSU8=; b=C4GI67qvM8HDGAsRs0mRMg/Gai3agVlHj5UJi+eaO564p3r tmpwuQaOzCQIkkOK4sYF4rTAQY02Gy3z1s2Ct+MQgHX2hRtegStCaJvRq9xrhp7S TpNJYT/gnApOTLNhEvyESInADcCN6sdcT1ss7UWMpZ7wo+iqcO5A9fMvNHdY= X-Sasl-enc: WXujU6RZfc8M9VQ/33ezyDOXQaSJPGMyCPHT45WT2B/t 1428652009 Original-Received: from thinkpad-t440p (unknown [2.163.240.161]) by mail.messagingengine.com (Postfix) with ESMTPA id 71E95C00015; Fri, 10 Apr 2015 03:46:49 -0400 (EDT) In-Reply-To: <83zj6he14h.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Apr 2015 19:07:42 +0300") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.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:101362 Archived-At: Eli Zaretskii writes: >> > Sometimes it occurs to me that `blink-cursor-mode' stops blinking the >> > cursor for some time. That temporary stop might also occur in the >> > off-phase so that there's no visible cursor anymore. As soon as I press >> > some key, the blinking starts again. But just now in some specific >> > buffer, it'll blink twice and then disappear until I press a key again. >> >> It generally means that some other time, probably an idle time, takes >> more than 0.5 sec to do its job. ^^^^ ^^^^ > > Sorry, "timer". > >> Look at your other times, and find the one which takes too much time >> for doing its job. ^^^^^ > > "timers" Yes, got that. There are quite a few timers in `timer-list' and `timer-idle-list'. ,----[ C-h v timer-idle-list RET ] | timer-idle-list is a variable defined in `C source code'. | Its value is shown below. | | Documentation: | List of active idle-time timers in order of increasing time. | | Value: ([t 0 0 125000 t show-paren-function nil idle 0] | [t 0 0 500000 t jit-lock-context-fontify nil idle 0] | [t 0 0 500000 t | #[0 "\204 \205\n\303>?\205\304 \207" | [eldoc-mode global-eldoc-mode eldoc-documentation-function | (nil ignore) | eldoc-print-current-symbol-info] | 2] | nil idle 0] | [t 0 0 500000 t highlight-symbol-temp-highlight nil idle 0] | [t 0 0 500000 0.5 blink-cursor-start nil idle 0] | [nil 0 1 199999 t reftex-view-crossref-when-idle nil idle 999999] | [nil 0 2 0 t adict-guess-dictionary-maybe | (#) | idle 0]) `---- Is it documented somewhere what the individual entries of these vectors mean? The fifth entry seems to be the SECS or REPEAT argument given to `run-with-{,idle-}timer', the sixth entry is the function to run, and the seventh is the function's args, but what are the other entries? But anyway, I think even when there's some timer that takes too long, the cursor should never disappear completely. So maybe a redisplay should be forced whenever the cursor is set to visible again and there has been a redisplay when the cursor has been invisible. That would ensure that if blinking stops due to a timer or processing of input, at least it stops in the visible state at the cost of at most one redisplay which hadn't happened otherwise. Bye, Tassilo