emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9966842: Let isearch-yank-kill enable isearch-mode


From: Noam Postavsky
Subject: [Emacs-diffs] master 9966842: Let isearch-yank-kill enable isearch-mode if needed (Bug#21419)
Date: Thu, 7 Jun 2018 08:47:01 -0400 (EDT)

branch: master
commit 9966842a2166d42cb6969b6bbc5154960d1252bc
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Let isearch-yank-kill enable isearch-mode if needed (Bug#21419)
    
    * lisp/isearch.el (isearch-yank-kill): Enable isearch-mode if needed.
---
 lisp/isearch.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index feadf10..1e785a4 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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]