GNU bug report logs -
#5931
Turning off blink-cursor-mode does not stop blink-cursor-timer immediately
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5931 in the body.
You can then email your comments to 5931 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5931
; Package
emacs
.
(Sun, 11 Apr 2010 20:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 11 Apr 2010 20:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5931
; Package
emacs
.
(Sun, 11 Apr 2010 20:57:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5931 <at> debbugs.gnu.org (full text, mbox):
> 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
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 15 Apr 2010 18:30:04 GMT)
Full text and
rfc822 format available.
Added tag(s) moreinfo.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 15 Apr 2010 18:30:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5931
; Package
emacs
.
(Tue, 04 May 2010 00:31:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 5931 <at> debbugs.gnu.org (full text, mbox):
On Sun, Apr 11, 2010 at 10:56 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> 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
>> (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.
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5931
; Package
emacs
.
(Thu, 06 Feb 2014 00:28:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 5931 <at> debbugs.gnu.org (full text, mbox):
Lennart Borgman <lennart.borgman <at> gmail.com> 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/
bug closed, send any further explanations to
5931 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 06 Feb 2014 00:28:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Mar 2014 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.