Function: woman-decode-buffer
woman-decode-buffer is an interactive and byte-compiled function
defined in woman.el.gz.
Signature
(woman-decode-buffer)
Documentation
Decode a buffer in UN*X man-page source format.
No external programs are used.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/woman.el.gz
;;; The main decoding driver:
(defun woman-decode-buffer ()
"Decode a buffer in UN*X man-page source format.
No external programs are used."
(interactive) ; mainly for testing
(WoMan-log-begin)
(run-hooks 'woman-pre-format-hook)
(and font-lock-mode (font-lock-mode -1))
;; (fundamental-mode)
(let ((start-time (current-time))
time)
(message "WoMan formatting buffer...")
; (goto-char (point-min))
; (cond
; ((re-search-forward "^\\.[ \t]*TH" nil t) ; wrong format if not found?
; (beginning-of-line)
; (delete-region (point-min) (point))) ; potentially dangerous!
; (t (message "WARNING: .TH request not found -- not man-page format?")))
(woman-decode-region (point-min) (point-max))
(setq time (float-time (time-since start-time)))
(message "WoMan formatting buffer...done in %g seconds" time)
(WoMan-log-end time))
(run-hooks 'woman-post-format-hook))