summaryrefslogtreecommitdiff
path: root/lisp/man.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-04-05 03:40:06 +0000
committerKarl Heuer <kwzh@gnu.org>1994-04-05 03:40:06 +0000
commit25c776acaa34be3a65d227aa53abc55483dae038 (patch)
treed96a2b16db86f3645e2c23469195dfbdfcfe0ffb /lisp/man.el
parent675baaf289e315db451c1e27305813f52640e441 (diff)
downloademacs-25c776acaa34be3a65d227aa53abc55483dae038.tar.gz
(manual-program): New (actually reintroduced) variable.
(Man-getpage-in-background): Don't hardcode the program name.
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 64faa8d930d..37ff5c5f82b 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -76,6 +76,9 @@
;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;; user variables
+(defvar manual-program "man"
+ "The name of the program that produces man pages.")
+
(defvar Man-notify 'friendly
"*Selects the behavior when manpage is ready.
This variable may have one of the following values:
@@ -468,7 +471,7 @@ start a background process even if a buffer already exists and
;; Prevent any attempt to use display terminal fanciness.
(setenv "TERM" "dumb")
(set-process-sentinel
- (start-process "man" buffer "sh" "-c"
+ (start-process manual-program buffer "sh" "-c"
(format (Man-build-man-command) man-args))
'Man-bgproc-sentinel))
)))