Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fd5733a9
Commit
fd5733a9
authored
Nov 17, 1997
by
Karl Heuer
Browse files
(Man-init-defvars, Man-build-man-command):
Bind default-directory to "/" to avoid possible error in call-process.
parent
3fb7b588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
lisp/man.el
lisp/man.el
+15
-11
No files found.
lisp/man.el
View file @
fd5733a9
...
...
@@ -362,16 +362,18 @@ This is necessary if one wants to dump man.el with emacs."
(setq Man-fontify-manpage-flag (and Man-fontify-manpage-flag
window-system))
(setq Man-sed-script
(cond
(Man-fontify-manpage-flag
nil)
((= 0 (call-process Man-sed-command nil nil nil Man-sysv-sed-script))
Man-sysv-sed-script)
((= 0 (call-process Man-sed-command nil nil nil Man-berkeley-sed-script))
Man-berkeley-sed-script)
(t
nil)))
;; Avoid possible error in call-process by using a directory that must exist.
(let ((default-directory "
/
"))
(setq Man-sed-script
(cond
(Man-fontify-manpage-flag
nil)
((= 0 (call-process Man-sed-command nil nil nil Man-sysv-sed-script))
Man-sysv-sed-script)
((= 0 (call-process Man-sed-command nil nil nil Man-berkeley-sed-script))
Man-berkeley-sed-script)
(t
nil))))
(setq Man-filter-list
(list
...
...
@@ -575,7 +577,9 @@ If a buffer already exists for this man page, it will display immediately."
(
set-buffer
buffer
)
(
setq
Man-original-frame
(
selected-frame
))
(
setq
Man-arguments
man-args
))
(
let
((
process-environment
(
copy-sequence
process-environment
)))
(
let
((
process-environment
(
copy-sequence
process-environment
))
;; Avoid possible error by using a directory that always exists.
(
default-directory
"/"
))
;; Prevent any attempt to use display terminal fanciness.
(
setenv
"TERM"
"dumb"
)
(
if
(
fboundp
'start-process
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment