branch: externals/jinx
commit 65d90fcb9a02cda9e541108bc36212218cabb814
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Minor simplification
---
 jinx.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jinx.el b/jinx.el
index ff7b0257b1..79af461508 100644
--- a/jinx.el
+++ b/jinx.el
@@ -663,8 +663,8 @@ See `isearch-open-necessary-overlays' and 
`isearch-open-overlay-temporary'."
         (let ((hl (make-overlay (overlay-start overlay) (overlay-end 
overlay))))
           (overlay-put hl 'face 'jinx-highlight)
           (overlay-put hl 'window (selected-window))
-          (push (lambda () (delete-overlay hl)) restore)
-          (cl-callf2 append (jinx--invisible-open-temporarily) restore)
+          (setq restore (cons (lambda () (delete-overlay hl))
+                              (jinx--invisible-open-temporarily)))
           (funcall fun))
       (mapc #'funcall restore))))
 

Reply via email to