[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24959: 26.0.50; cancel-timer: void-variable timer
From: |
Oleg Sivokon |
Subject: |
bug#24959: 26.0.50; cancel-timer: void-variable timer |
Date: |
Thu, 17 Nov 2016 20:00:27 +0200 |
Lars,
Simplified version looks like this:
(setq timer (run-at-time 1 1 (lambda () (cancel-timer timer)))
The version that does work looks like this:
(let ((timer [nil]))
(aset timer 0 (run-at-time 1 1 (lambda (timer) (cancel-timer (aref
timer 0))) timer))
On Thu, Nov 17, 2016 at 7:56 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Oleg Sivokon <oleg.sivokon@elastifile.com> writes:
>
>> The code in the handler relies on the code that sets up the timer to
>> create a special variable "timer". This variable is created by calling
>> setq (but no defvar). setq used to make variable special, if it wasn't
>> already let-bound. Now it seems like this behavior has changed. Does
>> this make sense?
>
> You need to find the code that created the timer. If you find it and
> post it here, we may be able to tell what's wrong with it.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Eli Zaretskii, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Lars Ingebrigtsen, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Lars Ingebrigtsen, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer,
Oleg Sivokon <=
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Lars Ingebrigtsen, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Lars Ingebrigtsen, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Lars Ingebrigtsen, 2016/11/17
- bug#24959: 26.0.50; cancel-timer: void-variable timer, Oleg Sivokon, 2016/11/17