Function: imenu-default-goto-function

imenu-default-goto-function is a byte-compiled function defined in imenu.el.gz.

Signature

(imenu-default-goto-function NAME POSITION &rest REST)

Documentation

Move to the given position.

NAME is ignored. POSITION is where to move. REST is also ignored. The ignored args just make this function have the same interface as a function placed in a special index-item.

Source Code

;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defun imenu-default-goto-function (_name position &rest _rest)
  "Move to the given position.

NAME is ignored.  POSITION is where to move.  REST is also ignored.
The ignored args just make this function have the same interface as a
function placed in a special index-item."
  (if (or (< position (point-min))
	  (> position (point-max)))
      ;; Widen if outside narrowing.
      (widen))
  (goto-char position))