summaryrefslogtreecommitdiff
path: root/lisp/international
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-03-02 10:42:29 +0200
committerEli Zaretskii <eliz@gnu.org>2019-03-02 10:42:29 +0200
commitf872b65b2f6b83f3cee2eb0e80cb296d1de99505 (patch)
tree4c3b7f0f27913f721edf0077037b71634f0c5f46 /lisp/international
parent04cad5e8eac6fee415c0951d673e8a27534e727d (diff)
downloademacs-f872b65b2f6b83f3cee2eb0e80cb296d1de99505.tar.gz
Improve documentation of 'auto-coding-functions'
* doc/lispref/nonascii.texi (Default Coding Systems): Clarify that the functions in 'auto-coding-functions' are called both for decoding and for encoding. * lisp/international/mule.el (auto-coding-functions): Doc fix.
Diffstat (limited to 'lisp/international')
-rw-r--r--lisp/international/mule.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 58fdd28243a..cc0658dc3f4 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1851,9 +1851,12 @@ or nil."
Each function in this list should be written to operate on the
current buffer, but should not modify it in any way. The buffer
-will contain undecoded text of parts of the file. Each function
+will contain the text of parts of the file. Each function
should take one argument, SIZE, which says how many characters
-\(starting from point) it should look at.
+\(starting from point) it should look at. The function might be
+called both when the file is visited and Emacs wants to decode
+its contents, and when the file's buffer is about to be saved
+and Emacs wants to determine how to encode its contents.
If one of these functions succeeds in determining a coding
system, it should return that coding system. Otherwise, it