[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 9faf474 073/224: Use `scan-sexps' for noninteracti
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 9faf474 073/224: Use `scan-sexps' for noninteractive `check-parens'. |
Date: |
Sat, 7 Aug 2021 09:22:22 -0400 (EDT) |
branch: elpa/paredit
commit 9faf474ddc220d2341e37171ae8373d3721a41e4
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Use `scan-sexps' for noninteractive `check-parens'.
Ignore-this: 5116ca507a480c4bb4cfe95b9ab34820
This enables the use of the safer `paredit-handle-sexp-errors'
instead of `condition-case' for these purposes.
darcs-hash:20110320192038-00fcc-e4799c56417a15787ca03f8b06962718412bbe88
---
paredit.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/paredit.el b/paredit.el
index 33dff5e..a05ed06 100644
--- a/paredit.el
+++ b/paredit.el
@@ -2079,8 +2079,10 @@ With a prefix argument N, move up N lists before
wrapping."
(search-forward "\\" nil t))
(delete-char -1)
(forward-char))
- (funcall (condition-case condition (progn (check-parens) 'buffer-string)
- (error (lambda () nil))))))
+ (paredit-handle-sexp-errors
+ (progn (scan-sexps (point-min) (point-max))
+ (buffer-string))
+ nil)))
;;;; Slurpage & Barfage
@@ -2477,12 +2479,7 @@ If no parse state is supplied, compute one from the
beginning of the
(progn
(save-restriction
(narrow-to-region start end)
- ;; Can't use `check-parens' here -- it signals the wrong kind
- ;; of errors.
- (save-excursion
- (goto-char (point-min))
- (while (not (eobp))
- (forward-sexp))))
+ (scan-sexps (point-min) (point-max)))
t)
nil))
- [nongnu] elpa/paredit e380e42 048/224: Implement `paredit-{for, back}ward-{up, down}'., (continued)
- [nongnu] elpa/paredit e380e42 048/224: Implement `paredit-{for, back}ward-{up, down}'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 3ce96a4 050/224: Fix format arguments in `paredit-check-region-state-comment'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 73c481a 061/224: Simplify and clarify implementation of `paredit-backslash'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit b51f220 055/224: In `paredit-newline', ignore parse errors during `indent-sexp'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0011090 066/224: Fix bounds checking in `paredit-find-next-string-start'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit bd0e5ba 072/224: Don't mask errors during `buffer-string' in `paredit-unescape-string'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit b7f234a 067/224: Preserve column in `paredit-reindent-defun'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2a94a48 103/224: Set `indent-tabs-mode' and `current-column' in `paredit-test'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit e06ab40 063/224: Spell `paredit-recenter-on-sexp' to match convention in Emacs., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0a7619c 089/224: Fix `imbalanced' -> `unbalanced' in `paredit-kill-ring-save' docstring., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 9faf474 073/224: Use `scan-sexps' for noninteractive `check-parens'.,
ELPA Syncer <=
- [nongnu] elpa/paredit a79aa2c 082/224: Fix end-of-line and end-of-buffer corner cases of `paredit-semicolon'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8a85899 098/224: Omit vestigial debugging message from `paredit-test' in test.el., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 678d843 107/224: Make the exhortation about bug reports slightly less harsh., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f5e7959 081/224: Show point in `paredit-splice-sexp-killing-forward' example., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 4800e25 101/224: Use `let*' rather than `let' in `paredit-indent-sexps'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit dd8c16f 105/224: Omit vestigial unattached asterisk in summary at top., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 1045e15 117/224: Add trivial tests for `paredit-open-...' with prefix arguments., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 67a3f00 126/224: Support setting the mark in test cases, indicated by an underscore., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit b558286 138/224: Add character deletion tests to verify the new `paredit-in-char-p'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 73e664e 119/224: Add test for C-u ( with trailing comment and no trailing newline., ELPA Syncer, 2021/08/07