[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 802dcaf: * mule.el (set-buffer-file-coding-system):
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 802dcaf: * mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit |
Date: |
Thu, 16 May 2019 20:49:11 -0400 (EDT) |
branch: master
commit 802dcafb5ebc3588e26a7f83e6144b73d99f2e13
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit
---
lisp/international/mule.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index ba30fee..b5414de 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 802dcaf: * mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bit,
Stefan Monnier <=