aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-05-16 20:49:06 -0400
committerStefan Monnier2019-05-16 20:49:06 -0400
commit802dcafb5ebc3588e26a7f83e6144b73d99f2e13 (patch)
tree9f3fa2dc948c14dca046b9fbee0958a9aae5836c
parent8d3fff6bd68198b1a76dce559b0b8a5f87cd5103 (diff)
downloademacs-802dcafb5ebc3588e26a7f83e6144b73d99f2e13.tar.gz
emacs-802dcafb5ebc3588e26a7f83e6144b73d99f2e13.zip
* mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit
-rw-r--r--lisp/international/mule.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index ba30fee4961..b5414de0dba 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1345,8 +1345,11 @@ just set the variable `buffer-file-coding-system' directly."
1345 (setq coding-system 1345 (setq coding-system
1346 (merge-coding-systems coding-system buffer-file-coding-system))) 1346 (merge-coding-systems coding-system buffer-file-coding-system)))
1347 (when (and (called-interactively-p 'interactive) 1347 (when (and (called-interactively-p 'interactive)
1348 (not (memq 'emacs (coding-system-get coding-system 1348 ;; FIXME: For some reason
1349 :charset-list)))) 1349 ;; (coding-system-get 'iso-2022-7bit :charset-list)
1350 ;; returns `iso-2022' rather than returning a list!
1351 (let ((css (coding-system-get coding-system :charset-list)))
1352 (not (and (listp css) (memq 'emacs css)))))
1350 ;; Check whether save would succeed, and jump to the offending char(s) 1353 ;; Check whether save would succeed, and jump to the offending char(s)
1351 ;; if not. 1354 ;; if not.
1352 (let ((css (find-coding-systems-region (point-min) (point-max)))) 1355 (let ((css (find-coding-systems-region (point-min) (point-max))))