Mercurial > emacs
changeset 9867:57ee6c3a0a3c
* man.el (Man-berkeley-sed-script, Man-sysv-sed-script,
Man-cleanup-manpage, Man-fontify-manpage): Handle the "+\bo" form
(used by aix) in addition to the "o\b+" one (used by sun).
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Wed, 09 Nov 1994 12:38:31 +0000 |
parents | 435cd6f0ec6d |
children | 85bdb1b310f8 |
files | lisp/man.el |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/man.el Wed Nov 09 11:48:21 1994 +0000 +++ b/lisp/man.el Wed Nov 09 12:38:31 1994 +0000 @@ -3,8 +3,8 @@ ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. ;; Author: Barry A. Warsaw <bwarsaw@cen.com> -;; Last-Modified: $Date: 1994/11/07 12:13:16 $ -;; Version: $Revision: 1.57 $ +;; Last-Modified: $Date: 1994/11/08 22:34:06 $ +;; Version: $Revision: 1.58 $ ;; Keywords: help ;; Adapted-By: ESR, pot @@ -258,6 +258,7 @@ /\b/ { s/_\b//g s/\b_//g s/o\b+/o/g + s/+\bo/o/g :ovstrk s/\\(.\\)\b\\1/\\1/g t ovstrk @@ -269,6 +270,7 @@ /\b/ { s/_\b//g\\ s/\b_//g\\ s/o\b+/o/g\\ + s/+\bo/o/g\\ :ovstrk\\ s/\\(.\\)\b\\1/\\1/g\\ t ovstrk\\ @@ -616,8 +618,8 @@ (replace-match "\\1") (put-text-property (1- (point)) (point) 'face Man-overstrike-face)) (goto-char (point-min)) - (while (search-forward "o\b+" nil t) - (backward-delete-char 2) + (while (re-search-forward "o\b\\+\\|\\+\bo" nil t) + (replace-match "o") (put-text-property (1- (point)) (point) 'face 'bold)) (goto-char (point-min)) (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) @@ -642,7 +644,7 @@ (goto-char (point-min)) (while (re-search-forward "\e\\[[0-9]+m" nil t) (replace-match "")) (goto-char (point-min)) - (while (search-forward "o\b+" nil t) (backward-delete-char 2)) + (while (re-search-forward "o\b\\+\\|\\+\bo" nil t) (replace-match "o")) )) (goto-char (point-min)) (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) (replace-match "+"))