branch: elpa/paredit
commit 446316e7c2d9de0ce050f97b1ef0b623192d6f7c
Author: Taylor R Campbell <[email protected]>
Commit: Taylor R Campbell <[email protected]>
Ignore errors while indenting after inserting a comment.
This fixes an error after applying M-; to `(foo |)'.
darcs-hash:20090708194039-00fcc-0f608f8e09edabce65c5b45d5d8c86ef24bb8dcd
---
paredit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/paredit.el b/paredit.el
index f05f540..6fc8de7 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1082,7 +1082,7 @@ This is expected to be called only in
`paredit-comment-dwim'; do not
(save-excursion
(newline)
(lisp-indent-line)
- (indent-sexp))))
+ (paredit-ignore-sexp-errors (indent-sexp)))))
(t
;; Margin comment
(indent-to comment-column 1) ; 1 -> force one leading space