aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))))