Function: Man-update-manpage
Man-update-manpage is an interactive and byte-compiled function
defined in man.el.gz.
Signature
(Man-update-manpage)
Documentation
Reformat current manpage by calling the man command again synchronously.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/man.el.gz
(defun Man-update-manpage ()
"Reformat current manpage by calling the man command again synchronously."
(interactive nil man-common)
(when (eq Man-arguments nil)
;;this shouldn't happen unless it is not in a Man buffer."
(error "Man-arguments not initialized"))
(let ((old-pos (point))
(text (current-word))
(old-size (buffer-size))
(inhibit-read-only t)
(buffer-read-only nil))
(erase-buffer)
(Man-start-calling
(process-file
(Man-shell-file-name) nil (list (current-buffer) nil) nil
shell-command-switch
(format (Man-build-man-command) Man-arguments)))
(man--maybe-fontify-manpage)
(goto-char old-pos)
;;restore the point, not strictly right.
(unless (or (eq text nil) (= old-size (buffer-size)))
(let ((case-fold-search nil))
(if (> old-size (buffer-size))
(search-backward text nil t))
(search-forward text nil t)))))