Function: Man-goto-page
Man-goto-page is an interactive and byte-compiled function defined in
man.el.gz.
Signature
(Man-goto-page PAGE &optional NOERROR)
Documentation
Go to the manual page on page PAGE.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/man.el.gz
(defun Man-goto-page (page &optional noerror)
"Go to the manual page on page PAGE."
(interactive
(if (not Man-page-list)
(error "Not a man page buffer")
(if (= (length Man-page-list) 1)
(error "You're looking at the only manpage in the buffer")
(list (read-minibuffer (format "Go to manpage [1-%d]: "
(length Man-page-list))))))
man-common)
(if (and (not Man-page-list) (not noerror))
(error "Not a man page buffer"))
(when Man-page-list
(if (or (< page 1)
(> page (length Man-page-list)))
(user-error "No manpage %d found" page))
(let* ((page-range (nth (1- page) Man-page-list))
(page-start (car page-range))
(page-end (car (cdr page-range))))
(setq Man-current-page page
Man-page-mode-string (Man-make-page-mode-string))
(widen)
(goto-char page-start)
(narrow-to-region page-start page-end)
(Man-build-section-list)
(Man-build-references-alist)
(goto-char (point-min)))))