[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit c91bc2f 099/224: Fix bug in change to check struct
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit c91bc2f 099/224: Fix bug in change to check structure in backward-delete of comment end. |
Date: |
Sat, 7 Aug 2021 09:22:27 -0400 (EDT) |
branch: elpa/paredit
commit c91bc2f64caf3a1b9862db6f854a1620452a7f5c
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Fix bug in change to check structure in backward-delete of comment end.
Ignore-this: a404afd4e847db4ef89b17de42d431e4
It was copied & pasted from `paredit-forward-delete-in-comment'
incautiously and lacked a necessary `save-excursion'.
darcs-hash:20110323034916-00fcc-55ea95fc6be8f4b57fbadfd2c8cc04942dbd2b1e
---
paredit.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/paredit.el b/paredit.el
index b851a67..76e16bb 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1374,11 +1374,13 @@ With a `C-u' prefix argument, simply delete a character
backward,
(defun paredit-backward-delete-maybe-comment-end ()
;; Refuse to delete a comment end if moving the line into the comment
;; would break structure.
- (let ((line-start-state (paredit-current-parse-state)))
- (if (not (comment-search-forward (point-at-eol) t))
- (goto-char (point-at-eol)))
- (let ((line-end-state (paredit-current-parse-state)))
- (paredit-check-region-state line-start-state line-end-state)))
+ (let* ((line-start-state (paredit-current-parse-state))
+ (line-end-state
+ (save-excursion
+ (if (not (comment-search-forward (point-at-eol) t))
+ (goto-char (point-at-eol)))
+ (paredit-current-parse-state))))
+ (paredit-check-region-state line-start-state line-end-state))
(backward-delete-char 1))
;;;; Killing
- [nongnu] elpa/paredit 0ada66e 023/224: Update the compatibility and compiler warning suppression hacks for Emacs 22., (continued)
- [nongnu] elpa/paredit 0ada66e 023/224: Update the compatibility and compiler warning suppression hacks for Emacs 22., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f7c26b9 027/224: Fix kill & yank errors with `paredit-lose-if-not-in-sexp' while barfing., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 929e547 038/224: Fix some opening remarks about enabling paredit mode., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 90c7eda 042/224: Revive `paredit-semicolon', with better behaviour., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit a26a9a7 075/224: Permit joining adjacent lists without intervening whitespace., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f27c480 070/224: Implement `paredit-override-check-parens-function'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 67caf7e 071/224: Eliminate fboundp check for `check-parens' in `paredit-check-region'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit ae53a2c 077/224: Show point in `paredit-semicolon' example., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 26a3ddb 085/224: Add `paredit-doublequote' examples at end of string and in comment., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 33463ae 102/224: Third argument to `indent-region' is not optional in GNU Emacs 21., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit c91bc2f 099/224: Fix bug in change to check structure in backward-delete of comment end.,
ELPA Syncer <=
- [nongnu] elpa/paredit 7e3b3f0 096/224: In `paredit-recenter-on-sexp', handle S-expressions larger than screen., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 6918d89 108/224: Don't indent while the buffer is in intermediate broken states., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit adfccc5 123/224: Check `paredit-kill' in a comment more carefully., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 23afafc 128/224: Add some trivial tests for region deletion/killing commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2e61740 134/224: Fix docstring of `paredit-check-region-for-delete'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit eb138b5 135/224: Replace `paredit-wrap-sexp' tests by `paredit-wrap-round' &c. tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit a795774 143/224: Set `show-trailing-whitespace' to nil when running tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f349cc5 003/224: Changes for version 7., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit f588dcb 007/224: Changes for version 11., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit a04d9b6 010/224: Changes for version 14, introducing fancy comment handling., ELPA Syncer, 2021/08/07