comparison lisp/woman.el @ 90732:bc10a33dd40b

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 563-582) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 177-185) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-158
author Miles Bader <miles@gnu.org>
date Mon, 01 Jan 2007 03:21:06 +0000
parents f1d13e615070 26507757f962
children 95d0cdf160ea
comparison
equal deleted inserted replaced
90731:a6c97c25a666 90732:bc10a33dd40b
2100 "Decode a buffer in UN*X man-page source format. 2100 "Decode a buffer in UN*X man-page source format.
2101 No external programs are used." 2101 No external programs are used."
2102 (interactive) ; mainly for testing 2102 (interactive) ; mainly for testing
2103 (WoMan-log-begin) 2103 (WoMan-log-begin)
2104 (run-hooks 'woman-pre-format-hook) 2104 (run-hooks 'woman-pre-format-hook)
2105
2106 ;; look for macro sets that woman cannot handle:
2107 (goto-char (point-min))
2108 (let ((case-fold-search nil))
2109 (unless (and (re-search-forward "^\\.SH[ \n]" (point-max) t)
2110 (progn (goto-char (point-min))
2111 (re-search-forward "^\\.TH[ \n]" (point-max) t))
2112 (progn (goto-char (point-min))
2113 (not (re-search-forward "^\\.\\([pnil]p\\|sh\\)[ \n]"
2114 (point-max) t))))
2115 (error "WoMan can only format manpages written in the an format")))
2116
2105 (and (boundp 'font-lock-mode) font-lock-mode (font-lock-mode -1)) 2117 (and (boundp 'font-lock-mode) font-lock-mode (font-lock-mode -1))
2106 ;; (fundamental-mode) 2118 ;; (fundamental-mode)
2107 (let ((start-time (current-time)) ; (HIGH LOW MICROSEC) 2119 (let ((start-time (current-time)) ; (HIGH LOW MICROSEC)
2108 time) ; HIGH * 2**16 + LOW seconds 2120 time) ; HIGH * 2**16 + LOW seconds
2109 (message "WoMan formatting buffer...") 2121 (message "WoMan formatting buffer...")