set-auto-coding-function
set-auto-coding-function is a variable defined in `
C source code
'.
Its value is
set-auto-coding
- This variable may be risky if used as a file-local variable.
Documentation:
If non-nil, a function to call to decide a coding system of file.
Two arguments are passed to this function: the file name
and the length of a file contents following the point.
This function should return a coding system to decode the file contents.
It should check the file name against `auto-coding-alist'.
If no coding system is decided, it should check a coding system
specified in the heading lines with the format:
-*- ... coding: CODING-SYSTEM; ... -*-
or local variable spec of the tailing lines with `coding:' tag.