aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-06-09 12:40:51 +0300
committerEli Zaretskii2011-06-09 12:40:51 +0300
commit638e9005f1a275c6f8f3298ae7aaca4dba3abb25 (patch)
tree23daaad5b163011c0b24cf89f63d3164e5b87d2a
parent499719b7762b7dea99f0306b9d907ba50432215e (diff)
downloademacs-638e9005f1a275c6f8f3298ae7aaca4dba3abb25.tar.gz
emacs-638e9005f1a275c6f8f3298ae7aaca4dba3abb25.zip
Fix bug #8780 with decoding files after using ange-ftp.
lisp/net/ange-ftp.el (ange-ftp-insert-file-contents): Let-bind buffer-file-type before setting its value, to avoid disastrous global effects on decoding files for DOS/Windows systems.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/ange-ftp.el1
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c403c8045d2..47da6d77c90 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12011-06-09 Eli Zaretskii <eliz@gnu.org>
2
3 * net/ange-ftp.el (ange-ftp-insert-file-contents): Let-bind
4 buffer-file-type before setting its value, to avoid disastrous
5 global effects on decoding files for DOS/Windows systems.
6 (Bug#8780)
7
12011-06-05 Juanma Barranquero <lekktu@gmail.com> 82011-06-05 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * progmodes/python.el (python-after-info-look): Add autoload cookie. 10 * progmodes/python.el (python-after-info-look): Add autoload cookie.
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index c009671ce7c..a3a11756253 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -3290,6 +3290,7 @@ system TYPE.")
3290 (binary (or (ange-ftp-binary-file filename) 3290 (binary (or (ange-ftp-binary-file filename)
3291 (memq (ange-ftp-host-type host user) 3291 (memq (ange-ftp-host-type host user)
3292 '(unix dumb-unix)))) 3292 '(unix dumb-unix))))
3293 (buffer-file-type buffer-file-type)
3293 (abbr (ange-ftp-abbreviate-filename filename)) 3294 (abbr (ange-ftp-abbreviate-filename filename))
3294 (coding-system-used last-coding-system-used) 3295 (coding-system-used last-coding-system-used)
3295 size) 3296 size)