From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24372: 25.1.50; After losing focus, cursor is hidden when moving point Date: Fri, 23 Sep 2016 17:28:22 +0300 Message-ID: <83ponud721.fsf@gnu.org> References: <83a8flaud3.fsf@gnu.org> <831t0t83br.fsf@gnu.org> <83mvjg8bk2.fsf@gnu.org> <8360q2be2b.fsf@gnu.org> <83twdm9re9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474641074 18363 195.159.176.226 (23 Sep 2016 14:31:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2016 14:31:14 +0000 (UTC) Cc: 24372-done@debbugs.gnu.org To: p.stephani2@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 23 16:31:07 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 1bnRV9-0002Ro-6k for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Sep 2016 16:30:55 +0200 Original-Received: from localhost ([::1]:46907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnRV7-0000dS-Bt for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Sep 2016 10:30:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnRTO-0007iy-EL for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2016 10:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnRTK-00062y-51 for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2016 10:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnRTK-00062t-1t for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2016 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bnRTJ-0000OP-UP for bug-gnu-emacs@gnu.org; Fri, 23 Sep 2016 10:29:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Sep 2016 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24372 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 24372@debbugs.gnu.org, eliz@gnu.org, p.stephani2@gmail.com Original-Received: via spool by 24372-done@debbugs.gnu.org id=D24372.14746409081457 (code D ref 24372); Fri, 23 Sep 2016 14:29:01 +0000 Original-Received: (at 24372-done) by debbugs.gnu.org; 23 Sep 2016 14:28:28 +0000 Original-Received: from localhost ([127.0.0.1]:33607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnRSm-0000NR-KK for submit@debbugs.gnu.org; Fri, 23 Sep 2016 10:28:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnRSl-0000NF-Nf for 24372-done@debbugs.gnu.org; Fri, 23 Sep 2016 10:28:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnRSd-0005i5-8U for 24372-done@debbugs.gnu.org; Fri, 23 Sep 2016 10:28:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnRSd-0005hs-4o; Fri, 23 Sep 2016 10:28:19 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3750 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bnRSZ-0008CQ-8D; Fri, 23 Sep 2016 10:28:17 -0400 In-reply-to: <83twdm9re9.fsf@gnu.org> (message from Eli Zaretskii on Sun, 11 Sep 2016 22:18:38 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:123601 Archived-At: > Date: Sun, 11 Sep 2016 22:18:38 +0300 > From: Eli Zaretskii > Cc: 24372@debbugs.gnu.org > > > How about a variant of this below? It uses a fixed limitation from > > below on the delay, but only for the first blink. (The value 0.2 was > > found by experimentation, not sure if we need to add yet another > > defcustom for that.) > > > > I don't think we should introduce magic numbers or further customization options. > > It solves the problem, doesn't it? I don't mind very much if it were > a defcustom, I just think no one would want to change it. > > > > I've attached another patch with the change I have in mind. > > > > This has a disadvantage of creating a new timer object each time, > > which I think we'd like to avoid: too much consing. (Also, don't you > > need to set the timer variable to nil when the timer is disabled?) > > > > I don't understand - the patch doesn't create any additional timers, it only changes the initial delay of the > > idle-timer. > > Each time blink-cursor--start-timer or blink-cursor--start-idle-timer > is called, they create a new timer, right? And your patch makes us > call these functions each time blinking is started or ended, right? > > > My patch is identical, except is uses blink-cursor-interval as lower bound. > > Of course. That's why I said it's a minor variant. > > There's another difference, though: in my patch we only limit the > first argument to run-with-timer/run-with-idle-timer, not the second. > So only the first blink cycle is affected. No further comments, so I pushed my last proposed patch to the emacs-25 branch, and I'm marking this bug done. Thanks.