diff options
author | Taylor R Campbell <campbell+paredit@mumble.net> | 2016-06-15 20:25:41 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell+paredit@mumble.net> | 2016-06-15 20:25:44 +0000 |
commit | 7c27746a8eb259ae24b5dce9380801c4846258f0 (patch) | |
tree | e42ea9e06e49e73b8bdc1acf0cd26f201a220cb8 | |
parent | 2f6f67283c6c41af5a74271fc025c2e837f3d2a2 (diff) |
Fix some wording about paredit-space-for-delmiter-predicates.
This description is still bad and could use more work. Patches
welcome!
Noted by Leo Liu.
-rw-r--r-- | paredit.el | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -771,17 +771,16 @@ If such a comment exists, delete the comment (including all leading "List of predicates for whether to put space by delimiter at point. Each predicate is a function that is is applied to two arguments, ENDP and DELIMITER, and that returns a boolean saying whether to put a - space next to the delimiter -- before the delimiter if ENDP is false, - after the delimiter if ENDP is true. + space next to the delimiter -- before/after the delimiter if ENDP is + false/true, respectively. If any predicate returns false, no space is inserted: every predicate has veto power. -Each predicate may assume that the point is not at the beginning of the - buffer, if ENDP is false, or at the end of the buffer, if ENDP is - true; and that the point is not preceded, if ENDP is false, or - followed, if ENDP is true, by a word or symbol constituent, a quote, - or the delimiter matching DELIMITER. -Each predicate should examine only text before the point, if ENDP is - false, or only text after the point, if ENDP is true.") +Each predicate may assume that the point is not at the beginning/end of + the buffer, and that the point is preceded/followed by a word + constituent, symbol constituent, string quote, or delimiter matching + DELIMITER, if ENDP is false/true, respectively. +Each predicate should examine only text before/after the point if ENDP is + false/true, respectively.") (defun paredit-space-for-delimiter-p (endp delimiter) ;; If at the buffer limit, don't insert a space. If there is a word, |