From unknown Sat Jun 21 03:25:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5931: Turning off blink-cursor-mode does not stop blink-cursor-timer immediately 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: Sun, 11 Apr 2010 20:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 5931@debbugs.gnu.org X-Debbugs-Original-To: Emacs Bugs Received: via spool by submit@debbugs.gnu.org id=B.127101627023682 (code B ref -1); Sun, 11 Apr 2010 20:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Apr 2010 20:04:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O13OQ-00069v-Fu for submit@debbugs.gnu.org; Sun, 11 Apr 2010 16:04:30 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O13OO-00069q-Vt for submit@debbugs.gnu.org; Sun, 11 Apr 2010 16:04:29 -0400 Received: from lists.gnu.org ([199.232.76.165]:36648) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O13OK-0001QA-39 for submit@debbugs.gnu.org; Sun, 11 Apr 2010 16:04:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O13OJ-0001l6-Fv for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 16:04:23 -0400 Received: from [140.186.70.92] (port=51487 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O13OH-0001kE-GC for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 16:04:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O13OG-00017r-7L for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 16:04:21 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:55434) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O13OG-00017V-2R for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2010 16:04:20 -0400 Received: by bwz23 with SMTP id 23so1534831bwz.26 for ; Sun, 11 Apr 2010 13:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=omAaiWxiXREBReYKJCHt4kvykHy/wSzS6T95ti0QMTc=; b=g0lP1pux/Lxu3wTAtZDNDptE4yPqq19HOe8U3Bc4wleX8Bt6QbcepjpffrU50ilFIy txH3I3CSHDT4Tc2m44dJjatEDH2aDjzKLQdkAARoWpSGhymQEUpaZmW6lIYCPPMDGsnH fuDLwNyQOI3Ui91B1IffJ9WuxsLQm/esT20i8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=NqueW6cZoVCBXiHAqa/+VC+R2ylpLu60Jtob7niOvgi7ty7Bv0sWJlPZHF3dbVCx5N 84l4qXdIsBtOgnBikYM5ZYYjKBFC+ukEN3dA4ySSfybYzT5hIevE7N2SbXfatLM4q2Dr 4dLSiyzG3VrgHnu6et0HHBzv/NVooVtobifvE= MIME-Version: 1.0 Received: by 10.239.169.18 with HTTP; Sun, 11 Apr 2010 13:03:58 -0700 (PDT) From: Lennart Borgman Date: Sun, 11 Apr 2010 22:03:58 +0200 Received: by 10.239.166.79 with SMTP id a15mr239337hbe.171.1271016258182; Sun, 11 Apr 2010 13:04:18 -0700 (PDT) Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) Which can lead to some problems. Could we please just stop this timer when turning off blink-cursor-mode? Just add a line like (when (timerp blink-cursor-timer) (cancel-timer blink-cursor-timer)) From unknown Sat Jun 21 03:25:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5931: Turning off blink-cursor-mode does not stop blink-cursor-timer immediately Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2010 20:57: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: To: Lennart Borgman Cc: 5931@debbugs.gnu.org Received: via spool by 5931-submit@debbugs.gnu.org id=B5931.127101936925113 (code B ref 5931); Sun, 11 Apr 2010 20:57:02 +0000 Received: (at 5931) by debbugs.gnu.org; 11 Apr 2010 20:56:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O14CO-0006X0-Ox for submit@debbugs.gnu.org; Sun, 11 Apr 2010 16:56:09 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O14CM-0006Wg-UI for 5931@debbugs.gnu.org; Sun, 11 Apr 2010 16:56:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAHvUwUtMCqWu/2dsb2JhbACbRXK1aYUMBItG X-IronPort-AV: E=Sophos;i="4.52,185,1270440000"; d="scan'208";a="60633782" Received: from 76-10-165-174.dsl.teksavvy.com (HELO ceviche.home) ([76.10.165.174]) by ironport2-out.pppoe.ca with ESMTP; 11 Apr 2010 16:56:02 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 2D030660BF; Sun, 11 Apr 2010 16:56:02 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Sun, 11 Apr 2010 16:56:02 -0400 In-Reply-To: (Lennart Borgman's message of "Sun, 11 Apr 2010 22:03:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > 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 > (when (timerp blink-cursor-timer) (cancel-timer blink-cursor-timer)) I'd rather call blink-cursor-end, then. And yes, that would seem like a good idea. But I'd still like to know why you think it's important enough. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 15 14:29:17 2010 Received: (at control) by debbugs.gnu.org; 15 Apr 2010 18:29:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2ToS-0006Lv-G1 for submit@debbugs.gnu.org; Thu, 15 Apr 2010 14:29:16 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2ToQ-0006Lk-Gy for control@debbugs.gnu.org; Thu, 15 Apr 2010 14:29:15 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O2ToE-0004Yp-8p; Thu, 15 Apr 2010 14:29:02 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19399.23277.131729.705471@fencepost.gnu.org> Date: Thu, 15 Apr 2010 14:29:01 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: I2osu0uqhYF(oLTuF1AB"l21"KvQ3eLee*z=|sh+n2)N_$p!_]VW&cPXC&Mgg;U0FphPs\ X-Debbugs-No-Ack: yes X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) reassign 5922 aquamacs severity 5931 minor tags 5931 moreinfo merge 5252 5921 retitle 5921 /sw and /opt/local on OSX tags 5531 moreinfo tags 5568 wontfix notabug severity 5568 minor reassign 5932 emacs,cc-mode reassign 5953 emacs,cc-mode severity 5952 wishlist severity 5953 wishlist tags 5952 patch reassign 5946 emacs,ns severity 5937 minor From unknown Sat Jun 21 03:25:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5931: Turning off blink-cursor-mode does not stop blink-cursor-timer immediately 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 To: Stefan Monnier Cc: 5931@debbugs.gnu.org Received: via spool by 5931-submit@debbugs.gnu.org id=B5931.127293304630707 (code B ref 5931); Tue, 04 May 2010 00:31:02 +0000 Received: (at 5931) by debbugs.gnu.org; 4 May 2010 00:30:46 +0000 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 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 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= Received: by 10.239.160.132 with SMTP id c4mr780399hbd.150.1272933039145; Mon, 03 May 2010 17:30:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.164.81 with HTTP; Mon, 3 May 2010 17:30:19 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Tue, 4 May 2010 02:30:19 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) 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. From unknown Sat Jun 21 03:25:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5931: Turning off blink-cursor-mode does not stop blink-cursor-timer immediately Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Feb 2014 00:28: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 To: Lennart Borgman Cc: 5931@debbugs.gnu.org Received: via spool by 5931-submit@debbugs.gnu.org id=B5931.139164644115731 (code B ref 5931); Thu, 06 Feb 2014 00:28:02 +0000 Received: (at 5931) by debbugs.gnu.org; 6 Feb 2014 00:27:21 +0000 Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBCoL-00045e-4w for submit@debbugs.gnu.org; Wed, 05 Feb 2014 19:27:21 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:37724) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBCoJ-00045X-Or for 5931@debbugs.gnu.org; Wed, 05 Feb 2014 19:27:20 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WBCo5-0007fZ-Oq; Thu, 06 Feb 2014 01:27:06 +0100 From: Lars Ingebrigtsen References: Date: Wed, 05 Feb 2014 16:26:02 -0800 In-Reply-To: (Lennart Borgman's message of "Sun, 11 Apr 2010 22:03:58 +0200") Message-ID: <87ppn1ytlx.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WBCo5-0007fZ-Oq X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392251226.21332@BK3Mk1JbcFgiWWCwWrrmHw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Lennart Borgman writes: > Which can lead to some problems. Could we please just stop this timer > when turning off blink-cursor-mode? > > Just add a line like > > (when (timerp blink-cursor-timer) (cancel-timer blink-cursor-timer)) The cursor blinking stuff has been redone lately, so I think this bug report most likely isn't that relevant any more. Please reopen if it is. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 05 19:27:27 2014 Received: (at control) by debbugs.gnu.org; 6 Feb 2014 00:27:28 +0000 Received: from localhost ([127.0.0.1]:51559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBCoR-00045y-Hf for submit@debbugs.gnu.org; Wed, 05 Feb 2014 19:27:27 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:37730) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBCoP-00045p-6I for control@debbugs.gnu.org; Wed, 05 Feb 2014 19:27:25 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WBCoB-0007fi-BE for control@debbugs.gnu.org; Thu, 06 Feb 2014 01:27:11 +0100 Date: Wed, 05 Feb 2014 16:26:08 -0800 Message-Id: <87ob2lytlr.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #5931 X-MailScanner-ID: 1WBCoB-0007fi-BE X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392251231.88982@+jFYe1mHplejGpAy4KeQ7g X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 5931