unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jeff Clough <jeff@chaosphere.com>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp: `quit-process' and `sleep-for'
Date: Tue, 24 Aug 2010 14:02:14 -0400	[thread overview]
Message-ID: <m3wrrfris9.fsf@logrus.localdomain> (raw)
In-Reply-To: mailman.2.1282670669.15527.help-gnu-emacs@gnu.org

Memnon Anon <gegendosenfleisch@googlemail.com> writes:

> Hi,
>
> I am having trouble with this function: 
>
> (defun set_timer (rtcopt value)
> ; [...]
>
> (start-process "alarmclock-mp3" nil "/usr/bin/mplayer" "-quiet" music)
>
> (while (y-or-n-p "Snooze?")
>       (when (get-process "alarmclock-mp3")
>         (quit-process "alarmclock-mp3")
> ;        (debug)
>         (sleep-for 100000)
>         (sleep-for 5))
>       (start-process "alarmclock-mp3" nil "/usr/bin/mplayer" "-quiet" music))
> (kill-emacs))

As a point of comparison, does this work as intended if you use
delete-process instead of quit-process?

Jeff


       reply	other threads:[~2010-08-24 18:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2.1282670669.15527.help-gnu-emacs@gnu.org>
2010-08-24 18:02 ` Jeff Clough [this message]
2010-08-24 17:24 elisp: `quit-process' and `sleep-for' Memnon Anon

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=m3wrrfris9.fsf@logrus.localdomain \
    --to=jeff@chaosphere.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).