emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/paredit 8d87576 129/224: Fix logic in checking region dele


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 8d87576 129/224: Fix logic in checking region deletion across comment boundaries.
Date: Sat, 7 Aug 2021 09:22:34 -0400 (EDT)

branch: elpa/paredit
commit 8d87576f5fe082236f8b9bd180f2cad9df01e043
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>

    Fix logic in checking region deletion across comment boundaries.
    
    Ignore-this: ea283af1a5a27d8d3fe32647e8aa5910
    
    darcs-hash:20110411190348-00fcc-7a8d049f8be17ea0ffec1070fe7ae7a58d0f47be
---
 paredit.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/paredit.el b/paredit.el
index 6d902f5..860caed 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1722,10 +1722,10 @@ With a prefix argument, skip the balance check."
                  ;; comment state may be a number, not t or nil at all,
                  ;; for nestable comments, which are not handled by
                  ;; this heuristic (or any of paredit, really).)
-                 (and (or (eq start-comment-state nil)
-                          (eq end-comment-state t))
-                      (or (eq start-comment-state t)
-                          (eq end-comment-state nil))
+                 (and (or (and (eq start-comment-state nil)
+                               (eq end-comment-state t))
+                          (and (eq start-comment-state t)
+                               (eq end-comment-state nil)))
                       (save-excursion
                         (goto-char end)
                         (paredit-region-ok-p (point) (point-at-eol))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]