Function: moccur-mode-display-occurrence

moccur-mode-display-occurrence is an interactive and byte-compiled function defined in hmoccur.el.

Signature

(moccur-mode-display-occurrence)

Documentation

Display in another window the occurrence the current line describes.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmoccur.el
(defun moccur-mode-display-occurrence ()
  "Display in another window the occurrence the current line describes."
  (interactive)
  (let* ((result (moccur-noselect))
	 (buffer (car result))
	 (lineno (cadr result)))
    (when result
      ;; This is the way to set point in the proper window.
      (save-selected-window
	(hpath:display-buffer buffer)
	(goto-char (point-min))
	(forward-line (1- lineno))))))