changeset 49225:50cb245b2072

(process-put, process-get): New functions.
author Kim F. Storm <storm@cua.dk>
date Tue, 14 Jan 2003 09:56:10 +0000
parents c0c09d77bace
children 98b5c90cebb6
files lisp/subr.el
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Tue Jan 14 09:55:50 2003 +0000
+++ b/lisp/subr.el	Tue Jan 14 09:56:10 2003 +0000
@@ -1048,6 +1048,19 @@
     (set-process-query-on-exit-flag process nil)
     old))
 
+;; process plist management
+
+(defun process-get (process propname)
+  "Return the value of PROCESS' PROPNAME property.
+This is the last value stored with `(process-put PROCESS PROPNAME VALUE)'."
+  (plist-get (process-plist process) propname))
+
+(defun process-put (process propname value)
+  "Change PROCESS' PROPNAME property to VALUE.
+It can be retrieved with `(process-get PROCESS PROPNAME)'."
+  (set-process-plist process 
+		     (plist-put (process-plist process) propname value)))
+
 
 ;;;; Input and display facilities.