aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-07-04 04:46:05 +0000
committerMiles Bader2000-07-04 04:46:05 +0000
commit02df875089bbb29df1d96a2fad9b8bc3e5b3b61e (patch)
tree936eeb829a75c19c7a30dce2dafb99ca9895c27f
parent6753393b266d6cfd4f26e0beab026d5448754be5 (diff)
downloademacs-02df875089bbb29df1d96a2fad9b8bc3e5b3b61e.tar.gz
emacs-02df875089bbb29df1d96a2fad9b8bc3e5b3b61e.zip
(woman-man.conf-path): Explicitly include the debian man-db config file
"/etc/manpath.config". (woman-parse-man.conf): Also handle MANDATORY_MANPATH entries, as are present in `manpath.config'. (woman-manpath): Include "/usr/share/man".
-rw-r--r--lisp/woman.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/woman.el b/lisp/woman.el
index b6614992eb9..134721c0ad1 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -500,7 +500,7 @@ Change only via `Customization' or the function `add-hook'."
500 :group 'woman) 500 :group 'woman)
501 501
502(defcustom woman-man.conf-path 502(defcustom woman-man.conf-path
503 '("/etc" "/usr/local/lib") 503 '("/etc" "/etc/manpath.config" "/usr/local/lib")
504 "*List of dirs to search and/or files to try for man config file. 504 "*List of dirs to search and/or files to try for man config file.
505Default is '(\"/etc\" \"/usr/local/lib\") [for GNU/Linux, Cygwin resp.] 505Default is '(\"/etc\" \"/usr/local/lib\") [for GNU/Linux, Cygwin resp.]
506A trailing separator (`/' for UNIX etc.) on directories is optional 506A trailing separator (`/' for UNIX etc.) on directories is optional
@@ -517,7 +517,11 @@ Used only if MANPATH is not set or contains null components.
517Look in `woman-man.conf-path' and return a value for `woman-manpath'. 517Look in `woman-man.conf-path' and return a value for `woman-manpath'.
518Concatenate data from all lines in the config file of the form 518Concatenate data from all lines in the config file of the form
519 519
520MANPATH /usr/man" 520 MANPATH /usr/man
521
522or
523
524 MANDATORY_MANPATH /usr/man"
521 ;; Functionality suggested by Charles Curley. 525 ;; Functionality suggested by Charles Curley.
522 (let ((path woman-man.conf-path) 526 (let ((path woman-man.conf-path)
523 file manpath) 527 file manpath)
@@ -535,8 +539,8 @@ MANPATH /usr/man"
535 (with-temp-buffer 539 (with-temp-buffer
536 (insert-file-contents file) 540 (insert-file-contents file)
537 (while (re-search-forward 541 (while (re-search-forward
538 "^[ \t]*MANPATH[ \t]+\\(\\S-+\\)" nil t) 542 "^[ \t]*\\(MANDATORY_\\)?MANPATH[ \t]+\\(\\S-+\\)" nil t)
539 (setq manpath (cons (match-string 1) manpath))) 543 (setq manpath (cons (match-string 2) manpath)))
540 manpath)) 544 manpath))
541 )) 545 ))
542 (setq path (cdr path))) 546 (setq path (cdr path)))
@@ -547,7 +551,7 @@ MANPATH /usr/man"
547 (or 551 (or
548 (and manpath (woman-parse-colon-path manpath)) 552 (and manpath (woman-parse-colon-path manpath))
549 (woman-parse-man.conf) 553 (woman-parse-man.conf)
550 '("/usr/man" "/usr/local/man") 554 '("/usr/man" "/usr/share/man" "/usr/local/man")
551 )) 555 ))
552 "*List of DIRECTORY TREES to search for UN*X manual files. 556 "*List of DIRECTORY TREES to search for UN*X manual files.
553Each element should be the name of a directory that contains 557Each element should be the name of a directory that contains