diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-04-10 19:30:12 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-04-10 19:30:12 +0000 |
commit | 599919c5268ca5b33799924900d3b10f09ef9195 (patch) | |
tree | 861056a7823eed88e978bf67c3658ea485b529a2 /lisp/woman.el | |
parent | 0c080a429fc15daaebaad4375409d938c84ce91f (diff) | |
download | emacs-599919c5268ca5b33799924900d3b10f09ef9195.tar.gz |
(woman-decode-buffer): Postphone macro-set check...
(woman-decode-region): ...to here.
Diffstat (limited to 'lisp/woman.el')
-rw-r--r-- | lisp/woman.el | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/woman.el b/lisp/woman.el index 9fa2a764880..0461b553a11 100644 --- a/lisp/woman.el +++ b/lisp/woman.el @@ -2131,18 +2131,6 @@ No external programs are used." (interactive) ; mainly for testing (WoMan-log-begin) (run-hooks 'woman-pre-format-hook) - - ;; look for macro sets that woman cannot handle: - (goto-char (point-min)) - (let ((case-fold-search nil)) - (unless (and (re-search-forward "^\\.SH[ \n]" (point-max) t) - (progn (goto-char (point-min)) - (re-search-forward "^\\.TH[ \n]" (point-max) t)) - (progn (goto-char (point-min)) - (not (re-search-forward "^\\.\\([pnil]p\\|sh\\)[ \n]" - (point-max) t)))) - (error "WoMan can only format man pages written with the usual `-man' macros"))) - (and (boundp 'font-lock-mode) font-lock-mode (font-lock-mode -1)) ;; (fundamental-mode) (let ((start-time (current-time)) ; (HIGH LOW MICROSEC) @@ -2298,6 +2286,17 @@ Currently set only from '\" t in the first line of the source file.") ;; conditionals and switch source requests: (woman0-roff-buffer from) + ;; Check for macro sets that woman cannot handle: + (goto-char (point-min)) + (let ((case-fold-search nil)) + (unless (and (re-search-forward "^\\.SH[ \n]" (point-max) t) + (progn (goto-char (point-min)) + (re-search-forward "^\\.TH[ \n]" (point-max) t)) + (progn (goto-char (point-min)) + (not (re-search-forward "^\\.\\([pnil]p\\|sh\\)[ \n]" + (point-max) t)))) + (error "WoMan can only format man pages written with the usual `-man' macros"))) + ;; Process \k escapes BEFORE changing tab width (?): (goto-char from) (woman-mark-horizonal-position) |