diff options
| author | Lars Magne Ingebrigtsen | 2011-07-03 03:35:35 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-03 03:35:35 +0200 |
| commit | 0dd8b6da56db8f711b2707f9fd5340fbe4615355 (patch) | |
| tree | eb0f306a0d263711ce0e26e3de43ec8639439c3a | |
| parent | ce1438d696bd670b5aba5690ce4f73b836b20194 (diff) | |
| download | emacs-0dd8b6da56db8f711b2707f9fd5340fbe4615355.tar.gz emacs-0dd8b6da56db8f711b2707f9fd5340fbe4615355.zip | |
* man.el (Man-reference-regexp): Allow matching possible
word-wrapped references (bug#6289).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/man.el | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17f48ea7b12..112d7faacb0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * man.el (Man-reference-regexp): Allow matching possible | ||
| 4 | word-wrapped references (bug#6289). | ||
| 5 | |||
| 3 | * vc/vc.el (vc-modify-change-comment): Change *VC-log* to *vc-log* | 6 | * vc/vc.el (vc-modify-change-comment): Change *VC-log* to *vc-log* |
| 4 | for consistency with the other vc buffers (bug#6197). | 7 | for consistency with the other vc buffers (bug#6197). |
| 5 | (vc-checkin): Ditto. | 8 | (vc-checkin): Ditto. |
diff --git a/lisp/man.el b/lisp/man.el index 7a9e6e3cca5..b5a70395e59 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -276,7 +276,9 @@ This regexp should not start with a `^' character.") | |||
| 276 | This regular expression should start with a `^' character.") | 276 | This regular expression should start with a `^' character.") |
| 277 | 277 | ||
| 278 | (defvar Man-reference-regexp | 278 | (defvar Man-reference-regexp |
| 279 | (concat "\\(" Man-name-regexp "\\)[ \t]*(\\(" Man-section-regexp "\\))") | 279 | (concat "\\(" Man-name-regexp |
| 280 | "\\(\n[ \t]+" Man-name-regexp "\\)*\\)[ \t]*(\\(" | ||
| 281 | Man-section-regexp "\\))") | ||
| 280 | "Regular expression describing a reference to another manpage.") | 282 | "Regular expression describing a reference to another manpage.") |
| 281 | 283 | ||
| 282 | (defvar Man-apropos-regexp | 284 | (defvar Man-apropos-regexp |
| @@ -597,8 +599,8 @@ and the `Man-section-translations-alist' variables)." | |||
| 597 | (cond | 599 | (cond |
| 598 | ;; "chmod(2V)" case ? | 600 | ;; "chmod(2V)" case ? |
| 599 | ((string-match (concat "^" Man-reference-regexp "$") ref) | 601 | ((string-match (concat "^" Man-reference-regexp "$") ref) |
| 600 | (setq name (match-string 1 ref) | 602 | (setq name (replace-regexp-in-string "[\n\t ]" "" (match-string 1 ref)) |
| 601 | section (match-string 2 ref))) | 603 | section (match-string 3 ref))) |
| 602 | ;; "2v chmod" case ? | 604 | ;; "2v chmod" case ? |
| 603 | ((string-match (concat "^\\(" Man-section-regexp | 605 | ((string-match (concat "^\\(" Man-section-regexp |
| 604 | "\\) +\\(" Man-name-regexp "\\)$") ref) | 606 | "\\) +\\(" Man-name-regexp "\\)$") ref) |