comparison src/coding.c @ 17304:ecacd8936926

(Ffind_coding_system): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sat, 05 Apr 1997 07:48:17 +0000
parents 6637001cdb4b
children 9d15bec5f47e
comparison
equal deleted inserted replaced
17303:36d37ad609f0 17304:ecacd8936926
3327 } 3327 }
3328 3328
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;
3351 { 3361 {
3352 Lisp_Object operation, target_idx, target, val; 3362 Lisp_Object operation, target_idx, target, val;