summaryrefslogtreecommitdiff
path: root/devdocs/elisp/process-internals.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/process-internals.html
new repository
Diffstat (limited to 'devdocs/elisp/process-internals.html')
-rw-r--r--devdocs/elisp/process-internals.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/devdocs/elisp/process-internals.html b/devdocs/elisp/process-internals.html
new file mode 100644
index 00000000..9834af4b
--- /dev/null
+++ b/devdocs/elisp/process-internals.html
@@ -0,0 +1,29 @@
+ <h4 class="subsection"> Process Internals</h4> <p>The fields of a process (for a complete list, see the definition of <code>struct Lisp_Process</code> in <samp>process.h</samp>) include: </p> <dl compact> <dt><code>name</code></dt> <dd>
+<p>A Lisp string, the name of the process. </p> </dd> <dt><code>command</code></dt> <dd>
+<p>A list containing the command arguments that were used to start this process. For a network or serial process, it is <code>nil</code> if the process is running or <code>t</code> if the process is stopped. </p> </dd> <dt><code>filter</code></dt> <dd>
+<p>A Lisp function used to accept output from the process. </p> </dd> <dt><code>sentinel</code></dt> <dd>
+<p>A Lisp function called whenever the state of the process changes. </p> </dd> <dt><code>buffer</code></dt> <dd>
+<p>The associated buffer of the process. </p> </dd> <dt><code>pid</code></dt> <dd>
+<p>An integer, the operating system’s process <acronym>ID</acronym>. Pseudo-processes such as network or serial connections use a value of 0. </p> </dd> <dt><code>childp</code></dt> <dd>
+<p>A flag, <code>t</code> if this is really a child process. For a network or serial connection, it is a plist based on the arguments to <code>make-network-process</code> or <code>make-serial-process</code>. </p> </dd> <dt><code>mark</code></dt> <dd>
+<p>A marker indicating the position of the end of the last output from this process inserted into the buffer. This is often but not always the end of the buffer. </p> </dd> <dt><code>kill_without_query</code></dt> <dd>
+<p>If this is non-zero, killing Emacs while this process is still running does not ask for confirmation about killing the process. </p> </dd> <dt><code>raw_status</code></dt> <dd>
+<p>The raw process status, as returned by the <code>wait</code> system call. </p> </dd> <dt><code>status</code></dt> <dd>
+<p>The process status, as <code>process-status</code> should return it. This is a Lisp symbol, a cons cell, or a list. </p> </dd> <dt><code>tick</code></dt> <dt><code>update_tick</code></dt> <dd>
+<p>If these two fields are not equal, a change in the status of the process needs to be reported, either by running the sentinel or by inserting a message in the process buffer. </p> </dd> <dt><code>pty_flag</code></dt> <dd>
+<p>Non-zero if communication with the subprocess uses a pty; zero if it uses a pipe. </p> </dd> <dt><code>infd</code></dt> <dd>
+<p>The file descriptor for input from the process. </p> </dd> <dt><code>outfd</code></dt> <dd>
+<p>The file descriptor for output to the process. </p> </dd> <dt><code>tty_name</code></dt> <dd>
+<p>The name of the terminal that the subprocess is using, or <code>nil</code> if it is using pipes. </p> </dd> <dt><code>decode_coding_system</code></dt> <dd>
+<p>Coding-system for decoding the input from this process. </p> </dd> <dt><code>decoding_buf</code></dt> <dd>
+<p>A working buffer for decoding. </p> </dd> <dt><code>decoding_carryover</code></dt> <dd>
+<p>Size of carryover in decoding. </p> </dd> <dt><code>encode_coding_system</code></dt> <dd>
+<p>Coding-system for encoding the output to this process. </p> </dd> <dt><code>encoding_buf</code></dt> <dd>
+<p>A working buffer for encoding. </p> </dd> <dt><code>inherit_coding_system_flag</code></dt> <dd>
+<p>Flag to set <code>coding-system</code> of the process buffer from the coding system used to decode process output. </p> </dd> <dt><code>type</code></dt> <dd>
+<p>Symbol indicating the type of process: <code>real</code>, <code>network</code>, <code>serial</code>. </p> </dd> </dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Process-Internals.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Process-Internals.html</a>
+ </p>
+</div>