aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì1994-10-01 13:27:15 +0000
committerFrancesco Potortì1994-10-01 13:27:15 +0000
commit6024daef5f52a3f7f53688453c2fd99f13bf13e2 (patch)
tree63475cf9cebf6c69078eac0fc10303bd37859c13
parenta8a3c4213f9e062656074034912c72ff6bcc96d6 (diff)
downloademacs-6024daef5f52a3f7f53688453c2fd99f13bf13e2.tar.gz
emacs-6024daef5f52a3f7f53688453c2fd99f13bf13e2.zip
* man.el (Man-init-defvars, Man-cleanup-manpage,
Man-fontify-manpage): fix previous fix.
-rw-r--r--lisp/man.el25
1 files changed, 13 insertions, 12 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 86330bb9b52..919d1ad9e2d 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/22 12:10:16 $ 6;; Last-Modified: $Date: 1994/09/29 12:42:45 $
7;; Version: $Revision: 1.49 $ 7;; Version: $Revision: 1.50 $
8;; Keywords: help 8;; Keywords: help
9;; Adapted-By: ESR, pot 9;; Adapted-By: ESR, pot
10 10
@@ -331,7 +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 '/|\b-[-|\b]*/s//+/g'"
335 "-e '/^\\n$/D'" 335 "-e '/^\\n$/D'"
336 "-e '/[Nn]o such file or directory/d'" 336 "-e '/[Nn]o such file or directory/d'"
337 "-e '/Reformatting page. Wait/d'" 337 "-e '/Reformatting page. Wait/d'"
@@ -616,15 +616,16 @@ Same for the ANSI bold and normal escape sequences."
616 (while (re-search-forward "\e[789]" nil t) 616 (while (re-search-forward "\e[789]" nil t)
617 (backward-delete-char 2)) 617 (backward-delete-char 2))
618 (goto-char (point-min)) 618 (goto-char (point-min))
619 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t)
620 (replace-match "\\1")
621 (put-text-property (1- (point)) (point) 'face 'bold))
622 (goto-char (point-min))
619 (while (search-forward "o\b+" nil t) 623 (while (search-forward "o\b+" nil t)
620 (backward-delete-char 2) 624 (backward-delete-char 2)
621 (put-text-property (1- (point)) (point) 'face 'bold)) 625 (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))
625 (goto-char (point-min)) 626 (goto-char (point-min))
626 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t) 627 (while (re-search-forward "|\b-[-|\b]*" nil t)
627 (replace-match "\\1") 628 (replace-match "+")
628 (put-text-property (1- (point)) (point) 'face 'bold)) 629 (put-text-property (1- (point)) (point) 'face 'bold))
629 (message "%s man page made up" Man-arguments)) 630 (message "%s man page made up" Man-arguments))
630 631
@@ -641,12 +642,12 @@ Same for the ANSI bold and normal escape sequences."
641 (goto-char (point-min)) 642 (goto-char (point-min))
642 (while (re-search-forward "\e[789]" nil t) (backward-delete-char 2)) 643 (while (re-search-forward "\e[789]" nil t) (backward-delete-char 2))
643 (goto-char (point-min)) 644 (goto-char (point-min))
644 (while (search-forward "o\b+" nil t) (backward-delete-char 2))
645 (goto-char (point-min))
646 (while (search-forward "|\b-" nil t) (replace-match "+"))
647 (goto-char (point-min))
648 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t) 645 (while (re-search-forward "\\(.\\)\\(\b\\1\\)+" nil t)
649 (replace-match "\\1")) 646 (replace-match "\\1"))
647 (goto-char (point-min))
648 (while (search-forward "o\b+" nil t) (backward-delete-char 2))
649 (goto-char (point-min))
650 (while (re-search-forward "|\b-[-|\b]*" nil t) (replace-match "+"))
650 (message "%s man page cleaned up" Man-arguments)) 651 (message "%s man page cleaned up" Man-arguments))
651 652
652(defun Man-bgproc-sentinel (process msg) 653(defun Man-bgproc-sentinel (process msg)