diff options
| author | Eli Zaretskii | 1999-01-06 10:24:17 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1999-01-06 10:24:17 +0000 |
| commit | 16afc7b09f1545078a2568e4585b9d2fe7f82d8f (patch) | |
| tree | 541adc70420598456d211c4ae9db6955f15a509b /lisp | |
| parent | b66d85334bb3f5ce4e6191a2f1f31be84b3c8874 (diff) | |
| download | emacs-16afc7b09f1545078a2568e4585b9d2fe7f82d8f.tar.gz emacs-16afc7b09f1545078a2568e4585b9d2fe7f82d8f.zip | |
(coding-system-change-eol-conversion,
coding-system-change-text-conversion): Don't define here.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/international/mule-util.el | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index a366123ec25..56b85b1778f 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -288,50 +288,6 @@ or one is an alias of the other." | |||
| 288 | (and (vectorp eol-type-1) (vectorp eol-type-2))))))) | 288 | (and (vectorp eol-type-1) (vectorp eol-type-2))))))) |
| 289 | 289 | ||
| 290 | ;;;###autoload | 290 | ;;;###autoload |
| 291 | (defun coding-system-change-eol-conversion (coding-system eol-type) | ||
| 292 | "Return a coding system which differs from CODING-SYSTEM in eol conversion. | ||
| 293 | The returned coding system converts end-of-line by EOL-TYPE | ||
| 294 | but text as the same way as CODING-SYSTEM. | ||
| 295 | EOL-TYPE should be `unix', `dos', `mac', or nil. | ||
| 296 | If EOL-TYPE is nil, the returned coding system detects | ||
| 297 | how end-of-line is formatted automatically while decoding. | ||
| 298 | |||
| 299 | EOL-TYPE can be specified by an integer 0, 1, or 2. | ||
| 300 | They means `unix', `dos', and `mac' respectively." | ||
| 301 | (if (symbolp eol-type) | ||
| 302 | (setq eol-type (cond ((eq eol-type 'unix) 0) | ||
| 303 | ((eq eol-type 'dos) 1) | ||
| 304 | ((eq eol-type 'mac) 2) | ||
| 305 | (t eol-type)))) | ||
| 306 | (let ((orig-eol-type (coding-system-eol-type coding-system))) | ||
| 307 | (if (vectorp orig-eol-type) | ||
| 308 | (if (not eol-type) | ||
| 309 | coding-system | ||
| 310 | (aref orig-eol-type eol-type)) | ||
| 311 | (let ((base (coding-system-base coding-system))) | ||
| 312 | (if (not eol-type) | ||
| 313 | base | ||
| 314 | (if (= eol-type orig-eol-type) | ||
| 315 | coding-system | ||
| 316 | (setq orig-eol-type (coding-system-eol-type base)) | ||
| 317 | (if (vectorp orig-eol-type) | ||
| 318 | (aref orig-eol-type eol-type)))))))) | ||
| 319 | |||
| 320 | ;;;###autoload | ||
| 321 | (defun coding-system-change-text-conversion (coding-system coding) | ||
| 322 | "Return a coding system which differs from CODING-SYSTEM in text conversion. | ||
| 323 | The returned coding system converts text by CODING | ||
| 324 | but end-of-line as the same way as CODING-SYSTEM. | ||
| 325 | If CODING is nil, the returned coding system detects | ||
| 326 | how text is formatted automatically while decoding." | ||
| 327 | (if (not coding) | ||
| 328 | (coding-system-base coding-system) | ||
| 329 | (let ((eol-type (coding-system-eol-type coding-system))) | ||
| 330 | (coding-system-change-eol-conversion | ||
| 331 | coding | ||
| 332 | (if (numberp eol-type) (aref [unix dos mac] eol-type)))))) | ||
| 333 | |||
| 334 | ;;;###autoload | ||
| 335 | (defmacro detect-coding-with-priority (from to priority-list) | 291 | (defmacro detect-coding-with-priority (from to priority-list) |
| 336 | "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. | 292 | "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. |
| 337 | PRIORITY-LIST is an alist of coding categories vs the corresponding | 293 | PRIORITY-LIST is an alist of coding categories vs the corresponding |