branch: elpa/paredit
commit b51f220aa8d21011b6eab253e4593c372c4ef8ee
Author: Taylor R Campbell <[email protected]>
Commit: Taylor R Campbell <[email protected]>
In `paredit-newline', ignore parse errors during `indent-sexp'.
Ignore-this: 5326ec1a70a5ef42729e107418bd2879
The point may be followed by a closing delimiter with no intervening
S-expressions. This case was already handled when the point is
outside a comment; I neglected it when the point is inside a comment.
darcs-hash:20101205173031-00fcc-46d7e591ca9dc2c1a0340c3b0c00312e1646d672
---
paredit.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/paredit.el b/paredit.el
index 90813a0..f51d24e 100644
--- a/paredit.el
+++ b/paredit.el
@@ -989,7 +989,8 @@ If in a comment and if followed by invalid structure, call
(newline))
((paredit-in-comment-p)
(if (paredit-region-ok-p (point) (point-at-eol))
- (progn (newline-and-indent) (indent-sexp))
+ (progn (newline-and-indent)
+ (paredit-ignore-sexp-errors (indent-sexp)))
(indent-new-comment-line)))
(t
(if (paredit-in-char-p)