but text as the same way as CODING-SYSTEM.
EOL-TYPE should be `unix', `dos', `mac', or nil.
If EOL-TYPE is nil, the returned coding system detects
-how end-of-line is formatted automatically while decoding."
- (let ((eol-type (cond ((eq eol-type 'unix) 0)
- ((eq eol-type 'dos) 1)
- ((eq eol-type 'mac) 2)
- (t eol-type)))
- (orig-eol-type (coding-system-eol-type coding-system)))
+how end-of-line is formatted automatically while decoding.
+
+EOL-TYPE can be specified by an integer 0, 1, or 2.
+They means `unix', `dos', and `mac' respectively."
+ (if (symbolp eol-type)
+ (setq eol-type (cond ((eq eol-type 'unix) 0)
+ ((eq eol-type 'dos) 1)
+ ((eq eol-type 'mac) 2)
+ (t eol-type))))
+ (let ((orig-eol-type (coding-system-eol-type coding-system)))
(if (vectorp orig-eol-type)
(if (not eol-type)
coding-system