summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/paredit.el b/paredit.el
index 8cd3e19..2f27690 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1701,6 +1701,9 @@ If that text is unbalanced, signal an error instead."
(kill-region beginning end))
(defun paredit-check-region-state (beginning-state end-state)
+ "Signal an error if the two parse-partial-sexp states differ.
+This guarantees that excising the text between the two states'
+ points from the buffer will leave the buffer balanced."
(paredit-check-region-state-depth beginning-state end-state)
(paredit-check-region-state-string beginning-state end-state)
(paredit-check-region-state-comment beginning-state end-state)