aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-01-14 09:56:10 +0000
committerKim F. Storm2003-01-14 09:56:10 +0000
commit34368d128fb26ccda139fd0aeaa9d1d78338bea1 (patch)
tree2788dc4f0f5a17985a75c37f55ad859497b89378
parentfaa7db081a33990da003b874789993fbe939c5bb (diff)
downloademacs-34368d128fb26ccda139fd0aeaa9d1d78338bea1.tar.gz
emacs-34368d128fb26ccda139fd0aeaa9d1d78338bea1.zip
(process-put, process-get): New functions.
-rw-r--r--lisp/subr.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index c0e0ea61ef3..b2842b27242 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1048,6 +1048,19 @@ or `set-process-query-on-exit-flag' instead."
1048 (set-process-query-on-exit-flag process nil) 1048 (set-process-query-on-exit-flag process nil)
1049 old)) 1049 old))
1050 1050
1051;; process plist management
1052
1053(defun process-get (process propname)
1054 "Return the value of PROCESS' PROPNAME property.
1055This is the last value stored with `(process-put PROCESS PROPNAME VALUE)'."
1056 (plist-get (process-plist process) propname))
1057
1058(defun process-put (process propname value)
1059 "Change PROCESS' PROPNAME property to VALUE.
1060It can be retrieved with `(process-get PROCESS PROPNAME)'."
1061 (set-process-plist process
1062 (plist-put (process-plist process) propname value)))
1063
1051 1064
1052;;;; Input and display facilities. 1065;;;; Input and display facilities.
1053 1066