select-safe-coding-system-function

select-safe-coding-system-function is a variable defined in `C source code'.
Its value is
select-safe-coding-system

  • This variable may be risky if used as a file-local variable.

Documentation:
Function to call to select safe coding system for encoding a text.

If set, this function is called to force a user to select a proper
coding system which can encode the text in the case that a default
coding system used in each operation can't encode the text. The
function should take care that the buffer is not modified while
the coding system is being selected.

The default value is `select-safe-coding-system' (which see).