diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/src/coding.c b/src/coding.c index 6e20b47ee34..af3e3366872 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -3329,22 +3329,32 @@ DEFUN ("keyboard-coding-system", | |||
| 3329 | 3329 | ||
| 3330 | DEFUN ("find-coding-system", Ffind_coding_system, Sfind_coding_system, | 3330 | DEFUN ("find-coding-system", Ffind_coding_system, Sfind_coding_system, |
| 3331 | 1, MANY, 0, | 3331 | 1, MANY, 0, |
| 3332 | "Return a cons of coding systems for I/O primitive OPERATION.\n\ | 3332 | "Choose a coding system for a file operation based on file name.\n\ |
| 3333 | Remaining arguments are for OPERATION.\n\ | 3333 | The value names a pair of coding systems: (ENCODING-SYSTEM DECODING-SYSTEM).\n\ |
| 3334 | OPERATION is one of the following Emacs I/O primitives:\n\ | 3334 | ENCODING-SYSTEM is the coding system to use for encoding\n\ |
| 3335 | For file I/O, insert-file-contents or write-region.\n\ | 3335 | \(in case OPERATION does encoding), and DECODING-SYSTEM is the coding system\n\ |
| 3336 | For process I/O, call-process, call-process-region, or start-process.\n\ | 3336 | for decoding (in case OPERATION does decoding).\n\ |
| 3337 | For network I/O, open-network-stream.\n\ | 3337 | \n\ |
| 3338 | For each OPERATION, TARGET is selected from the arguments as below:\n\ | 3338 | The first argument OPERATION specifies an I/O primitive:\n\ |
| 3339 | For file I/O, `insert-file-contents' or `write-region'.\n\ | ||
| 3340 | For process I/O, `call-process', `call-process-region', or `start-process'.\n\ | ||
| 3341 | For network I/O, `open-network-stream'.\n\ | ||
| 3342 | \n\ | ||
| 3343 | The remaining arguments should be the same arguments that were passed\n\ | ||
| 3344 | to the primitive. Depending on which primitive, one of those arguments\n\ | ||
| 3345 | is selected as the TARGET. For example, if OPERATION does file I/O,\n\ | ||
| 3346 | whichever argument specifies the file name is TARGET.\n\ | ||
| 3347 | \n\ | ||
| 3348 | TARGET has a meaning which depends on OPERATION:\n\ | ||
| 3339 | For file I/O, TARGET is a file name.\n\ | 3349 | For file I/O, TARGET is a file name.\n\ |
| 3340 | For process I/O, TARGET is a process name.\n\ | 3350 | For process I/O, TARGET is a process name.\n\ |
| 3341 | For network I/O, TARGET is a service name or a port number\n\ | 3351 | For network I/O, TARGET is a service name or a port number\n\ |
| 3342 | \n\ | 3352 | \n\ |
| 3343 | The return value is a cons of coding systems for decoding and encoding\n\ | 3353 | This function looks up what `coding-system-alist' specifies for\n\ |
| 3344 | registered in nested alist `coding-system-alist' (which see) at a slot\n\ | 3354 | OPERATION and TARGET. It may specify a cons cell which represents\n\ |
| 3345 | corresponding to OPERATION and TARGET.\n\ | 3355 | a particular coding system or it may have a function to call.\n\ |
| 3346 | If a function symbol is at the slot, return a result of the function call.\n\ | 3356 | In the latter case, we call the function with one argument,\n\ |
| 3347 | The function is called with one argument, a list of all the arguments.") | 3357 | which is a list of all the arguments given to `find-coding-system'.") |
| 3348 | (nargs, args) | 3358 | (nargs, args) |
| 3349 | int nargs; | 3359 | int nargs; |
| 3350 | Lisp_Object *args; | 3360 | Lisp_Object *args; |