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:20:19 +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=001a114b32cc588099053c15864f X-Trace: blaine.gmane.org 1473438093 19308 195.159.176.226 (9 Sep 2016 16:21:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2016 16:21:33 +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:21:27 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 1biOYI-0003SS-GT for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 18:21:18 +0200 Original-Received: from localhost ([::1]:58953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOYG-0000tz-Ji for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 12:21:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOY7-0000tj-8n for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biOY2-0004w7-BK for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biOY2-0004w3-7u for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1biOY2-0007s9-4L for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2016 12:21: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:21: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.147343803730222 (code B ref 24372); Fri, 09 Sep 2016 16:21:02 +0000 Original-Received: (at 24372) by debbugs.gnu.org; 9 Sep 2016 16:20:37 +0000 Original-Received: from localhost ([127.0.0.1]:54818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biOXc-0007rN-PS for submit@debbugs.gnu.org; Fri, 09 Sep 2016 12:20:37 -0400 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:37852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biOXb-0007r3-3n for 24372@debbugs.gnu.org; Fri, 09 Sep 2016 12:20:35 -0400 Original-Received: by mail-wm0-f52.google.com with SMTP id w12so42216910wmf.0 for <24372@debbugs.gnu.org>; Fri, 09 Sep 2016 09:20:35 -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=2txiMIeFe9aBMpvo3/wKxUwOYcos0Knfb16Ssz5dO0U=; b=E9ZcVx4vTedWoxFy3tPBlQs9HUxKju2wLe/3O0zc8NI/Pc8pat92eDSemQs0J9SBAu ZmuQHR6XYs+nssh+4jm1DRUNvjhfs++ozY2YPHn366KBu+sD8LI1cUSVYkH72zmuw927 Xcm0iqgemKbPt3cE3C0itpzUdrWNVcHBkHgO705uqEj+m0Qc6iXXYC1Gu1IGkjyWQNHQ vt8acs43NUl5SXsYQF7uCHdjtTLXnOLjzjm9ISGTCK6haC8DsVuBWFE+I576PRugAKKj II17KiVfgPsjbrlm+tLGwFDoB6mwm8szI5pQZNzRjwPGlDiZnQE9fmUbIDVvXhEHaNNY xzWg== 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=2txiMIeFe9aBMpvo3/wKxUwOYcos0Knfb16Ssz5dO0U=; b=FN0R8sqh5OuclIrmGCMOLcr5vd27eimDGB8ToMxWxreYSuBV+PGf5bcoEUDDqiHMAX oEGfE9GsXrNgiuuoFCUBy7OIJrTBgay3vK7uMNnd8mGvwksJ8SMIdJ8KBeF1KDrwpN71 DQfL8k6fxkv9hSbXKiC+qgi/um1WtCqy068jh+okYfgPy/ayewwETuBpMVqKj357ZEtN L3RmK00Eq8S0FqAmk6sKRfYaJAUKqjSU6dA7h8Dir/10YrfDnBgpGS1OIf0PTVf3GSsk 4Y2AEX2unYCLfIGdCEattA59hCr3EBu2M1lj3RqbsQP91emzhwknf/d6qzH7Txs4kDJx AOag== X-Gm-Message-State: AE9vXwN2U24bXxoLWpsLtyCzjeVV45SNg9rs0Cj6uHLPnbceF/jIEJm0T4VAITXlzpagozsxW3AarqHCRTh48g== X-Received: by 10.28.153.70 with SMTP id b67mr4082388wme.84.1473438029478; Fri, 09 Sep 2016 09:20:29 -0700 (PDT) In-Reply-To: <831t0t83br.fsf@gnu.org> 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:123113 Archived-At: --001a114b32cc588099053c15864f Content-Type: text/plain; charset=UTF-8 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. --001a114b32cc588099053c15864f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Fr., 9. Sep. 2016 um 18:07=C2=A0Uhr:
> From: Philipp 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-ou= t/focus-in event.
This isn't surprising given that blink-curs= or-mode changes focus-in-hook and focus-out-hook. Probably the bug is hidde= n somewhere in the complex interaction between the various blink-cursor tim= ers and hooks.=C2=A0
--001a114b32cc588099053c15864f--