[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timers and sentinels
From: |
Helmut Eller |
Subject: |
Re: Timers and sentinels |
Date: |
Sun, 26 Sep 2010 17:19:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
* Lars Magne Ingebrigtsen [2010-09-26 13:24] writes:
> Hm. What I'm seeing is that (possibly) the function being run from the
> timer is interrupted by an image insertion, and the latter is being run
> off of url-fetch, which, I guess, is a sentinel function. Which might
> be triggered when the subprocess exits... Hm... but is that possible?
No. The only "interrupt" at Lisp level is C-g. Everything else is
called by the event loop. C level signal handlers have to put stuff in
a queue and the event loop will look there when it gets to it. C level
signal handlers can't call Lisp code (just imagine what would happen if
the GC were interrupted by a signal and the signal handler would call
Lisp code).
With timers you have to watch out for the (IMO counterproductive)
condition-case in timer-event-handler which swallows all errors without
giving you a notice.
Helmut