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
849eedba
Commit
849eedba
authored
Jun 10, 1998
by
Richard M. Stallman
Browse files
(command-line): Set `temporary-file-directory' based
on environment settings, before processing init files.
parent
2e454bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lisp/startup.el
lisp/startup.el
+10
-0
No files found.
lisp/startup.el
View file @
849eedba
...
...
@@ -468,6 +468,16 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(
defun
command-line
()
(
setq
command-line-default-directory
default-directory
)
;; Choose a reasonable location for temporary files.
(
setq
temporary-file-directory
(
file-name-as-directory
(
cond
((
memq
system-type
'
(
ms-dos
windows-nt
))
(
or
(
getenv
"TEMP"
)
(
getenv
"TMPDIR"
)
(
getenv
"TMP"
)
"c:/temp"
))
((
memq
system-type
'
(
vax-vms
axp-vms
))
(
or
(
getenv
"TMPDIR"
)
(
getenv
"TMP"
)
(
getenv
"TEMP"
)
"SYS$SCRATCH:"
))
(
t
(
or
(
getenv
"TMPDIR"
)
(
getenv
"TMP"
)
(
getenv
"TEMP"
)
"/tmp"
)))))
;; See if we should import version-control from the environment variable.
(
let
((
vc
(
getenv
"VERSION_CONTROL"
)))
(
cond
((
eq
vc
nil
))
;don't do anything if not set
...
...
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