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#20285: 25.0.50; blink-cursor-mode sometimes stops blinking Date: Thu, 09 Apr 2015 18:06:01 +0300 Message-ID: <831tjtfijq.fsf@gnu.org> References: <8761954apb.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428591992 3648 80.91.229.3 (9 Apr 2015 15:06:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 15:06:32 +0000 (UTC) Cc: 20285@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 09 17:06:20 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 1YgE27-0000ZV-IR for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 17:06:19 +0200 Original-Received: from localhost ([::1]:35183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgE26-0007Es-Ow for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 11:06:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgE1x-0007CB-3E for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:06:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgE1r-0000Zq-A7 for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:06:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgE1r-0000Zl-5o for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YgE1q-0005nP-Pp for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 11:06: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: Thu, 09 Apr 2015 15:06: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.142859195922254 (code B ref 20285); Thu, 09 Apr 2015 15:06:02 +0000 Original-Received: (at 20285) by debbugs.gnu.org; 9 Apr 2015 15:05:59 +0000 Original-Received: from localhost ([127.0.0.1]:51291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgE1m-0005ms-OX for submit@debbugs.gnu.org; Thu, 09 Apr 2015 11:05:59 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:41101) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgE1j-0005mT-Tk for 20285@debbugs.gnu.org; Thu, 09 Apr 2015 11:05:57 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NMJ00B00OEW1000@a-mtaout22.012.net.il> for 20285@debbugs.gnu.org; Thu, 09 Apr 2015 18:05:48 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMJ00BPKOLN1900@a-mtaout22.012.net.il>; Thu, 09 Apr 2015 18:05:48 +0300 (IDT) In-reply-to: <8761954apb.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:101336 Archived-At: > From: Tassilo Horn > Date: Thu, 09 Apr 2015 16:50:56 +0200 > > 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. > Then I added a (message "BLINK") as the first form in > `blink-cursor-timer-function'. And strangely, when the blinking stops > for whatever reason, I can still see BLINK [53 times] with increasing > repetition count in *Messages*. The contents of "*Messages*" is modified by Lisp code, while to see the cursor blinking you need to have a redisplay cycle. Emacs will not enter redisplay if it has something else to do, like some timer that is ripe and needs to be run. > So the problem seems to be that > > (internal-show-cursor nil (not (internal-show-cursor-p))) > > stops working for some unknown reason. No, I don't think this conclusion is correct, see above. > Then I changed my message to > > (message "BLINK: %s" (internal-show-cursor-p)) > > and now I get alternating > > BLINK: nil > BLINK: t > > sequences even though the cursor has stopped blinking already. So I > guess the problem is that no redisplay is performed which would make the > visibility toggle of the cursor effective, and thus don't notice that > the cursor should have been visible/invisible for the last half of a > second. Exactly. > Of course, that doesn't happen always and I've not been able reproduce > it using emacs -Q. I think I get this problem most frequently when > editing large LaTeX files with AUCTeX but I think I got it also in some > other buffers already, so this observation might only show that I'm > writing LaTeX documents a good bit of my time. Look at your other times, and find the one which takes too much time for doing its job.