Function: woman2-TH
woman2-TH is a byte-compiled function defined in woman.el.gz.
Signature
(woman2-TH TO)
Documentation
.TH n c x v m -- Begin a man page. Format paragraphs upto TO.
n is the name of the page in chapter c; x is extra commentary;
v alters page foot left; m alters page head center.
(Should set prevailing indent and tabs to 5.)
Source Code
;; Defined in /usr/src/emacs/lisp/woman.el.gz
(defun woman2-TH (to)
".TH n c x v m -- Begin a man page. Format paragraphs upto TO.
n is the name of the page in chapter c; x is extra commentary;
v alters page foot left; m alters page head center.
\(Should set prevailing indent and tabs to 5.)"
(woman-forward-arg 'unquote 'concat)
(insert ?\()
(woman-forward-arg 'unquote 'concat)
(insert ?\))
(let ((start (point)) here)
(while (not (eolp))
(cond ((looking-at "\"\"[ \t]")
(delete-char 2)))
(delete-horizontal-space)
(setq here (point))
(insert " -- ")
(woman-forward-arg 'unquote 'concat)
;; Delete repeated arguments:
(if (string-equal (buffer-substring here (point))
(buffer-substring start here))
(delete-region here (point)))))
;; Embolden heading (point is at end of heading):
(woman-set-face (line-beginning-position) (point) 'woman-bold)
(forward-line)
(delete-blank-lines)
(setq woman-left-margin woman-default-indent)
(setq woman-prevailing-indent woman-default-indent)
(woman2-format-paragraphs to woman-left-margin))