aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1999-05-26 12:27:38 +0000
committerKenichi Handa1999-05-26 12:27:38 +0000
commit0e0a9ac30d67329b4f3095f40dee8cf83968a5be (patch)
tree2132c141c92c40049fd94b56fef27f9134925f32
parentaa8bb64501f54da6bd1a4c8cea4e13b999eda353 (diff)
downloademacs-0e0a9ac30d67329b4f3095f40dee8cf83968a5be.tar.gz
emacs-0e0a9ac30d67329b4f3095f40dee8cf83968a5be.zip
(find-coding-systems-for-charsets):
Typo fixed; prefered->preferred.
-rw-r--r--lisp/international/mule-cmds.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 69cad2e9e15..5cffcd5b1aa 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -348,12 +348,12 @@ CHARSETS is a list of character sets."
348 '(undecided) 348 '(undecided)
349 (setq charsets (delq 'composition charsets)) 349 (setq charsets (delq 'composition charsets))
350 (let ((l (coding-system-list 'base-only)) 350 (let ((l (coding-system-list 'base-only))
351 (charset-prefered-codings 351 (charset-preferred-codings
352 (mapcar (function 352 (mapcar (function
353 (lambda (x) 353 (lambda (x)
354 (if (eq x 'unknown) 354 (if (eq x 'unknown)
355 'raw-text 355 'raw-text
356 (get-charset-property x 'prefered-coding-system)))) 356 (get-charset-property x 'preferred-coding-system))))
357 charsets)) 357 charsets))
358 (priorities (mapcar (function (lambda (x) (symbol-value x))) 358 (priorities (mapcar (function (lambda (x) (symbol-value x)))
359 coding-category-list)) 359 coding-category-list))
@@ -367,13 +367,13 @@ CHARSETS is a list of character sets."
367 (or (eq safe t) 367 (or (eq safe t)
368 (find-coding-systems-region-subset-p charsets safe))) 368 (find-coding-systems-region-subset-p charsets safe)))
369 ;; We put the higher priority to coding systems included 369 ;; We put the higher priority to coding systems included
370 ;; in CHARSET-PREFERED-CODINGS, and within them, put the 370 ;; in CHARSET-PREFERRED-CODINGS, and within them, put the
371 ;; higher priority to coding systems which support smaller 371 ;; higher priority to coding systems which support smaller
372 ;; number of charsets. 372 ;; number of charsets.
373 (let ((priority 373 (let ((priority
374 (+ (if (coding-system-get coding 'mime-charset) 4096 0) 374 (+ (if (coding-system-get coding 'mime-charset) 4096 0)
375 (lsh (length (memq coding priorities)) 7) 375 (lsh (length (memq coding priorities)) 7)
376 (if (memq coding charset-prefered-codings) 64 0) 376 (if (memq coding charset-preferred-codings) 64 0)
377 (if (> (coding-system-type coding) 0) 32 0) 377 (if (> (coding-system-type coding) 0) 32 0)
378 (if (consp safe) (- 32 (length safe)) 0)))) 378 (if (consp safe) (- 32 (length safe)) 0))))
379 (setq codings (cons (cons priority coding) codings))))) 379 (setq codings (cons (cons priority coding) codings)))))