changeset 27585:65b514b0ab72

(ange-ftp-write-region): Handle case that succeeding process operation sets a different coding system.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 02 Feb 2000 15:11:39 +0000
parents 2f7978218574
children 5d6eb73b10d0
files lisp/ange-ftp.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ange-ftp.el	Wed Feb 02 15:10:35 2000 +0000
+++ b/lisp/ange-ftp.el	Wed Feb 02 15:11:39 2000 +0000
@@ -3185,6 +3185,7 @@
 				 (memq (ange-ftp-host-type host user)
 				       '(unix dumb-unix))))
 		     (abbr (ange-ftp-abbreviate-filename filename))
+		     (coding-system-used last-coding-system-used)
 		     size)
 		(unwind-protect
 		    (progn
@@ -3207,6 +3208,7 @@
 			   size
 			   (nth 1 (ange-ftp-real-insert-file-contents
 				   temp visit beg end replace))
+			   coding-system-used last-coding-system-used
 			   ;; override autodetection of buffer file type
 			   ;; to ensure buffer is saved in DOS format
 			   buffer-file-type binary)
@@ -3226,6 +3228,7 @@
 		    (progn
 		      (set-visited-file-modtime '(0 0))
 		      (setq buffer-file-name filename)))
+		(setq last-coding-system-used coding-system-used)
 		(list filename size))
 	    (signal 'file-error
 		    (list