diff options
| author | Karl Heuer | 1994-05-11 02:27:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-05-11 02:27:28 +0000 |
| commit | eef4ad20e7b2e54dc063b53fe86d3dbb6aa6c229 (patch) | |
| tree | a80fcca3bdb9c358e62e4b007b91016d32cedf22 | |
| parent | a0a2cc005029dd29791a83375426a4c01620edd9 (diff) | |
| download | emacs-eef4ad20e7b2e54dc063b53fe86d3dbb6aa6c229.tar.gz emacs-eef4ad20e7b2e54dc063b53fe86d3dbb6aa6c229.zip | |
(Man-heading-regexp): Fix pattern.
(Man-build-section-alist): Use match data, not bol/eol.
| -rw-r--r-- | lisp/man.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/man.el b/lisp/man.el index 3bca3d7e2b7..29d9bf9f1da 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -199,7 +199,7 @@ the manpage buffer.") | |||
| 199 | (defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" | 199 | (defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" |
| 200 | "*Regular expression describing a manpage section within parentheses.") | 200 | "*Regular expression describing a manpage section within parentheses.") |
| 201 | 201 | ||
| 202 | (defvar Man-heading-regexp "^[ \t]*[A-Z][A-Z \t]+$" | 202 | (defvar Man-heading-regexp "^[ \t]*\\([A-Z][A-Z \t]+\\)$" |
| 203 | "*Regular expression describing a manpage heading entry.") | 203 | "*Regular expression describing a manpage heading entry.") |
| 204 | 204 | ||
| 205 | (defvar Man-see-also-regexp "SEE ALSO" | 205 | (defvar Man-see-also-regexp "SEE ALSO" |
| @@ -631,7 +631,7 @@ The following key bindings are currently in effect in the buffer: | |||
| 631 | (let ((case-fold-search nil)) | 631 | (let ((case-fold-search nil)) |
| 632 | (while (re-search-forward Man-heading-regexp (point-max) t) | 632 | (while (re-search-forward Man-heading-regexp (point-max) t) |
| 633 | (aput 'Man-sections-alist | 633 | (aput 'Man-sections-alist |
| 634 | (buffer-substring (Man-linepos 'bol) (Man-linepos))) | 634 | (buffer-substring (match-beginning 1) (match-end 1))) |
| 635 | (forward-line 1)))) | 635 | (forward-line 1)))) |
| 636 | 636 | ||
| 637 | (defun Man-build-references-alist () | 637 | (defun Man-build-references-alist () |