aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2010-02-14 02:20:31 +0200
committerJuri Linkov2010-02-14 02:20:31 +0200
commit91e3333fc5d5a23ee763a5f0a3440c27eb62a6f1 (patch)
treed3e4a595a300c151e501ca3ce9ff0cc9685173c3
parent360206424705f20e51a77588c82c3bb698452fc9 (diff)
downloademacs-91e3333fc5d5a23ee763a5f0a3440c27eb62a6f1.tar.gz
emacs-91e3333fc5d5a23ee763a5f0a3440c27eb62a6f1.zip
* man.el (Man-fontify-manpage, Man-cleanup-manpage):
Remove remaining ^H with their preceding chars. (Bug#5566)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/man.el10
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b764b3a452..9590f800640 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-02-14 Juri Linkov <juri@jurta.org>
2
3 * man.el (Man-fontify-manpage, Man-cleanup-manpage):
4 Remove remaining ^H with their preceding chars. (Bug#5566)
5
12010-02-13 Glenn Morris <rgm@gnu.org> 62010-02-13 Glenn Morris <rgm@gnu.org>
2 7
3 * simple.el (transpose-subr): Give it a doc-string. 8 * simple.el (transpose-subr): Give it a doc-string.
diff --git a/lisp/man.el b/lisp/man.el
index dd64fbda574..a92caf49ec1 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1087,6 +1087,11 @@ Same for the ANSI bold and normal escape sequences."
1087 (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) 1087 (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t)
1088 (replace-match "+") 1088 (replace-match "+")
1089 (put-text-property (1- (point)) (point) 'face 'bold)) 1089 (put-text-property (1- (point)) (point) 'face 'bold))
1090 ;; When the header is longer than the manpage name, groff tries to
1091 ;; condense it to a shorter line interspered with ^H. Remove ^H with
1092 ;; their preceding chars (but don't put Man-overstrike-face). (Bug#5566)
1093 (goto-char (point-min))
1094 (while (re-search-forward ".\b" nil t) (backward-delete-char 2))
1090 (goto-char (point-min)) 1095 (goto-char (point-min))
1091 ;; Try to recognize common forms of cross references. 1096 ;; Try to recognize common forms of cross references.
1092 (Man-highlight-references) 1097 (Man-highlight-references)
@@ -1174,6 +1179,11 @@ script would have done them."
1174 )) 1179 ))
1175 (goto-char (point-min)) 1180 (goto-char (point-min))
1176 (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) (replace-match "+")) 1181 (while (re-search-forward "[-|]\\(\b[-|]\\)+" nil t) (replace-match "+"))
1182 ;; When the header is longer than the manpage name, groff tries to
1183 ;; condense it to a shorter line interspered with ^H. Remove ^H with
1184 ;; their preceding chars (but don't put Man-overstrike-face). (Bug#5566)
1185 (goto-char (point-min))
1186 (while (re-search-forward ".\b" nil t) (backward-delete-char 2))
1177 (Man-softhyphen-to-minus) 1187 (Man-softhyphen-to-minus)
1178 (message "%s man page cleaned up" Man-arguments)) 1188 (message "%s man page cleaned up" Man-arguments))
1179 1189