changeset 54005:230edeac0da5

(Man-fontify-manpage): Render section headings in `Man-overstrike-face' even when overstrike was not used by man formatter for section headings.
author Eli Zaretskii <eliz@is.elta.co.il>
date Mon, 16 Feb 2004 18:20:31 +0000
parents 8cc16a7bf4ce
children a582ee34bbf6
files lisp/man.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/man.el	Mon Feb 16 18:11:52 2004 +0000
+++ b/lisp/man.el	Mon Feb 16 18:20:31 2004 +0000
@@ -801,6 +801,11 @@
   ;; Try to recognize common forms of cross references.
   (Man-highlight-references)
   (Man-softhyphen-to-minus)
+  (goto-char (point-min))
+  (while (re-search-forward Man-heading-regexp nil t)
+    (put-text-property (match-beginning 0)
+		       (match-end 0)
+		       'face Man-overstrike-face))
   (message "%s man page formatted" Man-arguments))
 
 (defun Man-highlight-references ()