summaryrefslogtreecommitdiff
path: root/lisp/paths.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-10-28 06:04:10 +0000
committerRichard M. Stallman <rms@gnu.org>1992-10-28 06:04:10 +0000
commit831c0624be4c001b927fb1ba3093553420cf2da8 (patch)
tree05f6043b39a73f8446c60b4b9525d7b08e5a6654 /lisp/paths.el
parent4fb2839390a130c568af46ce4a16a237d4c47f84 (diff)
downloademacs-831c0624be4c001b927fb1ba3093553420cf2da8.tar.gz
(manual-program): Always use /usr/ucb/man if that exists.
Diffstat (limited to 'lisp/paths.el')
-rw-r--r--lisp/paths.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/paths.el b/lisp/paths.el
index de6c3eec79b..bfde5492ad2 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -109,7 +109,9 @@ Its name should end with a slash.")
You may set this variable to nil in your `.emacs' file if you do not wish
the terminal-initialization file to be loaded.")
-(defconst manual-program (if (eq system-type 'berkeley-unix)
+;; Solaris 2 has both of these files; prefer /usr/ucb/man
+;; because the other has nonstandard argument conventions.
+(defconst manual-program (if (file-exists-p "/usr/ucb/man")
"/usr/ucb/man" "/usr/bin/man")
"Program to run to print man pages.")