diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-11-26 19:09:04 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-11-26 19:09:04 +0200 |
commit | 33a488e4e6869d24d2b3d518d012f9218be6c76c (patch) | |
tree | 93f6e5300f451472eee0a831e627ae54c47edf61 /lisp/dos-w32.el | |
parent | 502071919d6b29e90123ec4adc73f26b31bc1b14 (diff) | |
download | emacs-33a488e4e6869d24d2b3d518d012f9218be6c76c.tar.gz |
Partial fix for bug #12989 with buffer-file-type annoyances.
lisp/subr.el (buffer-file-type): Declare with defvar-local. Doc fix.
lisp/dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
Don't set buffer-file-type. Return nil.
Diffstat (limited to 'lisp/dos-w32.el')
-rw-r--r-- | lisp/dos-w32.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el index 4839d6b9239..cb043ce8559 100644 --- a/lisp/dos-w32.el +++ b/lisp/dos-w32.el @@ -210,7 +210,7 @@ set to the appropriate coding system, and the value of (untranslated-file-p (buffer-file-name)))) (setq coding (coding-system-change-eol-conversion coding 0)) (setq buffer-file-coding-system coding)) - (setq buffer-file-type (eq buffer-file-coding-system 'no-conversion))))) + nil))) ;;; To set the default coding system on new files. (add-hook 'find-file-not-found-functions |