(make-temp-file): Handle empty `prefix'. (Bug#1081)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user