From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#24372: 25.1.50; After losing focus, cursor is hidden when moving point Date: Fri, 09 Sep 2016 16:29:23 +0000 Message-ID: References: <83a8flaud3.fsf@gnu.org> <831t0t83br.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10c7e7ce0d08053c15a679 X-Trace: blaine.gmane.org 1473439302 7995 195.159.176.226 (9 Sep 2016 16:41:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2016 16:41:42 +0000 (UTC) Cc: 24372@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 09 18:41:38 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biOrr-0000rx-QN for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 18:41:32 +0200 Original-Received: from localhost ([::1]:59084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOro-0001RY-LG for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 12:41:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOgq-0008Th-Br for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biOgk-0007Df-Ge for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:30:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOgk-0007Db-DQ for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1biOgk-00085w-4X for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Sep 2016 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24372 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24372-submit@debbugs.gnu.org id=B24372.147343858131070 (code B ref 24372); Fri, 09 Sep 2016 16:30:02 +0000 Original-Received: (at 24372) by debbugs.gnu.org; 9 Sep 2016 16:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:54825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biOgO-000854-P2 for submit@debbugs.gnu.org; Fri, 09 Sep 2016 12:29:41 -0400 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:36564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biOgN-00084p-Mm for 24372@debbugs.gnu.org; Fri, 09 Sep 2016 12:29:40 -0400 Original-Received: by mail-wm0-f41.google.com with SMTP id b187so40593246wme.1 for <24372@debbugs.gnu.org>; Fri, 09 Sep 2016 09:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l3JHG//Mikf1Fm4nR4BypBYxlK9VSGdEOeOsy1vSepE=; b=gOPjC/xv886Rx9OfXfPUqlRmJP4yvDwO1ZrZvYBy6pJ6yGb5SH8pJBetiTJx3r9BYV 57JYjD65wXuTYmCEdL5/zNy7OBo1L3ULSMxtqghNhoZCa77w+faHceF9CIYiok/euQm2 tDf81zD1bLfnzcKPuwDNcQNp/0av3nvKD35/l2XvkO+d7zQsZ/MqTPqnETyRTVMX/LPk OkiHf7XOjQJyaWONOO+Qy6/43455fM6SGq3Z2bVytrupkJ+vsXcsNUvPvnZQ6jFvT1RD A2c/qiDVzo3tQhAMJMtocQbldN/oNt1vTdCk7OoOz3HjnD5SQeUO2PvcSPZWXB4Q/0u0 PdRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l3JHG//Mikf1Fm4nR4BypBYxlK9VSGdEOeOsy1vSepE=; b=MOkKayXrZfuJUq3Biv0YT0diVNlmQb5fi0aPx4UDesAzyLsJOAHx6tAHWVb7DS6+3Y WWvBKRKfSyHRy3V02H+UBbK/H3VDGC2Yq0laS2Um4htP7dwdrwh2ZNwoXOrqMa2SXfv1 glyO7PuzLJlSa9DBPhNX53nUxx62dEUt8OvqjyjUqA6tC6V15vwetPwnY2tcGX8fGei3 FYZnlkR7FFAt86AIsywWqhDtXnaSP4dckV8rH9/vK8OR0EWU2JCNh91q8fTy48aSYjA4 dMeNKqm+9kqxCw9w2Zpx/tkzOgRZC5OQo/VuTi0X1sNmgO/zC3VHsHQ+7NiEe7oP7cTt Y7Gw== X-Gm-Message-State: AE9vXwP698F+2GhqVdnySz/gQtROvNUod5dilu7KXT9jepQ6gkUdcgeNTrjle1XJ6y8cRXaYq7EAuNOzokFlFg== X-Received: by 10.194.87.169 with SMTP id az9mr4033990wjb.81.1473438574051; Fri, 09 Sep 2016 09:29:34 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:123114 Archived-At: --047d7b10c7e7ce0d08053c15a679 Content-Type: text/plain; charset=UTF-8 Philipp Stephani schrieb am Fr., 9. Sep. 2016 um 18:20 Uhr: > Eli Zaretskii schrieb am Fr., 9. Sep. 2016 um 18:07 Uhr: > > > From: Philipp Stephani > > Date: Fri, 09 Sep 2016 15:59:02 +0000 > > Cc: 24372@debbugs.gnu.org > > > > Eli Zaretskii schrieb am Di., 6. Sep. 2016 um 18:03 Uhr: > > > > > From: Philipp Stephani > > > Date: Mon, 05 Sep 2016 21:16:40 +0200 > > > > > > emacs -Q -eval '(setq blink-cursor-delay 0.0)' > > > > > > Move point around in the scratch buffer (e.g. press C-b a couple of > > > times): the cursor stays visible, as it should be. Then put the mouse > > > focus on a different GTK window (not Emacs window), put the mouse > focus > > > back on Emacs, and move point again: the cursor is hidden, making it > > > impossible to see until you stop moving. > > > > Does it happen even if you wait with cursor motion until after the > > cursor blinks one time, i.e. if you start moving point with the cursor > > already visible after Emacs gets focus? > > > > Yes. No matter what state the cursor is in and how often it has already > blinked, it becomes invisible when > > moving. > > So what is the importance of moving focus out of the Emacs frame and > then back into it? Is the problem reproducible without that? Or are > you saying that focus-out followed by focus-in event somehow changes > the behavior wrt displaying the cursor? > > > Yes. The cursor only become invisible after a focus-out/focus-in event. > This isn't surprising given that blink-cursor-mode changes focus-in-hook > and focus-out-hook. Probably the bug is hidden somewhere in the complex > interaction between the various blink-cursor timers and hooks. > A simpler recipe that doesn't need explicit focus events is emacs -Q -eval '(progn (setq blink-cursor-delay 0.0) (blink-cursor-suspend) (blink-cursor-check))' and then start moving point. --047d7b10c7e7ce0d08053c15a679 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Fr., 9. Sep. 2016 um 18:20=C2=A0Uhr:
Eli Zaretskii &= lt;el= iz@gnu.org> schrieb am Fr., 9. Sep. 2016 um 18:07=C2=A0Uhr:
> From: Ph= ilipp Stephani <p.stephani2@gmail.com>
> Date: Fri, 09 Sep 2016 15:59:02 +0000
> Cc: 24372@debbugs.gnu.org
>
> Eli Zaretskii <eliz@gnu.org> schrieb am Di., 6. Sep. 2016 um 18:0= 3 Uhr:
>
>=C2=A0 > From: Philipp Stephani <p.stephani2@gmail.com>= ;
>=C2=A0 > Date: Mon, 05 Sep 2016 21:16:40 +0200
>=C2=A0 >
>=C2=A0 > emacs -Q -eval '(setq blink-cursor-delay 0.0)'
>=C2=A0 >
>=C2=A0 > Move point around in the scratch buffer (e.g. press C-b a c= ouple of
>=C2=A0 > times): the cursor stays visible, as it should be. Then put= the mouse
>=C2=A0 > focus on a different GTK window (not Emacs window), put the= mouse focus
>=C2=A0 > back on Emacs, and move point again: the cursor is hidden, = making it
>=C2=A0 > impossible to see until you stop moving.
>
>=C2=A0 Does it happen even if you wait with cursor motion until after t= he
>=C2=A0 cursor blinks one time, i.e. if you start moving point with the = cursor
>=C2=A0 already visible after Emacs gets focus?
>
> Yes. No matter what state the cursor is in and how often it has alread= y blinked, it becomes invisible when
> moving.

So what is the importance of moving focus out of the Emacs frame and
then back into it?=C2=A0 Is the problem reproducible without that?=C2=A0 Or= are
you saying that focus-out followed by focus-in event somehow changes
the behavior wrt displaying the cursor?

Yes. The cursor only become invisible after a focus-out/fo= cus-in event.
This isn't surprising given= that blink-cursor-mode changes focus-in-hook and focus-out-hook. Probably = the bug is hidden somewhere in the complex interaction between the various = blink-cursor timers and hooks.=C2=A0
A simpler recipe that doesn't need explicit focus events is=

emacs -Q -eval '(progn (setq blink-cursor-del= ay 0.0) (blink-cursor-suspend) (blink-cursor-check))'=C2=A0
<= br>
and then start moving point.
--047d7b10c7e7ce0d08053c15a679--