Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
365aee82
Commit
365aee82
authored
Jan 10, 2003
by
Kim F. Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fset_process_contact): New function.
(syms_of_process): defsubr it. (make-network-process): Update doc.
parent
b8a76c6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
src/process.c
src/process.c
+24
-1
No files found.
src/process.c
View file @
365aee82
...
...
@@ -146,7 +146,7 @@ extern Lisp_Object QCfamily;
extern Lisp_Object QCfilter;
/* a process object is a network connection when its childp field is neither
Qt nor Qnil but is instead a
cons cell (HOSTNAME PORTNUM
). */
Qt nor Qnil but is instead a
property list (KEY VAL ...
). */
#ifdef HAVE_SOCKETS
#define NETCONN_P(p) (GC_CONSP (XPROCESS (p)->childp))
...
...
@@ -1037,6 +1037,24 @@ See `make-network-process' for a list of keywords. */)
return Fplist_get (contact, key);
}
DEFUN ("set-process-contact", Fset_process_contact, Sset_process_contact,
3, 3, 0,
doc: /* Change value in PROCESS' contact information list of KEY to VAL.
If KEY is already a property on the list, its value is set to VAL,
otherwise the new KEY VAL pair is added. Returns VAL. */)
(process, key, val)
register Lisp_Object process, key, val;
{
Lisp_Object contact;
CHECK_PROCESS (process);
if (NETCONN_P (process))
XPROCESS (process)->childp = Fplist_put (XPROCESS (process)->childp, key, val);
return val;
}
#if 0 /* Turned off because we don't currently record this info
in the process. Perhaps add it. */
DEFUN ("process-connection", Fprocess_connection, Sprocess_connection, 1, 1, 0,
...
...
@@ -2589,6 +2607,10 @@ the server process. Also, the BUFFER argument is not used directly by
the server process, but via the optional :log function, accepted (and
failed) connections may be logged in the server process' buffer.
The original argument list, modified with the actual connection
information, is available via the `process-contact' function.
Additional arguments may be added via `set-process-contact'.
usage: (make-network-process &rest ARGS) */)
(nargs, args)
int nargs;
...
...
@@ -6341,6 +6363,7 @@ The value takes effect when `start-process' is called. */);
defsubr (&Sset_process_query_on_exit_flag);
defsubr (&Sprocess_query_on_exit_flag);
defsubr (&Sprocess_contact);
defsubr (&Sset_process_contact);
defsubr (&Slist_processes);
defsubr (&Sprocess_list);
defsubr (&Sstart_process);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment