Function: ebrowse-view/find-position

ebrowse-view/find-position is a byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-view/find-position POSITION &optional VIEW)

Documentation

Position point on POSITION.

If VIEW is non-nil, view the position, otherwise find it.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-view/find-position (position &optional view)
  "Position point on POSITION.
If VIEW is non-nil, view the position, otherwise find it."
  (cond ((not view)
	 (find-file (ebrowse-position-file-name position))
	 (goto-char (ebrowse-position-point position)))
	(t
         (let ((fn (lambda ()
		     (goto-char (ebrowse-position-point position)))))
	   (unwind-protect
               (progn
                 (add-hook 'view-mode-hook fn)
                 (view-file (ebrowse-position-file-name position)))
	     (remove-hook 'view-mode-hook fn))))))