Function: moccur-to
moccur-to is an interactive and byte-compiled function defined in
hmoccur.el.
Signature
(moccur-to)
Documentation
Go to the line where this occurrence was found.
Key Bindings
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmoccur.el
(defun moccur-to ()
"Go to the line where this occurrence was found."
(interactive)
(let* ((result (moccur-noselect))
(buffer (car result))
(lineno (cadr result))
(occur-match (car (cddr result))))
(when result
(message "Selection <%s> line %d." occur-match lineno)
(hpath:display-buffer buffer)
(goto-char (point-min))
(forward-line (1- lineno)))))