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 17:45:21 +0300 Message-ID: <831tjqg1vi.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> <83bnivrudc.fsf@gnu.org> <87mw2ekhq3.fsf@gnu.org> <87r3rqq1ny.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428764239 26189 80.91.229.3 (11 Apr 2015 14:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2015 14:57:19 +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 16:57:09 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 1YgwqK-0008Vd-Qy for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 16:57:08 +0200 Original-Received: from localhost ([::1]:42929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgwqK-0004Bp-Ct for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 10:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgwqH-0004Bj-J2 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 10:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgwqC-0004Ky-HL for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 10:57:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygwfa-0001Sf-C4 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 10:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YgwfZ-0001Ki-VB for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 10:46: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: Sat, 11 Apr 2015 14:46:01 +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.14287635285069 (code B ref 20285); Sat, 11 Apr 2015 14:46:01 +0000 Original-Received: (at 20285) by debbugs.gnu.org; 11 Apr 2015 14:45:28 +0000 Original-Received: from localhost ([127.0.0.1]:53286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ygwf1-0001Jg-8W for submit@debbugs.gnu.org; Sat, 11 Apr 2015 10:45:27 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:33718) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ygwey-0001JP-DE for 20285@debbugs.gnu.org; Sat, 11 Apr 2015 10:45:25 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMN00A00CAJ4Z00@mtaout24.012.net.il> for 20285@debbugs.gnu.org; Sat, 11 Apr 2015 17:36:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN006FGCL71940@mtaout24.012.net.il>; Sat, 11 Apr 2015 17:36:44 +0300 (IDT) In-reply-to: <87r3rqq1ny.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:101422 Archived-At: > From: Tassilo Horn > Cc: monnier@IRO.UMontreal.CA, 20285@debbugs.gnu.org > Date: Sat, 11 Apr 2015 14:39:45 +0200 > > Tassilo Horn writes: > > >> 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. > > > > Ok, I'll try that out. > > Done that now and got output like > > redisplay_preserve_echo_area (12) > redisplay_internal 0 > redisplay_internal 0 > redisplay_preserve_echo_area (8) > redisplay_internal 0 > redisplay_preserve_echo_area (12) > redisplay_internal 0 > redisplay_internal 0 > redisplay_preserve_echo_area (12) > redisplay_internal 0 > redisplay_internal 0 That's what you should get; each "redisplay_internal 0" line is an entry to redisplay. > In general, I've been amazed how often redisplay is performed even > though nothing has changed in neither the single window containing the > buffer with my latex doc nor the minibuffer. Ten times a second is very > likely, maybe even more. Really? Is that in "emacs -Q"? I get only 20 entries to redisplay, every 0.5 sec, one each for every toggle of the blinking cursor, and after those it stops. I can only understand a much more frequent redisplay if you have a lot of timers, or a high-frequency timer. When a timer fires, we call redisplay, AFAIR. > Then I compiled my latex doc to generate some stress. Every compile > takes about a good minute. That used to work without blinking > interruption at least four times, but with the fifth time, out of > sudden, it stuck after > > redisplay_internal 0 I'm guessing that your LaTeX compilation is via "M-x compile" or a similar async subprocess. If so, whether or not redisplay is called depends on the speed the compilation process emits stuff that Emacs reads. If the subprocess outputs a lot of stuff, it will have the same effect as high-speed keyboard input -- in both cases Emacs will not enter redisplay until it's idle. > and would not start anymore until my latex document was compiled and > AUCTeX echoed "LaTeX: successfully formatted {293} pages". That seems > to have triggered the resume of redisplay. Displaying an echo area message triggers redisplay. > The redisplay pause was at least 20 to 30 seconds. If there's no redisplay, you won't see the cursor blink.