[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/woman.el,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/woman.el,v |
Date: |
Tue, 10 Apr 2007 19:30:12 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 07/04/10 19:30:12
Index: woman.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/woman.el,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- woman.el 31 Mar 2007 15:22:14 -0000 1.56
+++ woman.el 10 Apr 2007 19:30:12 -0000 1.57
@@ -2131,18 +2131,6 @@
(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 @@
;; 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)
- [Emacs-diffs] Changes to emacs/lisp/woman.el,v,
Chong Yidong <=