changeset 23644:3d09886cb53e

(Man-page-header-regexp): Alternate value for Solaris 2.6.
author Karl Heuer <kwzh@gnu.org>
date Thu, 05 Nov 1998 19:19:03 +0000
parents 701b6bdc7a22
children 2717722f5c32
files lisp/man.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/man.el	Thu Nov 05 19:17:42 1998 +0000
+++ b/lisp/man.el	Thu Nov 05 19:19:03 1998 +0000
@@ -254,8 +254,12 @@
   "Regular expression describing a manpage section within parentheses.")
 
 (defvar Man-page-header-regexp
-  (concat "^[ \t]*\\(" Man-name-regexp
-	  "(\\(" Man-section-regexp "\\))\\).*\\1")
+  (if (and (string-match "-solaris2\\." system-configuration)
+	   (not (string-match "-solaris2\\.[123435]$" system-configuration)))
+      (concat "^[-A-Za-z0-9_].*[ \t]\\(" Man-name-regexp
+	      "(\\(" Man-section-regexp "\\))\\)$")
+    (concat "^[ \t]*\\(" Man-name-regexp
+	    "(\\(" Man-section-regexp "\\))\\).*\\1"))
   "Regular expression describing the heading of a page.")
 
 (defvar Man-heading-regexp "^\\([A-Z][A-Z ]+\\)$"