[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why timers are now catching errors
From: |
Thierry Volpiatto |
Subject: |
Re: Why timers are now catching errors |
Date: |
Sun, 13 Jan 2013 18:30:08 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Thierry Volpiatto <address@hidden> writes:
> Like this (working fine here):
>
> (condition-case-unless-debug err
> ;; Timer functions should not change the current buffer.
> ;; If they do, all kinds of nasty surprises can happen,
> ;; and it can be hellish to track down their source.
> (save-current-buffer
> (apply (timer--function timer) (timer--args timer)))
> (error (and debug-on-error (message "Error in timer: %S" err))))
I wanted to fix this locally in elpa but bzr crash after some time (as usual):
bzr branch bzr+ssh://address@hidden/emacs/elpa
=>bzr: ERROR: exceptions.AssertionError: ('not present: %r', StaticTuple('',
'', 'TREE_ROOT'))
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Stefan Monnier, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Stefan Monnier, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors,
Thierry Volpiatto <=
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Eli Zaretskii, 2013/01/13
- Re: Why timers are now catching errors, Thierry Volpiatto, 2013/01/13