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

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

[elpa] externals/el-search 2f427dd 318/332: [el-search] Query-replace: C


From: Stefan Monnier
Subject: [elpa] externals/el-search 2f427dd 318/332: [el-search] Query-replace: Change skip keys
Date: Tue, 1 Dec 2020 15:49:13 -0500 (EST)

branch: externals/el-search
commit 2f427dd1a9011d4fe9c49e91d3b4dde175e32a6c
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Michael Heerdegen <michael_heerdegen@web.de>

    [el-search] Query-replace: Change skip keys
    
    Move the keys in the 'el-search-query-replace' prompt to skip matches
    inside replacements away from y and n so that they can't be used by
    accident.
    Also bump version to 1.12.3.
    
    * packages/el-search/el-search.el
    (el-search--search-and-replace-pattern): Change keys to skip matches
    in replacements from y/n/Y/N to s/d/S/D.
---
 el-search.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/el-search.el b/el-search.el
index 2c28e4e..e7357d3 100644
--- a/el-search.el
+++ b/el-search.el
@@ -7,7 +7,7 @@
 ;; Created: 29 Jul 2015
 ;; Keywords: lisp
 ;; Compatibility: GNU Emacs 25
-;; Version: 1.12.2
+;; Version: 1.12.3
 ;; Package-Requires: ((emacs "25") (stream "2.2.4") (cl-print "1.0"))
 
 
@@ -4796,22 +4796,22 @@ Replace all matches in all buffers"))))
                                             (propertize
                                              "Skip the matches in the 
replacement? "
                                              'face 
'el-search-highlight-in-prompt-face)
-                                            '((?y "yes"
+                                            '((?s "skip"
                                                   "Skip any matches in this 
replacement")
-                                              (?n "no"
+                                              (?d "don't"
                                                   "Continue with the matches 
in the replacement")
-                                              (?Y "always Yes"
+                                              (?S "always Skip"
                                                   "Skip now and for the rest 
of this session")
-                                              (?N "always No"
+                                              (?D "always Don't"
                                                   "Don't skip now and for the 
rest of this session")
                                               (?q "quit"
                                                   "Abort this query-replace 
session"))))
-                                 ((and (or ?y ?Y) answer)
-                                  (when (= answer ?Y) (setq 
skip-matches-in-replacement t))
+                                 ((and (or ?s ?S) answer)
+                                  (when (= answer ?S) (setq 
skip-matches-in-replacement t))
                                   (funcall skip-replacement))
                                  (?q (signal 'quit t))
                                  (answer
-                                  (when (= answer ?N) (setq 
skip-matches-in-replacement nil))
+                                  (when (= answer ?D) (setq 
skip-matches-in-replacement nil))
                                   (when replace-all
                                     (setq replace-all nil)
                                     ;; FIXME: can this be annoying?  Problem: 
we need to catch possibly



reply via email to

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