diff options
author | Taylor R Campbell <campbell@mumble.net> | 2013-04-07 16:31:54 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell@mumble.net> | 2013-04-07 16:31:54 +0000 |
commit | dc96f75f58be03703ae905d5dde055e3436d048a (patch) | |
tree | 0bec316bc5bbc3818f22f380080881ebfa6cfafc /paredit.el | |
parent | 427d8e1f74e828cb0e9231f1a224fdcd40afde05 (diff) |
Add clearer names for the enclosing string start/end points.
Diffstat (limited to 'paredit.el')
-rw-r--r-- | paredit.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |