summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2013-04-07 16:31:54 +0000
committerTaylor R Campbell <campbell@mumble.net>2013-04-07 16:31:54 +0000
commitdc96f75f58be03703ae905d5dde055e3436d048a (patch)
tree0bec316bc5bbc3818f22f380080881ebfa6cfafc
parent427d8e1f74e828cb0e9231f1a224fdcd40afde05 (diff)
Add clearer names for the enclosing string start/end points.
-rw-r--r--paredit.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/paredit.el b/paredit.el
index 3e54481..3ad7f72 100644
--- a/paredit.el
+++ b/paredit.el
@@ -2526,6 +2526,12 @@ This assumes that `paredit-in-string-p' has already returned true, i.e.
(forward-sexp 1)
(cons start (1- (point))))))
+(defun paredit-enclosing-string-start ()
+ (car (paredit-string-start+end-points)))
+
+(defun paredit-enclosing-string-end ()
+ (+ 1 (cdr (paredit-string-start+end-points))))
+
(defun paredit-in-comment-p (&optional state)
"True if parse state STATE is within a comment.
If no parse state is supplied, compute one from the beginning of the