Next: Basic Coding System Functions, Previous: EOL Conversion, Up: Coding Systems [Contents][Index]
mnemonicString to be displayed in the modeline when this coding system is active.
eol-typeEnd-of-line conversion to be used. It should be one of the types listed in EOL Conversion.
eol-lfThe coding system which is the same as this one, except that it uses the Unix line-breaking convention.
eol-crlfThe coding system which is the same as this one, except that it uses the DOS line-breaking convention.
eol-crThe coding system which is the same as this one, except that it uses the Macintosh line-breaking convention.
post-read-conversionFunction called after a file has been read in, to perform the decoding. Called with two arguments, start and end, denoting a region of the current buffer to be decoded.
pre-write-conversionFunction called before a file is written out, to perform the encoding. Called with two arguments, start and end, denoting a region of the current buffer to be encoded.
The following additional properties are recognized if type is
iso2022:
charset-g0charset-g1charset-g2charset-g3The character set initially designated to the G0 - G3 registers. The value should be one of
nil (do not ever use this register)
t (no character set is initially designated to the register, but
may be later on; this automatically sets the corresponding
force-g*-on-output property)
force-g0-on-outputforce-g1-on-outputforce-g2-on-outputforce-g3-on-outputIf non-nil, send an explicit designation sequence on output
before using the specified register.
shortIf non-nil, use the short forms ‘ESC $ @’, ‘ESC $ A’,
and ‘ESC $ B’ on output in place of the full designation sequences
‘ESC $ ( @’, ‘ESC $ ( A’, and ‘ESC $ ( B’.
no-ascii-eolIf non-nil, don’t designate ASCII to G0 at each end of line on
output. Setting this to non-nil also suppresses other
state-resetting that normally happens at the end of a line.
no-ascii-cntlIf non-nil, don’t designate ASCII to G0 before control chars on
output.
sevenIf non-nil, use 7-bit environment on output. Otherwise, use 8-bit
environment.
lock-shiftIf non-nil, use locking-shift (SO/SI) instead of single-shift or
designation by escape sequence.
no-iso6429If non-nil, don’t use ISO6429’s direction specification.
escape-quotedIf non-nil, literal control characters that are the same as the
beginning of a recognized ISO 2022 or ISO 6429 escape sequence (in
particular, ESC (0x1B), SO (0x0E), SI (0x0F), SS2 (0x8E), SS3 (0x8F),
and CSI (0x9B)) are “quoted” with an escape character so that they can
be properly distinguished from an escape sequence. (Note that doing
this results in a non-portable encoding.) This encoding flag is used for
byte-compiled files. Note that ESC is a good choice for a quoting
character because there are no escape sequences whose second byte is a
character from the Control-0 or Control-1 character sets; this is
explicitly disallowed by the ISO 2022 standard.
input-charset-conversionA list of conversion specifications, specifying conversion of characters in one charset to another when decoding is performed. Each specification is a list of two elements: the source charset, and the destination charset.
output-charset-conversionA list of conversion specifications, specifying conversion of characters
in one charset to another when encoding is performed. The form of each
specification is the same as for input-charset-conversion.
The following additional properties are recognized (and required) if
type is ccl:
decodeCCL program used for decoding (converting to internal format).
encodeCCL program used for encoding (converting to external format).
The following properties are used internally: eol-cr, eol-crlf, eol-lf, and base.
Next: Basic Coding System Functions, Previous: EOL Conversion, Up: Coding Systems [Contents][Index]