]> git.eshelyaron.com Git - emacs.git/commitdiff
* mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 May 2019 00:49:06 +0000 (20:49 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 May 2019 00:49:06 +0000 (20:49 -0400)
lisp/international/mule.el

index ba30fee496181a3c459550ed0120c97687de19e3..b5414de0dba637f3a6af3da1dc8e891e9c8b1877 100644 (file)
@@ -1345,8 +1345,11 @@ just set the variable `buffer-file-coding-system' directly."
       (setq coding-system
            (merge-coding-systems coding-system buffer-file-coding-system)))
   (when (and (called-interactively-p 'interactive)
-            (not (memq 'emacs (coding-system-get coding-system
-                                                 :charset-list))))
+             ;; FIXME: For some reason
+             ;;     (coding-system-get 'iso-2022-7bit :charset-list)
+             ;; returns `iso-2022' rather than returning a list!
+             (let ((css (coding-system-get coding-system :charset-list)))
+               (not (and (listp css) (memq 'emacs css)))))
     ;; Check whether save would succeed, and jump to the offending char(s)
     ;; if not.
     (let ((css (find-coding-systems-region (point-min) (point-max))))