From: Noam Postavsky Date: Wed, 6 Jun 2018 01:07:19 +0000 (-0400) Subject: Let isearch-yank-kill enable isearch-mode if needed (Bug#21419) X-Git-Tag: emacs-27.0.90~4923 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9966842a2166d42cb6969b6bbc5154960d1252bc;p=emacs.git Let isearch-yank-kill enable isearch-mode if needed (Bug#21419) * lisp/isearch.el (isearch-yank-kill): Enable isearch-mode if needed. --- diff --git a/lisp/isearch.el b/lisp/isearch.el index feadf10e8b7..1e785a44c51 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -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 ()