Function: ses-yank-pop

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

Signature

(ses-yank-pop ARG)

Documentation

Replace just-yanked stretch of killed text with a different stretch.

This command is allowed only immediately after a yank or a yank-pop, when the region contains a stretch of reinserted previously-killed text. We replace it with a different stretch of killed text.
  Unlike standard yank-pop, this function uses undo to delete the
previous insertion.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-yank-pop (arg)
  "Replace just-yanked stretch of killed text with a different stretch.
This command is allowed only immediately after a `yank' or a `yank-pop',
when the region contains a stretch of reinserted previously-killed text.
We replace it with a different stretch of killed text.
  Unlike standard `yank-pop', this function uses `undo' to delete the
previous insertion."
  (interactive "*p")
  (or (eq last-command 'yank)
      ;;Use noreturn here just to avoid a "poor-coverage" warning in its
      ;;macro definition.
      (noreturn (error "Previous command was not a yank")))
  (undo)
  (ses-set-curcell)
  (yank (1+ (or arg 1)))
  (setq this-command 'yank))