diff options
| author | Kim F. Storm | 2003-01-14 09:56:10 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-01-14 09:56:10 +0000 |
| commit | 34368d128fb26ccda139fd0aeaa9d1d78338bea1 (patch) | |
| tree | 2788dc4f0f5a17985a75c37f55ad859497b89378 | |
| parent | faa7db081a33990da003b874789993fbe939c5bb (diff) | |
| download | emacs-34368d128fb26ccda139fd0aeaa9d1d78338bea1.tar.gz emacs-34368d128fb26ccda139fd0aeaa9d1d78338bea1.zip | |
(process-put, process-get): New functions.
| -rw-r--r-- | lisp/subr.el | 13 |
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. | ||
| 1055 | This 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. | ||
| 1060 | It 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 | ||