]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/info.el (Info-isearch-push-state): Use proper closures
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2021 22:13:28 +0000 (18:13 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2021 22:13:28 +0000 (18:13 -0400)
lisp/info.el

index 2757ed578265266a41afbf250f50b92380b95c6d..cdf339ff6fb9901ea87a373218026799887a84ec 100644 (file)
@@ -2148,8 +2148,10 @@ If DIRECTION is `backward', search in the reverse direction."
     (goto-char (if isearch-forward (point-min) (point-max)))))
 
 (defun Info-isearch-push-state ()
-  `(lambda (cmd)
-     (Info-isearch-pop-state cmd ',Info-current-file ',Info-current-node)))
+  (let ((file Info-current-file)
+        (node Info-current-node))
+    (lambda (cmd)
+      (Info-isearch-pop-state cmd file node))))
 
 (defun Info-isearch-pop-state (_cmd file node)
   (or (and (equal Info-current-file file)