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

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

[elpa] externals/el-search 80ff841 085/332: Make el-search-pattern accep


From: Stefan Monnier
Subject: [elpa] externals/el-search 80ff841 085/332: Make el-search-pattern accept an optional NO-ERROR arg
Date: Tue, 1 Dec 2020 15:48:17 -0500 (EST)

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

    Make el-search-pattern accept an optional NO-ERROR arg
---
 el-search.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/el-search.el b/el-search.el
index de219de..4afcd91 100644
--- a/el-search.el
+++ b/el-search.el
@@ -937,7 +937,7 @@ You need `diff-hl-mode' turned on, provided by the library
 ;;;; Core functions
 
 ;;;###autoload
-(defun el-search-pattern (pattern)
+(defun el-search-pattern (pattern &optional no-error)
   "Start new or resume last elisp search.
 
 Search current buffer for expressions that are matched by `pcase'
@@ -964,7 +964,7 @@ The following additional pattern types are currently 
defined:"
                            (error "Please don't forget the quote when 
searching for a symbol"))
                          (el-search--wrap-pattern pattern)))))
   (if (not (called-interactively-p 'any))
-      (el-search--search-pattern pattern)
+      (el-search--search-pattern pattern no-error)
     (setq this-command 'el-search-pattern) ;in case we come from isearch
     (setq el-search-current-pattern pattern)
     (let ((opoint (point)))



reply via email to

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