From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Timers and sentinels
Date: Sun, 26 Sep 2010 17:19:15 +0200 [thread overview]
Message-ID: <m2wrq87css.fsf@gmail.com> (raw)
In-Reply-To: m3hbhc63ke.fsf@quimbies.gnus.org
* 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
next prev parent reply other threads:[~2010-09-26 15:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-25 13:49 Timers and sentinels Lars Magne Ingebrigtsen
2010-09-26 11:09 ` Uday S Reddy
2010-09-26 11:56 ` Lars Magne Ingebrigtsen
2010-09-26 13:20 ` Eli Zaretskii
2010-09-26 13:24 ` Lars Magne Ingebrigtsen
2010-09-26 15:19 ` Helmut Eller [this message]
2010-09-26 18:36 ` Eli Zaretskii
2010-09-26 18:53 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wrq87css.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.