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

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

[elpa] externals/el-search 97626ac 192/332: Use local binding of `post-c


From: Stefan Monnier
Subject: [elpa] externals/el-search 97626ac 192/332: Use local binding of `post-command-hook' to reset wrap flag
Date: Tue, 1 Dec 2020 15:48:42 -0500 (EST)

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

    Use local binding of `post-command-hook' to reset wrap flag
    
    The current search is a global thing, so we must use the global value
    of `post-command-hook' to reset the `el-search--wrap-flag'.
---
 el-search.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/el-search.el b/el-search.el
index be58eae..95441d6 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.4.0.7
+;; Version: 1.4.0.8
 ;; Package-Requires: ((emacs "25") (stream "2.2.4"))
 
 
@@ -1905,12 +1905,12 @@ local binding of `window-scroll-functions'."
 (defun el-search--reset-wrap-flag ()
   (unless (or (eq this-command 'el-search-query-replace)
               (eq this-command 'el-search-pattern))
-    (remove-hook 'post-command-hook 'el-search--reset-wrap-flag t)
+    (remove-hook 'post-command-hook 'el-search--reset-wrap-flag)
     (setq el-search--wrap-flag nil)))
 
 (defun el-search--set-wrap-flag (value)
   (when value
-    (add-hook 'post-command-hook #'el-search--reset-wrap-flag t t))
+    (add-hook 'post-command-hook #'el-search--reset-wrap-flag t))
   (setq el-search--wrap-flag value))
 
 



reply via email to

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