From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#5931: Turning off blink-cursor-mode does not stop blink-cursor-timer immediately Date: Tue, 4 May 2010 02:30:19 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272934573 7998 80.91.229.12 (4 May 2010 00:56:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 00:56:13 +0000 (UTC) Cc: 5931@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 04 02:56:11 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O96Ql-0001li-4n for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 May 2010 02:56:11 +0200 Original-Received: from localhost ([127.0.0.1]:51930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O96Qk-00066m-Ec for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 20:56:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O96Qe-00066X-Hg for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 20:56:04 -0400 Original-Received: from [140.186.70.92] (port=35846 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O96Qc-00066L-NB for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 20:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O96Qa-0003PM-Jm for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 20:56:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55401) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O96Qa-0003PF-HX for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 20:56:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O962Q-0007zS-6y; Mon, 03 May 2010 20:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 May 2010 00:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 5931-submit@debbugs.gnu.org id=B5931.127293304630707 (code B ref 5931); Tue, 04 May 2010 00:31:02 +0000 Original-Received: (at 5931) by debbugs.gnu.org; 4 May 2010 00:30:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9629-0007zE-NG for submit@debbugs.gnu.org; Mon, 03 May 2010 20:30:46 -0400 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9627-0007z9-J7 for 5931@debbugs.gnu.org; Mon, 03 May 2010 20:30:44 -0400 Original-Received: by fxm4 with SMTP id 4so2754156fxm.3 for <5931@debbugs.gnu.org>; Mon, 03 May 2010 17:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=wG3vEoe7naT9J7byvLh+TniyIZ3hrGntvLuR4F37brU=; b=BjxqsB29p1oKRwunv+JJVSPS2n32Ekrbz9Bu87dspnKmR/iZo4GNi8OWvw02jUicUR ev+ALV7kr1EPX/eDQcrSbyZzn630nyjiD41dM0xTf6D5iRuNOf0zTBEuiZF/Ba0mkwgz d3pW1hm39j05YIdNEnl2DsiEF7oFmUNWTDpyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FNQbaRwgDBpywQG5XVt20U5R8mgkuDLkvwFEUfrCOXlXJL0JEAbozWh353qxqzi2mx d2XxBYER29VeYA4FYvl80firV6iu9GR4DmQPxqb+Lppi3pZ2xWzjpHg1qn+UwEnFa20u EV+7mnHLbNh7ULnJ0DB9ajzEyJXoc5x2gaHV8= Original-Received: by 10.239.160.132 with SMTP id c4mr780399hbd.150.1272933039145; Mon, 03 May 2010 17:30:39 -0700 (PDT) Original-Received: by 10.239.164.81 with HTTP; Mon, 3 May 2010 17:30:19 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 May 2010 20:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36677 Archived-At: On Sun, Apr 11, 2010 at 10:56 PM, Stefan Monnier wrote: >> Which can lead to some problems. > > Could you give us some details of the kinds of problem you encountered? > >> Could we please just stop this timer >> when turning off blink-cursor-mode? >> Just add a line like >> =C2=A0 =C2=A0 =C2=A0 (when (timerp blink-cursor-timer) (cancel-timer bli= nk-cursor-timer)) > > I'd rather call blink-cursor-end, then. > And yes, that would seem like a good idea. =C2=A0But I'd still like to kn= ow > why you think it's important enough. Perhaps it is not very important but I still think it should be done. I thought I had a reason, but it turned out that calling blink-cursor-end does not solve the problem I see. I see a strange problem where I believe I cancel a timer, but it somehow survives. At the moment I have no other way to reproduce it then the example below. I have a minor mode called h-needed-mode in the package nXhtml. This try to highlight the current line (and optionally column) when it is needed. To see the problem do like this: - set hl-need-mark-column to nil (I have forgotten to change the default) - set hl-needed-flash-duration to 0.5 (not sure this is needed but that is what I have) - turn on hl-needed-mode - turn on blink-cursor-mode - visit an elisp file. - divide the frame in two windows visiting this file. - jump between them - wait until the line is highlighted - then jump again Now the cursor should blink faster. Examining the timer lists (use M-x describe-timers in nXhtml) there is now an entry in timer-list: 2010-05-04 00:16:19.5 0.65 (`blink-cursor-timer-function' nil) This should not be there. However this does not happen every time. There is a few lines in hl-needed.el where I call blink-cursor-mode and blink-cursor-end. It looks to me like what is happening is that when blink-cursor-timer is canceled it somehow survives, maybe because it is a repeating timer.