Commit 36d455c4 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(set-buffer-file-coding-system): If CODING-SYSTEM is nil, set

buffer-file-coding-system to nil unconditionally.
parent 5050a2ef
......@@ -815,7 +815,7 @@ don't want to mark the buffer modified, just set the variable
`buffer-file-coding-system' directly."
(interactive "zCoding system for visited file (default, nil): \nP")
(check-coding-system coding-system)
(if (and buffer-file-coding-system (null force))
(if (and coding-system buffer-file-coding-system (null force))
(let ((x (coding-system-eol-type buffer-file-coding-system))
(y (coding-system-eol-type coding-system)))
(if (and (numberp x) (>= x 0) (<= x 2) (vectorp y))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment