diff options
| author | Noam Postavsky | 2018-06-05 21:07:19 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-06-07 08:42:55 -0400 |
| commit | 9966842a2166d42cb6969b6bbc5154960d1252bc (patch) | |
| tree | cadfefc44db665845300d47eebb2671df465d630 | |
| parent | 3509aaaefe1996ea46b038850629b6d2f7a726fe (diff) | |
| download | emacs-9966842a2166d42cb6969b6bbc5154960d1252bc.tar.gz emacs-9966842a2166d42cb6969b6bbc5154960d1252bc.zip | |
Let isearch-yank-kill enable isearch-mode if needed (Bug#21419)
* lisp/isearch.el (isearch-yank-kill): Enable isearch-mode if needed.
| -rw-r--r-- | lisp/isearch.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 2036 | (defun isearch-yank-kill () | 2036 | (defun isearch-yank-kill () |
| 2037 | "Pull string from kill ring into search string." | 2037 | "Pull string from kill ring into search string." |
| 2038 | (interactive) | 2038 | (interactive) |
| 2039 | (unless isearch-mode (isearch-mode t)) | ||
| 2039 | (isearch-yank-string (current-kill 0))) | 2040 | (isearch-yank-string (current-kill 0))) |
| 2040 | 2041 | ||
| 2041 | (defun isearch-yank-pop () | 2042 | (defun isearch-yank-pop () |