Function: occur-mode-goto-occurrence-other-window

occur-mode-goto-occurrence-other-window is an interactive and byte-compiled function defined in replace.el.gz.

Signature

(occur-mode-goto-occurrence-other-window)

Documentation

Go to the occurrence the current line describes, in another window.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/replace.el.gz
(defun occur-mode-goto-occurrence-other-window ()
  "Go to the occurrence the current line describes, in another window."
  (interactive)
  (let ((buffer (current-buffer))
        (pos (occur--targets-start (occur-mode--find-occurrences))))
    (occur--set-arrow)
    (switch-to-buffer-other-window (marker-buffer pos))
    (goto-char pos)
    (next-error-found buffer (current-buffer))
    (run-hooks 'occur-mode-find-occurrence-hook)))