Mercurial > emacs
comparison lisp/international/mule-util.el @ 57443:0a99216aefaf
(coding-system-equal): Moved to mule.el.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 12 Oct 2004 05:24:14 +0000 |
parents | 4d5ade635f7a |
children | 9b0a547610a4 |
comparison
equal
deleted
inserted
replaced
57442:2d9a1d1ac73d | 57443:0a99216aefaf |
---|---|
313 (defun coding-system-translation-table-for-encode (coding-system) | 313 (defun coding-system-translation-table-for-encode (coding-system) |
314 "Return the value of CODING-SYSTEM's `translation-table-for-encode' property." | 314 "Return the value of CODING-SYSTEM's `translation-table-for-encode' property." |
315 (coding-system-get coding-system 'translation-table-for-encode)) | 315 (coding-system-get coding-system 'translation-table-for-encode)) |
316 | 316 |
317 ;;;###autoload | 317 ;;;###autoload |
318 (defun coding-system-equal (coding-system-1 coding-system-2) | |
319 "Return t if and only if CODING-SYSTEM-1 and CODING-SYSTEM-2 are identical. | |
320 Two coding systems are identical if two symbols are equal | |
321 or one is an alias of the other." | |
322 (or (eq coding-system-1 coding-system-2) | |
323 (and (equal (coding-system-spec coding-system-1) | |
324 (coding-system-spec coding-system-2)) | |
325 (let ((eol-type-1 (coding-system-eol-type coding-system-1)) | |
326 (eol-type-2 (coding-system-eol-type coding-system-2))) | |
327 (or (eq eol-type-1 eol-type-2) | |
328 (and (vectorp eol-type-1) (vectorp eol-type-2))))))) | |
329 | |
330 ;;;###autoload | |
331 (defmacro detect-coding-with-priority (from to priority-list) | 318 (defmacro detect-coding-with-priority (from to priority-list) |
332 "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. | 319 "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. |
333 PRIORITY-LIST is an alist of coding categories vs the corresponding | 320 PRIORITY-LIST is an alist of coding categories vs the corresponding |
334 coding systems ordered by priority." | 321 coding systems ordered by priority." |
335 `(unwind-protect | 322 `(unwind-protect |