From: Gordon Beaton <n.o.t@for.email>
Subject: Re: passing data to process sentinel
Date: 16 Sep 2006 07:37:02 GMT [thread overview]
Message-ID: <450ba99e$0$19430$8404b019@news.wineasy.se> (raw)
In-Reply-To: mailman.6985.1158339733.9609.help-gnu-emacs@gnu.org
On Fri, 15 Sep 2006 11:01:15 -0600, Kevin Rodgers wrote:
> Backquote is your friend:
>
> (set-process-sentinel
> (start-process "tkdiff" nil "tkdiff" (buffer-file-name) temp-file)
> `(lambda (process event)
> (if (file-exists-p ,temp-file) (delete-file ,temp-file))))
Thank you! I had tried backquoting but it was the commas I didn't
think about.
I also realized after posting that I could get the file name from
(process-command process) in the sentinel, but I was more interested
in a solution like the above that works in the general case, where the
information isn't on the command line.
/gordon
--
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
next prev parent reply other threads:[~2006-09-16 7:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-15 11:17 passing data to process sentinel Gordon Beaton
2006-09-15 17:01 ` Kevin Rodgers
[not found] ` <mailman.6985.1158339733.9609.help-gnu-emacs@gnu.org>
2006-09-16 7:37 ` Gordon Beaton [this message]
2006-09-18 12:42 ` Johan Bockgård
2006-09-18 13:45 ` Gordon Beaton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='450ba99e$0$19430$8404b019@news.wineasy.se' \
--to=n.o.t@for.email \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).