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: Sat, 11 Apr 2015 10:34:23 +0300 Message-ID: <83bnivrudc.fsf@gnu.org> References: <8761954apb.fsf@gnu.org> <831tjtfijq.fsf@gnu.org> <83zj6he14h.fsf@gnu.org> <87wq1kmnmh.fsf@gnu.org> <83d23cv2hj.fsf@gnu.org> <87sic8miwb.fsf@gnu.org> <83h9sotasm.fsf@gnu.org> <877ftkm8he.fsf@gnu.org> <83a8ygt8g5.fsf@gnu.org> <87y4m0kr53.fsf@gnu.org> <878udzentr.fsf@gnu.org> <87r3rrxl8z.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428737723 29656 80.91.229.3 (11 Apr 2015 07:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2015 07:35:23 +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 Sat Apr 11 09:35:12 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 1Ygpwd-0004Nn-AN for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 09:35:11 +0200 Original-Received: from localhost ([::1]:42060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygpwc-0006y9-Ng for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 03:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgpwY-0006vh-U8 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 03:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgpwV-00074s-Lk for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 03:35:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgpwV-000746-Id for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 03:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YgpwV-0004FK-29 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 03:35:03 -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, 11 Apr 2015 07:35:03 +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.142873767216269 (code B ref 20285); Sat, 11 Apr 2015 07:35:03 +0000 Original-Received: (at 20285) by debbugs.gnu.org; 11 Apr 2015 07:34:32 +0000 Original-Received: from localhost ([127.0.0.1]:52824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ygpvz-0004EK-LT for submit@debbugs.gnu.org; Sat, 11 Apr 2015 03:34:32 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:39125) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ygpvv-0004E2-DG for 20285@debbugs.gnu.org; Sat, 11 Apr 2015 03:34:28 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMM00N00S7QPY00@mtaout24.012.net.il> for 20285@debbugs.gnu.org; Sat, 11 Apr 2015 10:25:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMM00MS2SMY7B20@mtaout24.012.net.il>; Sat, 11 Apr 2015 10:25:47 +0300 (IDT) In-reply-to: <87r3rrxl8z.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:101407 Archived-At: > From: Tassilo Horn > Cc: Eli Zaretskii , 20285@debbugs.gnu.org > Date: Sat, 11 Apr 2015 07:54:52 +0200 > > Ok, I used the following code (add-function because there's already a > pre-redisplay function which I didn't want to replace): > > --8<---------------cut here---------------start------------->8--- > (defvar th/redisplay-count 0) > > (defun th/count-redisplays (windows) > (when (or (null windows) > (eq windows t) > (memq (selected-window) windows)) > (incf th/redisplay-count))) > > (add-function :before pre-redisplay-function #'th/count-redisplays) > --8<---------------cut here---------------end--------------->8--- > > Then I switched to some large latex buffer, did M-: (setq > th/redisplay-count 0), and then started compiling that document to > generate some load. Then I waited for exactly one minute in which there > has been at least one phase of almost 10 seconds with the cursor being > invisible on the screen before getting the value of th/redisplay-count. > > And the value is seven hundred something every time I test. That's more > than 10 redisplays of the selected window per second! I didn't do > anything in that one minute so there shouldn't have been a reason for > redisplay to kick in except for the blinking cursor. And that would > suggest 120 redisplays. Can you please elaborate as to how you arrived to these numbers? I fail to follow your line of reasoning; perhaps it's too early and I don't yet have enough caffeine in my blood. E.g., how do you deduce from "seven hundred something" that there were more than 10 redisplays per second? > Of course, it's still possible that during the 10 seconds where the > cursor was invisible on the screen there hasn't been a redisplay of the > selected window, but how can I know? If your Emacs is configured with --enable-checking='yes,glyphs', then you can invoke "M-x trace-redisplay RET", and see every entry to redisplay_internal announced on stderr.