Function: isearch-yank-pop

isearch-yank-pop is an interactive and byte-compiled function defined in isearch.el.gz.

Signature

(isearch-yank-pop)

Documentation

Replace just-yanked search string with previously killed string.

Unlike isearch-yank-pop-only, when this command is called not immediately after a isearch-yank-kill or a isearch-yank-pop, it activates the minibuffer to read a string from the kill-ring as yank-pop does.

View in manual

Probably introduced at or before Emacs version 24.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-yank-pop ()
  "Replace just-yanked search string with previously killed string.
Unlike `isearch-yank-pop-only', when this command is called not immediately
after a `isearch-yank-kill' or a `isearch-yank-pop', it activates the
minibuffer to read a string from the `kill-ring' as `yank-pop' does."
  (interactive)
  (if (not (memq last-command '(isearch-yank-kill
                                isearch-yank-pop isearch-yank-pop-only)))
      (isearch-yank-from-kill-ring)
    (isearch-pop-state)
    (isearch-yank-string (current-kill 1))))