is guaranteed to point to a newly created empty file.
You can then use `write-region' to write new data into the file."
(let (tempdir tempfile)
- (setq prefix (expand-file-name prefix temporary-file-directory))
+ (setq prefix (expand-file-name prefix
+ (if (featurep 'xemacs)
+ (temp-directory)
+ temporary-file-directory)))
(unwind-protect
(let (file)
;; First, create a temporary directory.