aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/mule-cmds.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 088e388a139..eee8031dec5 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -157,9 +157,10 @@ We suggest you avoid using use this command unless you know what you
157are doing. If you use it by mistake, and the buffer is now displayed 157are doing. If you use it by mistake, and the buffer is now displayed
158wrong, use this command again to toggle back to the right mode." 158wrong, use this command again to toggle back to the right mode."
159 (interactive "P") 159 (interactive "P")
160 (setq enable-multibyte-characters 160 (let ((new-flag
161 (if (null arg) (null enable-multibyte-characters) 161 (if (null arg) (null enable-multibyte-characters)
162 (> (prefix-numeric-value arg) 0))) 162 (> (prefix-numeric-value arg) 0))))
163 (set-buffer-multibyte new-flag))
163 (force-mode-line-update)) 164 (force-mode-line-update))
164 165
165(defun view-hello-file () 166(defun view-hello-file ()
@@ -224,7 +225,7 @@ This also sets the following values:
224 base coding-system)) 225 base coding-system))
225 (set-default-coding-systems (or base coding-system)))) 226 (set-default-coding-systems (or base coding-system))))
226 227
227(defun list-subset-p (list1 list2) 228(defun find-safe-coding-system-list-subset-p (list1 list2)
228 "Return non-nil if all elements in LIST1 are included in LIST2. 229 "Return non-nil if all elements in LIST1 are included in LIST2.
229Comparison done with EQ." 230Comparison done with EQ."
230 (catch 'tag 231 (catch 'tag
@@ -261,7 +262,8 @@ and TO is ignored."
261 (if (and (eq coding (coding-system-base coding)) 262 (if (and (eq coding (coding-system-base coding))
262 (setq safe (coding-system-get coding 'safe-charsets)) 263 (setq safe (coding-system-get coding 'safe-charsets))
263 (or (eq safe t) 264 (or (eq safe t)
264 (list-subset-p charset-list safe))) 265 (find-safe-coding-system-list-subset-p
266 charset-list safe)))
265 ;; We put the higher priority to coding systems included 267 ;; We put the higher priority to coding systems included
266 ;; in PREFERED-CODINGS, and within them, put the higher 268 ;; in PREFERED-CODINGS, and within them, put the higher
267 ;; priority to coding systems which support smaller 269 ;; priority to coding systems which support smaller