aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-05 07:48:17 +0000
committerRichard M. Stallman1997-04-05 07:48:17 +0000
commitccdb79f5d90634c98f515be534639a797a217a11 (patch)
treea47045b26fd03d7eed03e32673199b579e5a4278 /src/coding.c
parent178663df99621384bae489a9130bb36af04c1aba (diff)
downloademacs-ccdb79f5d90634c98f515be534639a797a217a11.tar.gz
emacs-ccdb79f5d90634c98f515be534639a797a217a11.zip
(Ffind_coding_system): Doc fix.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c34
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
3330DEFUN ("find-coding-system", Ffind_coding_system, Sfind_coding_system, 3330DEFUN ("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\
3333Remaining arguments are for OPERATION.\n\ 3333The value names a pair of coding systems: (ENCODING-SYSTEM DECODING-SYSTEM).\n\
3334OPERATION is one of the following Emacs I/O primitives:\n\ 3334ENCODING-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\ 3336for decoding (in case OPERATION does decoding).\n\
3337 For network I/O, open-network-stream.\n\ 3337\n\
3338For each OPERATION, TARGET is selected from the arguments as below:\n\ 3338The 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\
3343The remaining arguments should be the same arguments that were passed\n\
3344to the primitive. Depending on which primitive, one of those arguments\n\
3345is selected as the TARGET. For example, if OPERATION does file I/O,\n\
3346whichever argument specifies the file name is TARGET.\n\
3347\n\
3348TARGET 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\
3343The return value is a cons of coding systems for decoding and encoding\n\ 3353This function looks up what `coding-system-alist' specifies for\n\
3344registered in nested alist `coding-system-alist' (which see) at a slot\n\ 3354OPERATION and TARGET. It may specify a cons cell which represents\n\
3345corresponding to OPERATION and TARGET.\n\ 3355a particular coding system or it may have a function to call.\n\
3346If a function symbol is at the slot, return a result of the function call.\n\ 3356In the latter case, we call the function with one argument,\n\
3347The function is called with one argument, a list of all the arguments.") 3357which 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;