summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2007-11-16 01:28:02 +0000
committerJuri Linkov <juri@jurta.org>2007-11-16 01:28:02 +0000
commitbab6f293f73560ee6147bd474dd1997d982e9292 (patch)
treeaebbc0e65ce096a0e046d84dcb7590bdcef2ce58 /lisp
parent6af41c87dfc91b3cc980467b074e5efed3998ed5 (diff)
downloademacs-bab6f293f73560ee6147bd474dd1997d982e9292.tar.gz
(Man-heading-regexp): Add 0-9.
(Man-first-heading-regexp): Remove leading space [ \t]* before NAME.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/man.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a45abc3e3ac..7ca055fb9cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-16 Juri Linkov <juri@jurta.org>
+
+ * man.el (Man-heading-regexp): Add 0-9.
+ (Man-first-heading-regexp): Remove leading space [ \t]* before NAME.
+
2007-11-15 Juanma Barranquero <lekktu@gmail.com>
* progmodes/cc-engine.el (c-crosses-statement-barrier-p):
diff --git a/lisp/man.el b/lisp/man.el
index fc84f327271..4056ddedb29 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -264,14 +264,17 @@ the associated section number."
"(\\(" Man-section-regexp "\\))\\).*\\1"))
"Regular expression describing the heading of a page.")
-(defvar Man-heading-regexp "^\\([A-Z][A-Z /-]+\\)$"
+(defvar Man-heading-regexp "^\\([A-Z][A-Z0-9 /-]+\\)$"
"Regular expression describing a manpage heading entry.")
(defvar Man-see-also-regexp "SEE ALSO"
"Regular expression for SEE ALSO heading (or your equivalent).
This regexp should not start with a `^' character.")
-(defvar Man-first-heading-regexp "^[ \t]*NAME$\\|^[ \t]*No manual entry fo.*$"
+;; This used to have leading space [ \t]*, but was removed because it
+;; causes false page splits on an occasional NAME with leading space
+;; inside a manpage. And `Man-heading-regexp' doesn't have [ \t]* anyway.
+(defvar Man-first-heading-regexp "^NAME$\\|^[ \t]*No manual entry fo.*$"
"Regular expression describing first heading on a manpage.
This regular expression should start with a `^' character.")