diff options
author | Eli Zaretskii <eliz@gnu.org> | 2004-03-07 14:54:35 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2004-03-07 14:54:35 +0000 |
commit | 372713e6964f7ce24cbf39ab2b133a4167a095be (patch) | |
tree | be7b830494aeb0f18635bade03455c3e403c53d0 /lisp/woman.el | |
parent | 970736643d860e8c852fd8c96c629dea9198b9b6 (diff) | |
download | emacs-372713e6964f7ce24cbf39ab2b133a4167a095be.tar.gz |
(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/woman.el')
-rw-r--r-- | lisp/woman.el | 12 |
1 files changed, 7 insertions, 5 deletions
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'." (mapcar 'woman-Cyg-to-Win path) path)) "*List of dirs to search and/or files to try for man config file. -A trailing separator (`/' for UNIX etc.) on directories is optional -and the filename used if a directory is specified is the first to -match the regexp \"man.*\\.conf\". +A trailing separator (`/' for UNIX etc.) on directories is optional, +and the filename is used if a directory specified is the first to +contain the strings \"man\" and \".conf\" (in that order). If MANPATH is not set but a config file is found then it is parsed instead to provide a default value for `woman-manpath'." :type '(repeat string) @@ -554,7 +554,9 @@ Look in `woman-man.conf-path' and return a value for `woman-manpath'. Concatenate data from all lines in the config file of the form MANPATH /usr/man or - MANDATORY_MANPATH /usr/man" + MANDATORY_MANPATH /usr/man +or + OPTIONAL_MANPATH /usr/man" ;; Functionality suggested by Charles Curley. (let ((path woman-man.conf-path) file manpath) @@ -574,7 +576,7 @@ or (while (re-search-forward ;; `\(?: ... \)' is a "shy group" "\ -^[ \t]*\\(?:MANDATORY_\\)?MANPATH[ \t]+\\(\\S-+\\)" nil t) +^[ \t]*\\(?:MANDATORY_\\|OPTIONAL_\\)?MANPATH[ \t]+\\(\\S-+\\)" nil t) (setq manpath (cons (match-string 1) manpath))) manpath)) )) |