From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Andreas Schwab <schwab@suse.de>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Errors in timers
Date: Sun, 01 Jul 2007 22:49:35 +0200 [thread overview]
Message-ID: <4688135F.7090604@gmail.com> (raw)
In-Reply-To: <jek5tkdtcz.fsf@sykes.suse.de>
Andreas Schwab wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>
>> How is errors in timers supposed to be handled? It looks like those errors
>> are only seen if you set debug-on-signal.
>
> Timer functions are run inside condition-case, so error are caught and
> ignored. See timer-event-handler.
Yes, I do not remember exactly why it was added now, but I think it
would be very good to be able to see the errors to. Currently the only
way is to set debug-on-signal to t and that is a real sledge hammer.
As I see it it would be good to take care of this individually for
different timers.
I have no proposal for exactly how. The need might be a bit different
from when running a function directly. Timers can for example be run
repeatedly and maybe the fail sometimes and otherwise perform well.
Stopping them with a trace back might not be that good then. Perhaps
some kind of logging is better in such cases.
I myself currently put a highlighted traceback in the message buffer and
give a single message line to the user about that.
next prev parent reply other threads:[~2007-07-01 20:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-01 10:44 Errors in timers Lennart Borgman (gmail)
2007-07-01 15:41 ` Andreas Schwab
2007-07-01 20:49 ` Lennart Borgman (gmail) [this message]
2007-07-01 16:32 ` Richard Stallman
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=4688135F.7090604@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=schwab@suse.de \
/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.