From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: passing data to process sentinel Date: Mon, 18 Sep 2006 14:42:10 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <450a8bcc$0$19463$8404b019@news.wineasy.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1158586872 32052 80.91.229.2 (18 Sep 2006 13:41:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2006 13:41:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 18 15:41:09 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GPJMN-0003he-6l for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2006 15:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPJMM-00082B-RR for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2006 09:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: gamma02.me.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1158583330 28934 129.16.50.72 (18 Sep 2006 12:42:10 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Mon, 18 Sep 2006 12:42:10 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:eQPOY9oTkHrk5TrGJoKtCfkbKkc= Original-Xref: shelby.stanford.edu gnu.emacs.help:141835 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37457 Gordon Beaton writes: > I'd like to be able to pass the name of the temporary file to a > process sentinel so it can be cleaned up after tkdiff exits, for > example by attaching the filename to the process object itself where > it can be retrieved in the sentinel. To me this seems more elegant > than storing the filename elsewhere and looking it up. For the record, Emacs 22 has that feature: *** Processes now have an associated property list where programs can maintain process state and other per-process related information. Use the new functions `process-get' and `process-put' to access, add, and modify elements on this property list. Use the new functions `process-plist' and `set-process-plist' to access and replace the entire property list of a process. -- Johan Bockgård