Function: vi-repeat-last-search

vi-repeat-last-search is an interactive and byte-compiled function defined in vi.el.gz.

Signature

(vi-repeat-last-search ARG &optional SEARCH-COMMAND SEARCH-STRING)

Documentation

Repeat last search command.

If optional search-command/string are given, use those instead of the ones saved.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/vi.el.gz
(defun vi-repeat-last-search (arg &optional search-command search-string)
  "Repeat last search command.
If optional search-command/string are given,
use those instead of the ones saved."
  (interactive "p")
  (if (null search-command) (setq search-command vi-search-last-command))
  (if (null search-string)
      (setq search-string
	    (car (if (memq search-command
			   '(re-search-forward re-search-backward))
		     regexp-search-ring
		   search-ring))))
  (if (null search-command)
      (progn (ding) (message "No last search command to repeat."))
    (funcall search-command search-string nil nil arg)))