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.

If this command needs to split the current window, it by default obeys the user options split-height-threshold and split-width-threshold, when it decides whether to split the window horizontally or vertically.

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.
If this command needs to split the current window, it by default obeys
the user options `split-height-threshold' and `split-width-threshold',
when it decides whether to split the window horizontally or vertically."
  (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)))