summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-11-24 22:19:32 +0000
committerRichard M. Stallman <rms@gnu.org>1995-11-24 22:19:32 +0000
commit423fc49af7e7b302cb73e41153f38be1c05970db (patch)
tree266f3eaff4b849d65d90e44157f69c86a6887c22
parent1f39137ef8ed7f7ed76aec241c50f6c5f274ecfc (diff)
downloademacs-423fc49af7e7b302cb73e41153f38be1c05970db.tar.gz
(Man-fontify-manpage, Man-cleanup-manpage):
Convert \255 to a dash.
-rw-r--r--lisp/man.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 174a72455ec..4a3afd45d73 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -624,6 +624,9 @@ Same for the ANSI bold and normal escape sequences."
(while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t)
(replace-match "+")
(put-text-property (1- (point)) (point) 'face 'bold))
+ ;; \255 is some kind of dash in Latin-1.
+ (goto-char (point-min))
+ (while (search-forward "\255" nil t) (replace-match "-"))
(message "%s man page made up" Man-arguments))
(defun Man-cleanup-manpage ()
@@ -647,6 +650,9 @@ Same for the ANSI bold and normal escape sequences."
))
(goto-char (point-min))
(while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) (replace-match "+"))
+ ;; \255 is some kind of dash in Latin-1.
+ (goto-char (point-min))
+ (while (search-forward "\255" nil t) (replace-match "-"))
(message "%s man page cleaned up" Man-arguments))
(defun Man-bgproc-sentinel (process msg)