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

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

[elpa] externals/el-search 00d6af1 040/332: remove search wrapping funct


From: Stefan Monnier
Subject: [elpa] externals/el-search 00d6af1 040/332: remove search wrapping functionality
Date: Tue, 1 Dec 2020 15:48:07 -0500 (EST)

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

    remove search wrapping functionality
---
 el-search.el | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/el-search.el b/el-search.el
index fa9c26d..bf545ae 100644
--- a/el-search.el
+++ b/el-search.el
@@ -600,7 +600,8 @@ Additional `pcase' pattern types to be used with this 
command can
 be defined with `el-search-defpattern'.
 
 The following additional pattern types are currently defined:\n"
-  (interactive (list (if (eq this-command last-command)
+  (interactive (list (if (and (eq this-command last-command)
+                              el-search-success)
                          el-search-current-pattern
                        (let ((pattern
                               (el-search--read-pattern "Find pcase pattern: "
@@ -616,17 +617,13 @@ The following additional pattern types are currently 
defined:\n"
   (setq this-command 'el-search-pattern) ;in case we come from isearch
   (setq el-search-current-pattern pattern)
   (let ((opoint (point)))
-    (when (eq this-command last-command)
-      (if el-search-success
-          (el-search--skip-expression nil t)
-        ;; wrap search
-        (goto-char (point-min))))
+    (when (and (eq this-command last-command) el-search-success)
+      (el-search--skip-expression nil t))
     (setq el-search-success nil)
     (message "%s" (substitute-command-keys "Type \\[el-search-pattern] to 
repeat"))
     (when (condition-case nil
               (el-search--search-pattern pattern)
-            (end-of-buffer (message "No match; %s"
-                                    (substitute-command-keys "Type 
\\[el-search-pattern] to wrap"))
+            (end-of-buffer (message "No match")
                            (goto-char opoint)
                            (el-search-hl-remove)
                            (ding)



reply via email to

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