Function: eshell-occur-mode-mouse-goto

eshell-occur-mode-mouse-goto is an interactive and byte-compiled function defined in em-unix.el.gz.

Signature

(eshell-occur-mode-mouse-goto EVENT)

Documentation

In Occur mode, go to the occurrence whose line you click on.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-unix.el.gz
(defun eshell-occur-mode-mouse-goto (event)
  "In Occur mode, go to the occurrence whose line you click on."
  (interactive "e")
  (let (pos)
    (with-current-buffer (window-buffer (posn-window (event-end event)))
      (save-excursion
	(goto-char (posn-point (event-end event)))
	(setq pos (occur-mode-find-occurrence))))
    (pop-to-buffer (marker-buffer pos))
    (goto-char (marker-position pos))))