"This routine will return the name of a new file."
(make-temp-file jka-compr-temp-name-template))
-(defun jka-compr-write-region (start end file &optional append visit)
+(defun jka-compr-write-region (start end file &optional
+ append visit lockname mustbenew)
(let* ((filename (expand-file-name file))
(visit-file (if (stringp visit) (expand-file-name visit) filename))
(info (jka-compr-get-compression-info visit-file))
(jka-compr-run-real-handler 'write-region
(list (point-min) (point-max)
filename
- (and append can-append) 'dont))
+ (and append can-append) 'dont
+ lockname mustbenew))
(erase-buffer)) )
(delete-file temp-file)
nil)
(jka-compr-run-real-handler 'write-region
- (list start end filename append visit)))))
+ (list start end filename append visit
+ lockname mustbenew)))))
(defun jka-compr-insert-file-contents (file &optional visit beg end replace)