4, set coding-category property of the coding system to
coding-category-ccl.
(find-new-buffer-file-coding-system): If the arg CODING carries
some information (about text conversion or eol conversion), always
return a new coding system.
(charset-origin-alist): New variable.
(make-translation-table-from-vector): New function.
(set-auto-coding): If set-auto-coding-for-load is non-nil,
look for "unibyte" file variable first, then for "coding".
(load-with-code-conversion): Bind set-auto-coding-for-load to t.
Don't bind enable-multibyte-characters; instead,
bind default-enable-multibyte-characters before creating buffer.
(after-insert-file-set-buffer-file-coding-system):
Use set-buffer-multibyte.
Use add-hook to add this to after-insert-file-functions.
function.
(coding-system-base): Doc-string modified.
(make-coding-system): The 6th optional arg is changed to
PROPERTIES.
(set-buffer-file-coding-system): Show "(default, nil)" in prompt.
(set-coding-priority): Code tuned.
preloaded-file-list, bind load-file-name and
inhibit-frame-unsplittable properly.
(make-char): Make it a function. Set it byte-compile property to
optimize byte-compiled codes.
(make-coding-system): New optional arg charsets. Set property
`safe-charsets' of the coding system to it.
(1) Make all coding systems (including aliases and subsidiaries)
directly have coding-spec vector in `coding-system' property.
(2) Properties of a coding system (except for `coding-system' and
`eol-type') is embeded in PLIST slot of coding-spec vector.
(coding-spec-plist-idx): Initialize to 3.
(coding-system-spec-ref): Deleted.
(coding-system-spec): Moved from src/coding.c.
(coding-system-type): Adjusted for the above change.
(coding-system-mnemonic): Likewise.
(coding-system-doc-string): Likewise.
(coding-system-flags): Likewise.
(coding-system-eol-type): Likewise.
(coding-system-category): Likewise.
(coding-system-get, coding-system-put, coding-system-category):
New functions.
(coding-system-base): Moved from mule-util.el and adjusted for the
above change.
(coding-system-parent): Make it obsolete alias of
coding-system-base.
(make-subsidiary-coding-system): Adjusted for the above change.
Update coding-system-list and coding-system-alist.
(make-coding-system): Likewise.
(set-buffer-file-coding-system): Typo in doc-string fixed.
(after-insert-file-set-buffer-file-coding-system): Change
enable-multibyte-characters only when
find-new-buffer-file-coding-system returns non-nil value.
(find-new-buffer-file-coding-system): Adjusted for the abobe change.
text coding part of default-buffer-file-coding-system to
buffer-file-coding-system when buffer-file-coding-system is
not locally set and ASCII only text is read.
Use it instead of quoted-symbol-p.
(charset-id): Use charset-quoted-standard-p.
(quoted-symbol-p): Function deleted.
(set-terminal-coding-system): Specify default to read-coding-system.
(set-keyboard-coding-system): Likewise.
auto-file-coding-system. The argument STRING is now a
concatination of the heading 1K-byte and the tailing 3K-byte of a
file.
(set-auto-coding-function): Set it to `set-auto-coding'.
raw-text.
(after-insert-file-set-buffer-file-coding-system): Set
enable-multibyte-characters to nil if we read a file with
no-conversion or raw-text-XXXX.
(default-terminal-coding-system): New var.
(set-terminal-coding-system):
Use default-terminal-coding-system as default.
(default-keyboard-coding-system): New variable.
(set-keyboard-coding-system):
Use default-keyboard-coding-system as default.