summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2009-07-08 19:40:39 +0000
committerTaylor R Campbell <campbell@mumble.net>2009-07-08 19:40:39 +0000
commit446316e7c2d9de0ce050f97b1ef0b623192d6f7c (patch)
tree4c530e4d3433e9ae782fe37713e67eb6dd7e9e00 /paredit.el
parent41a0a344acf992ae9570185d9b39b87161fadd17 (diff)
Ignore errors while indenting after inserting a comment.
This fixes an error after applying M-; to `(foo |)'. darcs-hash:20090708194039-00fcc-0f608f8e09edabce65c5b45d5d8c86ef24bb8dcd
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el2
1 files changed, 1 insertions, 1 deletions
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