+2011-06-27 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * net/ange-ftp.el: Allow loading .gz files (Bug#6923).
+ (ange-ftp-make-tmp-name): New arg.
+ (ange-ftp-file-local-copy): Use it.
+
2011-06-27 Jambunathan K <kjambunathan@gmail.com>
* tar-mode.el (tar-untar-buffer): Set coding-system-for-write to
;;; Temporary file location and deletion...
;;; ------------------------------------------------------------
-(defun ange-ftp-make-tmp-name (host)
+(defun ange-ftp-make-tmp-name (host &optional suffix)
"This routine will return the name of a new file."
(make-temp-file (if (ange-ftp-use-gateway-p host)
ange-ftp-gateway-tmp-name-template
- ange-ftp-tmp-name-template)))
+ ange-ftp-tmp-name-template)
+ nil suffix))
(defun ange-ftp-del-tmp-name (filename)
"Force to delete temporary file."
(let* ((fn1 (expand-file-name file))
(pa1 (ange-ftp-ftp-name fn1)))
(if pa1
- (let ((tmp1 (ange-ftp-make-tmp-name (car pa1))))
+ (let ((tmp1 (ange-ftp-make-tmp-name (car pa1)
+ (file-name-extension file t))))
(ange-ftp-copy-file-internal fn1 tmp1 t nil
(format "Getting %s" fn1))
tmp1))))