aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì1994-09-29 12:42:45 +0000
committerFrancesco Potortì1994-09-29 12:42:45 +0000
commitd046c1832d41d10f9e5b71fff2faf93dfd322bf6 (patch)
treebc6c87116398987b5fc1e2bee2ebebe316c212bc
parent7804cd274871ac367434b0483b31eb1ee824dba1 (diff)
downloademacs-d046c1832d41d10f9e5b71fff2faf93dfd322bf6.tar.gz
emacs-d046c1832d41d10f9e5b71fff2faf93dfd322bf6.zip
* man.el
(Man-init-defvars, Man-cleanup-manpage, Man-fontify-manpage): added support for the big cross present in the ksh manpage.
-rw-r--r--lisp/man.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 9687d7783ef..86330bb9b52 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -3,8 +3,8 @@
3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
4 4
5;; Author: Barry A. Warsaw <bwarsaw@cen.com> 5;; Author: Barry A. Warsaw <bwarsaw@cen.com>
6;; Last-Modified: $Date: 1994/09/21 16:15:42 $ 6;; Last-Modified: $Date: 1994/09/22 12:10:16 $
7;; Version: $Revision: 1.48 $ 7;; Version: $Revision: 1.49 $
8;; Keywords: help 8;; Keywords: help
9;; Adapted-By: ESR, pot 9;; Adapted-By: ESR, pot
10 10
@@ -331,6 +331,7 @@ This is necessary if one wants to dump man.el with emacs."
331 "") 331 "")
332 "-e '/\e[789]/s///g'" 332 "-e '/\e[789]/s///g'"
333 "-e '/o\b+/s//o/g'" 333 "-e '/o\b+/s//o/g'"
334 "-e '/|\b-/s//+/g'"
334 "-e '/^\\n$/D'" 335 "-e '/^\\n$/D'"
335 "-e '/[Nn]o such file or directory/d'" 336 "-e '/[Nn]o such file or directory/d'"
336 "-e '/Reformatting page. Wait/d'" 337 "-e '/Reformatting page. Wait/d'"
@@ -618,6 +619,9 @@ Same for the ANSI bold and normal escape sequences."
618 (while (search-forward "o\b+" nil t) 619 (while (search-forward "o\b+" nil t)
619 (backward-delete-char 2) 620 (backward-delete-char 2)
620 (put-text-property (1- (point)) (point) 'face 'bold)) 621 (put-text-property (1- (point)) (point) 'face 'bold))
622 (while (search-forward "|\b-" nil t)
623 (replace-match "+")
624 (put-text-property (1- (point)) (point) 'face 'bold))
621 (goto-char (point-min)) 625 (goto-char (point-min))
622 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t) 626 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t)
623 (replace-match "\\1") 627 (replace-match "\\1")
@@ -639,6 +643,8 @@ Same for the ANSI bold and normal escape sequences."
639 (goto-char (point-min)) 643 (goto-char (point-min))
640 (while (search-forward "o\b+" nil t) (backward-delete-char 2)) 644 (while (search-forward "o\b+" nil t) (backward-delete-char 2))
641 (goto-char (point-min)) 645 (goto-char (point-min))
646 (while (search-forward "|\b-" nil t) (replace-match "+"))
647 (goto-char (point-min))
642 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t) 648 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t)
643 (replace-match "\\1")) 649 (replace-match "\\1"))
644 (message "%s man page cleaned up" Man-arguments)) 650 (message "%s man page cleaned up" Man-arguments))