From 8df912e4f47928e29776086741ef57eb067aeb5c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 6 Feb 2008 16:55:31 +0000 Subject: [PATCH] dot-emacs: Make `trap' report the erroneous code. This helps a bit when confusing messages appear. --- dot-emacs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot-emacs.el b/dot-emacs.el index c5e3dfd..e10f9ed 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -34,7 +34,9 @@ "Execute FORMS without allowing errors to propagate outside." `(condition-case err ,(if (cdr forms) (cons 'progn forms) (car forms)) - (error (message "Error (trapped): %s" (error-message-string err))))) + (error (message "Error (trapped): %s in %s" + (error-message-string err) + ',forms)))) ;; --- Configuration reading --- -- 2.11.0