GNU bug report logs - #30994
27.0.50; Cursor doesn't blink (X window system)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Fri, 30 Mar 2018 03:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 30994 <at> debbugs.gnu.org:


Received: (at 30994) by debbugs.gnu.org; 30 Mar 2018 05:05:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 30 01:05:25 2018
Received: from localhost ([127.0.0.1]:59262 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f1mE8-0002fy-RA
	for submit <at> debbugs.gnu.org; Fri, 30 Mar 2018 01:05:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40025)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1f1mE7-0002fm-MS
 for 30994 <at> debbugs.gnu.org; Fri, 30 Mar 2018 01:05:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1f1mE1-0007Ri-My
 for 30994 <at> debbugs.gnu.org; Fri, 30 Mar 2018 01:05:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59842)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1f1mDy-0007Mh-Di; Fri, 30 Mar 2018 01:05:14 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1f1mDw-0006b0-MD; Fri, 30 Mar 2018 01:05:12 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#30994: 27.0.50; Cursor doesn't blink (X window system)
References: <87r2o2tf1z.fsf@HIDDEN>
X-Spook: White Powder ASO Hugo Chavez Chobetsu Abu Sayyaf
X-Ran: `v9eU>H?nA|;]zpFme.}>/:+'392z7tvv[LfU(.Rx['`tQ2Dw2-Ik&1M\n>!vpaXwt=KH]
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 30 Mar 2018 01:05:12 -0400
In-Reply-To: <87r2o2tf1z.fsf@HIDDEN> (Michael Heerdegen's message of "Fri, 30
 Mar 2018 05:31:20 +0200")
Message-ID: <3b370i2lx3.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30994
Cc: 30994 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


I guess (without testing) that this is due to 2db57579b0 moving
custom-reevaluate-setting before the window setup. (I note there's no
blinking in emacs started as --daemon in earlier versions of Emacs for
similar reasons.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30994; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Mar 2018 03:31:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 29 23:31:53 2018
Received: from localhost ([127.0.0.1]:59235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f1kld-0000Zq-IO
	for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 23:31:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55842)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1f1klb-0000Zd-Qo
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 23:31:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1f1klV-0007nv-Lq
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 23:31:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59604)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1f1klV-0007ng-IZ
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 23:31:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46807)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1f1klU-0005X9-BQ
 for bug-gnu-emacs@HIDDEN; Thu, 29 Mar 2018 23:31:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1f1klP-0007l3-Ee
 for bug-gnu-emacs@HIDDEN; Thu, 29 Mar 2018 23:31:44 -0400
Received: from mout.web.de ([212.227.15.4]:53631)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1f1klP-0007ki-3J
 for bug-gnu-emacs@HIDDEN; Thu, 29 Mar 2018 23:31:39 -0400
Received: from drachen.dragon ([88.75.99.135]) by smtp.web.de (mrweb001
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M8zhl-1epKZY0NFl-00CPum for
 <bug-gnu-emacs@HIDDEN>; Fri, 30 Mar 2018 05:31:37 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Cursor doesn't blink (X window system)
Date: Fri, 30 Mar 2018 05:31:20 +0200
Message-ID: <87r2o2tf1z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K0:halXsesMeUasLp8Jw2u0OKDYqlu0WUfv7RzascNYEtMscqUwfnB
 LAG45GSdcIif8w+eZ+acIWA9pPrS3BuqP3JwSZHMg2ZBAnb+iHv04a0f4IfLr9/xkQV5TSq
 Mud5wYqHHTqqThvsa8dZVzPHsEo5DgWxw8tOr1ELXmODnJ2XU2keHCHxAVTILKCmE4bimpb
 poO8FtoU/M8i2YPqPS8zw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:4DCIv7U2Wok=:eDaTVBHiljEA/Zzr2Y5QBg
 9f0rx9eYsKK841YEz6kwZIqn8kxAPoZjLNA/v5G/wv/FLGFn12bedMbzdfvMKoZwLcy1pzv28
 YTF1H3p1IyngHNWTw+d9uqC2wHmbhav+qLM6z2qHrvoTzlmdPo4HSHwibPwD5anj7Ktdf6bJf
 KWyQglDId0vg8E4AXyDuBZQW9M0S+ynCBjKERRrvVkn7qAPzcqLdtBtEv8Kvwg3xSFBD9stFj
 1gvZbgIo66u1F3KyG6Qezd28jtM4d641IGXQLn00rVFuS6nOQe6t+vSTUn8ciqHYC5K4vHDaI
 z5LCh3NtoaUBkooiRzqWGpKmiywRjKmGeNvJevLYPKzyJj33CUHlI/0Y/ptbC1dCdPjCL1UIE
 zWec/tgms2w6yEs/B1uv0pU8mVr7uU9FQt5mQurHrVEmWucu4EhViD1ZnjQG4HtXaois0+NBF
 LrQjkwu+1eZm5RL6CApB/zg1KwFcBY2CvMSSkNMMujprmxNKqTi4Jx3sAu4dGySWIuwaTV8Oi
 ER0kh0KPSOsjoC2/ccTtCjnHtf9gCA1/ZzOeJ/KWotTtAz4KoQGy9Fonu6bcq3e9TwmY/b/Kb
 CYI2N0yrMPGiHcrjq4DKvtmcIJmsLt4Wm4Fk2GvEGHu3WK3HtJ1lCyIost3YhQQzQuvoR9W2i
 vXmg/PhRFYNxY4yCyfZH/5EXZB6mijsU8H28sz4eh6eKpBnuo0UR8CTWVlLUTrXYgezEbrCT8
 owkh8/G/WBdu+7e+tWdUrOM7J0PYIdEuwYkCFCFnxieT/7j6C8y0y2E/OdToTv98BXRb5P4Re
 VKq1xsRf3ibE6BRtz9lRVnWw81efXfH7lWDv9nWXd9b/H5jVhg=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

--=-=-=
Content-Type: text/plain


Hello,

I start emacs -Q (under openbox in X on Debian if it matters), and I get
an Emacs where the cursor doesn't blink.  Thankfully only on master but
not with an emacs-26 build.

The problem is simply that `blink-cursor-mode' is not turned on when
starting, but I can successfully enable it.

The reason is that at the moment the :init-value expression of
`blink-cursor-mode' is evaluated, `window-system' is bound to nil,
i.e. when installing the following:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=0001-WIP-test-no-blinking-cursor.patch

From befd2667396125748d6e9e0e15c5fc38f7846082 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
Date: Fri, 30 Mar 2018 04:25:00 +0200
Subject: [PATCH] WIP: test no-blinking-cursor

---
 lisp/frame.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/frame.el b/lisp/frame.el
index fbf2f6e773..b07e2800ba 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -2357,10 +2357,12 @@ blink-cursor-mode
 
 This command is effective only on graphical frames.  On text-only
 terminals, cursor blinking is controlled by the terminal."
-  :init-value (not (or noninteractive
-		       no-blinking-cursor
-		       (eq system-type 'ms-dos)
-		       (not (memq window-system '(x w32 ns)))))
+  :init-value (progn
+                (message "window-system: %S" window-system)
+                (not (or noninteractive
+		         no-blinking-cursor
+		         (eq system-type 'ms-dos)
+                         (not (memq window-system '(x w32 ns))))))
   :initialize 'custom-initialize-delay
   :group 'cursor
   :global t
-- 
2.16.2


--=-=-=
Content-Type: text/plain


I get a *Messages* buffer like

| window-system: nil
| For information about GNU Emacs and the GNU system, type C-h C-a.

After starting up,

window-system
   ==> x

as expected.


Thanks,

Michael.


In GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.22.29)
 of 2018-03-30 built on drachen
Repository revision: befd2667396125748d6e9e0e15c5fc38f7846082
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid


--=-=-=--




Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30994; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 30 Mar 2018 05:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.