aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index debb2f27ffc..9f95c2c6777 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8315,7 +8315,7 @@ is selected as the TARGET. For example, if OPERATION does file I/O,
8315whichever argument specifies the file name is TARGET. 8315whichever argument specifies the file name is TARGET.
8316 8316
8317TARGET has a meaning which depends on OPERATION: 8317TARGET has a meaning which depends on OPERATION:
8318 For file I/O, TARGET is a file name. 8318 For file I/O, TARGET is a file name (except for the special case below).
8319 For process I/O, TARGET is a process name. 8319 For process I/O, TARGET is a process name.
8320 For network I/O, TARGET is a service name or a port number 8320 For network I/O, TARGET is a service name or a port number
8321 8321
@@ -8327,6 +8327,13 @@ or a function symbol to call.
8327In the last case, we call the function with one argument, 8327In the last case, we call the function with one argument,
8328which is a list of all the arguments given to this function. 8328which is a list of all the arguments given to this function.
8329 8329
8330If OPERATION is `insert-file-contents', the argument corresponding to
8331TARGET may be a cons (FILENAME . BUFFER). In that case, FILENAME is a
8332file name to look up, and BUFFER is a buffer that contains the file's
8333contents (not yet decoded). If `file-coding-system-alist' specifies a
8334function to call for FILENAME, that function should examine the
8335contents of BUFFER instead of reading the file.
8336
8330usage: (find-operation-coding-system OPERATION ARGUMENTS ...) */) 8337usage: (find-operation-coding-system OPERATION ARGUMENTS ...) */)
8331 (nargs, args) 8338 (nargs, args)
8332 int nargs; 8339 int nargs;
@@ -8380,7 +8387,7 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS ...) */)
8380 return Fcons (val, val); 8387 return Fcons (val, val);
8381 if (! NILP (Ffboundp (val))) 8388 if (! NILP (Ffboundp (val)))
8382 { 8389 {
8383 val = call1 (val, Flist (nargs, args)); 8390 val = safe_call1 (val, Flist (nargs, args));
8384 if (CONSP (val)) 8391 if (CONSP (val))
8385 return val; 8392 return val;
8386 if (SYMBOLP (val) && ! NILP (Fcoding_system_p (val))) 8393 if (SYMBOLP (val) && ! NILP (Fcoding_system_p (val)))