~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b5d724d
)
dot-emacs: Make `trap' report the erroneous code.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Feb 2008 16:55:31 +0000
(16:55 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Feb 2008 17:00:35 +0000
(17:00 +0000)
This helps a bit when confusing messages appear.
dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/dot-emacs.el
b/dot-emacs.el
index
c5e3dfd
..
e10f9ed
100644
(file)
--- 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 ---