aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-11-16 01:18:50 +0000
committerJuri Linkov2007-11-16 01:18:50 +0000
commit30971bf9671d0c744be6ee463a0248f4c09d100c (patch)
tree0345aad6e9c01403c9fdb5a830f5139225544ba9
parent0df5538d11cc14c88fb20ad233d6c545c73d6b9c (diff)
downloademacs-30971bf9671d0c744be6ee463a0248f4c09d100c.tar.gz
emacs-30971bf9671d0c744be6ee463a0248f4c09d100c.zip
(Man-heading-regexp): Add 0-9.
(Man-first-heading-regexp): Remove leading space [ \t]* before NAME.
-rw-r--r--lisp/man.el7
1 files changed, 5 insertions, 2 deletions
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."
264 "(\\(" Man-section-regexp "\\))\\).*\\1")) 264 "(\\(" Man-section-regexp "\\))\\).*\\1"))
265 "Regular expression describing the heading of a page.") 265 "Regular expression describing the heading of a page.")
266 266
267(defvar Man-heading-regexp "^\\([A-Z][A-Z /-]+\\)$" 267(defvar Man-heading-regexp "^\\([A-Z][A-Z0-9 /-]+\\)$"
268 "Regular expression describing a manpage heading entry.") 268 "Regular expression describing a manpage heading entry.")
269 269
270(defvar Man-see-also-regexp "SEE ALSO" 270(defvar Man-see-also-regexp "SEE ALSO"
271 "Regular expression for SEE ALSO heading (or your equivalent). 271 "Regular expression for SEE ALSO heading (or your equivalent).
272This regexp should not start with a `^' character.") 272This regexp should not start with a `^' character.")
273 273
274(defvar Man-first-heading-regexp "^[ \t]*NAME$\\|^[ \t]*No manual entry fo.*$" 274;; This used to have leading space [ \t]*, but was removed because it
275;; causes false page splits on an occasional NAME with leading space
276;; inside a manpage. And `Man-heading-regexp' doesn't have [ \t]* anyway.
277(defvar Man-first-heading-regexp "^NAME$\\|^[ \t]*No manual entry fo.*$"
275 "Regular expression describing first heading on a manpage. 278 "Regular expression describing first heading on a manpage.
276This regular expression should start with a `^' character.") 279This regular expression should start with a `^' character.")
277 280