diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/misearch.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/misearch.el b/lisp/misearch.el index 338880f25f2..7f3e981bb0e 100644 --- a/lisp/misearch.el +++ b/lisp/misearch.el @@ -202,8 +202,9 @@ the initial buffer." "Save a function restoring the state of multiple buffers search. Save the current buffer to the additional state parameter in the search status stack." - `(lambda (cmd) - (multi-isearch-pop-state cmd ,(current-buffer)))) + (let ((buf (current-buffer))) + (lambda (cmd) + (multi-isearch-pop-state cmd buf)))) (defun multi-isearch-pop-state (_cmd buffer) "Restore the multiple buffers search state in BUFFER. |