]> git.eshelyaron.com Git - emacs.git/commitdiff
Let isearch-yank-kill enable isearch-mode if needed (Bug#21419)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 6 Jun 2018 01:07:19 +0000 (21:07 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 7 Jun 2018 12:42:55 +0000 (08:42 -0400)
* lisp/isearch.el (isearch-yank-kill): Enable isearch-mode if needed.

lisp/isearch.el

index feadf10e8b702fb40f8d1bd4c3b8003091cadbde..1e785a44c51f305442bd3992cd86f04e46fe3535 100644 (file)
@@ -2036,6 +2036,7 @@ If search string is empty, just beep."
 (defun isearch-yank-kill ()
   "Pull string from kill ring into search string."
   (interactive)
+  (unless isearch-mode (isearch-mode t))
   (isearch-yank-string (current-kill 0)))
 
 (defun isearch-yank-pop ()