summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2010-12-05 17:30:31 +0000
committerTaylor R Campbell <campbell@mumble.net>2010-12-05 17:30:31 +0000
commitb51f220aa8d21011b6eab253e4593c372c4ef8ee (patch)
tree7f644dc45d4e5b417043975cf28037a5f622c3b9
parent79b5d96f799e282016ccb9da7f65ad05404c6668 (diff)
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
-rw-r--r--paredit.el3
1 files changed, 2 insertions, 1 deletions
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)