Function: vi-reverse-last-search
vi-reverse-last-search is an interactive and byte-compiled function
defined in vi.el.gz.
Signature
(vi-reverse-last-search ARG &optional SEARCH-COMMAND SEARCH-STRING)
Documentation
Redo last search command in reverse direction.
If the optional search args 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-reverse-last-search (arg &optional search-command search-string)
"Redo last search command in reverse direction.
If the optional search args 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 (cond ((eq search-command 're-search-forward) 're-search-backward)
((eq search-command 're-search-backward) 're-search-forward)
((eq search-command 'search-forward) 'search-backward)
((eq search-command 'search-backward) 'search-forward))
search-string nil nil arg)))