+2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * url-file.el (url-file, url-file-asynch-callback): with-current-buffer.
+
2005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
* url-dav.el: Remove most autoload cookies.
func args
args efs))
(let ((size (nth 7 (file-attributes name))))
- (save-excursion
- (set-buffer buff)
+ (with-current-buffer buff
(goto-char (point-max))
(if (/= -1 size)
(insert (format "Content-length: %d\n" size)))
(if (file-directory-p filename)
;; A directory is done the same whether we are local or remote
(url-find-file-dired filename)
- (save-excursion
- (setq buffer (generate-new-buffer " *url-file*"))
- (set-buffer buffer)
+ (with-current-buffer
+ (setq buffer (generate-new-buffer " *url-file*"))
(mm-disable-multibyte)
(setq url-current-object url)
(insert "Content-type: " (or content-type "application/octet-stream") "\n")