diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-01-12 20:23:48 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-01-12 20:23:48 -0500 |
commit | e5b5a34dd1b9cd428e988d1bbc2af658c3e25daa (patch) | |
tree | 3706c4fe486c3f2b2faad19510105d55a4d767a6 /lisp/emacs-lisp | |
parent | 5ca9b80e95ef376d0247c813ae39eb2f476cf880 (diff) | |
download | emacs-e5b5a34dd1b9cd428e988d1bbc2af658c3e25daa.tar.gz emacs-e5b5a34dd1b9cd428e988d1bbc2af658c3e25daa.tar.bz2 emacs-e5b5a34dd1b9cd428e988d1bbc2af658c3e25daa.zip |
* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
(jit-lock--debug-fontifying): New var.
(jit-lock--debug-fontify): New function.
* lisp/subr.el (condition-case-unless-debug): Don't prevent catching the
error, just let the debbugger run.
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
timer code and don't drop errors silently.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/timer.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index 3eaacd24ec8..8b019d0a785 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el @@ -307,13 +307,13 @@ This function is called, by name, directly by the C code." ;; Run handler. ;; We do this after rescheduling so that the handler function ;; can cancel its own timer successfully with cancel-timer. - (condition-case nil + (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 nil)) + (error (message "Error in timer: %S" err))) (if retrigger (setf (timer--triggered timer) nil))) (error "Bogus timer event")))) |