diff options
| author | Eli Zaretskii | 2004-03-07 14:54:35 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-03-07 14:54:35 +0000 |
| commit | 372713e6964f7ce24cbf39ab2b133a4167a095be (patch) | |
| tree | be7b830494aeb0f18635bade03455c3e403c53d0 /lisp | |
| parent | 970736643d860e8c852fd8c96c629dea9198b9b6 (diff) | |
| download | emacs-372713e6964f7ce24cbf39ab2b133a4167a095be.tar.gz emacs-372713e6964f7ce24cbf39ab2b133a4167a095be.zip | |
(woman-man.conf-path): Doc fix.
(woman-parse-man.conf): Also parse OPTIONAL_MANPATH. (Suggested
by Stefan Reich <xsteve@nit.at>.)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/woman.el | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a237696188..f357a7dca34 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-03-07 Francis J. Wright <F.J.Wright@qmul.ac.uk> | ||
| 2 | |||
| 3 | * woman.el (woman-man.conf-path): Doc fix. | ||
| 4 | (woman-parse-man.conf): Also parse OPTIONAL_MANPATH. | ||
| 5 | |||
| 1 | 2004-03-07 Eli Zaretskii <eliz@elta.co.il> | 6 | 2004-03-07 Eli Zaretskii <eliz@elta.co.il> |
| 2 | 7 | ||
| 3 | * sort.el (sort-columns): Remove ms-dos from the list of systems | 8 | * sort.el (sort-columns): Remove ms-dos from the list of systems |
diff --git a/lisp/woman.el b/lisp/woman.el index 6946930505f..cce6d4ca5e1 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -539,9 +539,9 @@ Change only via `Customization' or the function `add-hook'." | |||
| 539 | (mapcar 'woman-Cyg-to-Win path) | 539 | (mapcar 'woman-Cyg-to-Win path) |
| 540 | path)) | 540 | path)) |
| 541 | "*List of dirs to search and/or files to try for man config file. | 541 | "*List of dirs to search and/or files to try for man config file. |
| 542 | A trailing separator (`/' for UNIX etc.) on directories is optional | 542 | A trailing separator (`/' for UNIX etc.) on directories is optional, |
| 543 | and the filename used if a directory is specified is the first to | 543 | and the filename is used if a directory specified is the first to |
| 544 | match the regexp \"man.*\\.conf\". | 544 | contain the strings \"man\" and \".conf\" (in that order). |
| 545 | If MANPATH is not set but a config file is found then it is parsed | 545 | If MANPATH is not set but a config file is found then it is parsed |
| 546 | instead to provide a default value for `woman-manpath'." | 546 | instead to provide a default value for `woman-manpath'." |
| 547 | :type '(repeat string) | 547 | :type '(repeat string) |
| @@ -554,7 +554,9 @@ Look in `woman-man.conf-path' and return a value for `woman-manpath'. | |||
| 554 | Concatenate data from all lines in the config file of the form | 554 | Concatenate data from all lines in the config file of the form |
| 555 | MANPATH /usr/man | 555 | MANPATH /usr/man |
| 556 | or | 556 | or |
| 557 | MANDATORY_MANPATH /usr/man" | 557 | MANDATORY_MANPATH /usr/man |
| 558 | or | ||
| 559 | OPTIONAL_MANPATH /usr/man" | ||
| 558 | ;; Functionality suggested by Charles Curley. | 560 | ;; Functionality suggested by Charles Curley. |
| 559 | (let ((path woman-man.conf-path) | 561 | (let ((path woman-man.conf-path) |
| 560 | file manpath) | 562 | file manpath) |
| @@ -574,7 +576,7 @@ or | |||
| 574 | (while (re-search-forward | 576 | (while (re-search-forward |
| 575 | ;; `\(?: ... \)' is a "shy group" | 577 | ;; `\(?: ... \)' is a "shy group" |
| 576 | "\ | 578 | "\ |
| 577 | ^[ \t]*\\(?:MANDATORY_\\)?MANPATH[ \t]+\\(\\S-+\\)" nil t) | 579 | ^[ \t]*\\(?:MANDATORY_\\|OPTIONAL_\\)?MANPATH[ \t]+\\(\\S-+\\)" nil t) |
| 578 | (setq manpath (cons (match-string 1) manpath))) | 580 | (setq manpath (cons (match-string 1) manpath))) |
| 579 | manpath)) | 581 | manpath)) |
| 580 | )) | 582 | )) |