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

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

[nongnu] elpa/anzu 7c56f15f72 068/288: add deactivate-region flag when u


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 7c56f15f72 068/288: add deactivate-region flag when using region
Date: Thu, 6 Jan 2022 03:58:40 -0500 (EST)

branch: elpa/anzu
commit 7c56f15f72ea425c93b5181ac8eec8d2b8155d27
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    add deactivate-region flag when using region
    
    It is hart to see marker if anzu-replace commands are used with region.
---
 anzu.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/anzu.el b/anzu.el
index a72aa97d71..8de12b6fcd 100644
--- a/anzu.el
+++ b/anzu.el
@@ -87,6 +87,11 @@
   :type 'number
   :group 'anzu)
 
+(defcustom anzu-deactivate-region nil
+  "Deactive region if you use anzu a replace command with region"
+  :type 'boolean
+  :group 'anzu)
+
 (defface anzu-mode-line
   '((t (:foreground "magenta" :weight bold)))
   "face of anzu modeline"
@@ -447,6 +452,8 @@
          (delimited current-prefix-arg)
          (curbuf (current-buffer))
          (clear-overlay nil))
+    (when (and anzu-deactivate-region use-region)
+      (deactivate-mark t))
     (unwind-protect
         (let* ((from (if symbol-beg
                          (progn



reply via email to

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