Namely this function ensures that only format decoding and character
code conversion will not take place."
(let (mc-flag
- (file-coding-system *noconv*))
+ (file-coding-system-for-read *noconv*))
(insert-file-contents filename visit beg end replace)
))
(defalias 'char-charset 'char-leading-char)
+(defun split-char (character)
+ "Return list of charset and one or two position-codes of CHARACTER."
+ (let ((p (1- (char-bytes character)))
+ dest)
+ (while (>= p 1)
+ (setq dest (cons (- (char-component character p) 128) dest)
+ p (1- p))
+ )
+ (cons (char-charset character) dest)
+ ))
+
(defmacro char-next-index (char index)
"Return index of character succeeding CHAR whose index is INDEX."
(` (+ (, index) (char-bytes (, char)))))