[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 5558fd0 137/224: Make `paredit-in-char-p' work rec
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 5558fd0 137/224: Make `paredit-in-char-p' work recursively. |
Date: |
Sat, 7 Aug 2021 09:22:36 -0400 (EDT) |
branch: elpa/paredit
commit 5558fd0a6d343a0ea0c35b4a64429eccb9af8e42
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Make `paredit-in-char-p' work recursively.
Ignore-this: 32164dfb4309af09754d8a6ed0749f0d
It's basically an alias for `paredit-in-string-escape-p' now.
Replacing one by the other would make too big a diff.
darcs-hash:20110411230056-00fcc-d2838af6bff48ed698f596abfc345453f1bfad63
---
paredit.el | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/paredit.el b/paredit.el
index cdb7ce9..e8a794c 100644
--- a/paredit.el
+++ b/paredit.el
@@ -2458,18 +2458,11 @@ This assumes that `paredit-in-string-p' has already
returned true."
(backward-char)))
oddp))
-(defun paredit-in-char-p (&optional argument)
- "True if the point is immediately after a character literal.
-A preceding escape character, not preceded by another escape character,
- is considered a character literal prefix. (This works for elisp,
- Common Lisp, and Scheme.)
-Assumes that `paredit-in-string-p' is false, so that it need not handle
- long sequences of preceding backslashes in string escapes. (This
- assumes some other leading character token -- ? in elisp, # in Scheme
- and Common Lisp.)"
- (let ((argument (or argument (point))))
- (and (eq (char-before argument) ?\\ )
- (not (eq (char-before (1- argument)) ?\\ )))))
+(defun paredit-in-char-p (&optional position)
+ "True if point is on a character escape outside a string."
+ (save-excursion
+ (goto-char (or position (point)))
+ (paredit-in-string-escape-p)))
(defun paredit-indent-sexps ()
"If in a list, indent all following S-expressions in the list."
- [nongnu] elpa/paredit 620c3a2 116/224: Break page in test.el before indentation regression tests., (continued)
- [nongnu] elpa/paredit 620c3a2 116/224: Break page in test.el before indentation regression tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d681e3c 111/224: Check for expected errors in `paredit-forward-delete'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5dc93f9 114/224: Omit redundant `paredit-forward-delete' test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0cd0011 109/224: Implement expected errors in test suite., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8ee8f13 118/224: Fix `paredit-insert-pair' when buffer ends with no-newline comment., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit fc78011 121/224: Tweak `paredit-check-region' and `paredit-region-ok-p'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 621be23 124/224: Add some tests for recent changes to deletion and killing commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit fac925d 125/224: Tweak safe region deletion., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8d87576 129/224: Fix logic in checking region deletion across comment boundaries., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 4723fb3 132/224: Add and fix some tests for `(' and `)' while in a character literal., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5558fd0 137/224: Make `paredit-in-char-p' work recursively.,
ELPA Syncer <=
- [nongnu] elpa/paredit 88a5cf7 139/224: Be explicit about Transient Mark Mode in `paredit-wrap-*' tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d80a9db 141/224: Fail early in `paredit-convolute-sexp'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2ec6000 145/224: Fix error message in `paredit-test'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 6f2677b 148/224: Tweak `paredit-convolute-sexp' a little and add some tests for it., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d54ea28 149/224: Add a trivial shell script to generate paredit.html., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 540bc9c 153/224: Remove unnecessarily nasty text about reporting bugs., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit b02f509 156/224: New file NEWS from paredit.release., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit b647a1a 158/224: Bump copyright year on test.el to 2013., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f25cd3b 159/224: Add a zillion paredit-kill tests. Fix a tiny bug they revealed., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 460254d 162/224: Fix paredit-doublequote inside a string escape., ELPA Syncer, 2021/08/07