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
f8dce815
Commit
f8dce815
authored
Oct 04, 2008
by
Glenn Morris
Browse files
(make-temp-file): Handle empty `prefix'. (Bug#1081)
parent
a80a6b03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/files.el
lisp/files.el
+5
-1
No files found.
lisp/ChangeLog
View file @
f8dce815
2008-10-04 Glenn Morris <rgm@gnu.org>
* files.el (make-temp-file): Handle empty `prefix'. (Bug#1081)
* vc-svn.el (vc-svn-after-dir-status): Handle `svn status -u' output.
(vc-svn-dir-status): Respect vc-stay-local-p. (Bug#1046)
...
...
lisp/files.el
View file @
f8dce815
...
...
@@ -976,7 +976,11 @@ If SUFFIX is non-nil, add that at the end of the file name."
(
progn
(
setq
file
(
make-temp-name
(expand-file-name prefix temporary-file-directory)))
(
if
(
zerop
(
length
prefix
))
(
file-name-as-directory
temporary-file-directory
)
(
expand-file-name
prefix
temporary-file-directory
))))
(
if
suffix
(
setq
file
(
concat
file
suffix
)))
(
if
dir-flag
...
...
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