unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mathias Dahl <mathias.dahl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Inhibit more keyboard event during execution of function
Date: Tue, 29 Dec 2009 14:38:27 -0800 (PST)	[thread overview]
Message-ID: <26d902ac-7764-4e7c-bad6-2ded1f76db49@j24g2000yqa.googlegroups.com> (raw)
In-Reply-To: slrnhjkvle.q8p.nospam-abuse@powdermilk.math.berkeley.edu

> If you sound is played syncroneously, just introduce a global
> variable, set it on during sound play, and do sound play conditionally
> - only if the variable is not set.

The problem is not that the same sound is played at the same time, the
problem is that during the play the system accepts more keyboard
events and adds them to the queue, later playing sound when the key
binding is executed. If I use a global variable it will work in the
sense that no other/new sound will be played during play, but when the
playing is done and I set the global variable to false again the next
keyboard event will fire. Right?


  reply	other threads:[~2009-12-29 22:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-28 21:49 Inhibit more keyboard event during execution of function Mathias Dahl
2009-12-29  6:51 ` Kevin Rodgers
     [not found] ` <mailman.367.1262069524.18930.help-gnu-emacs@gnu.org>
2009-12-29 20:03   ` Mathias Dahl
2009-12-29 20:53     ` Lennart Borgman
     [not found]     ` <mailman.388.1262120023.18930.help-gnu-emacs@gnu.org>
2009-12-29 22:40       ` Mathias Dahl
2009-12-29 23:52         ` Lennart Borgman
2009-12-29 22:11 ` Ilya Zakharevich
2009-12-29 22:38   ` Mathias Dahl [this message]
2009-12-29 22:56 ` Mathias Dahl
2009-12-29 23:00   ` Mathias Dahl
2009-12-30  9:52     ` Andreas Politz
     [not found]     ` <mailman.421.1262166805.18930.help-gnu-emacs@gnu.org>
2009-12-31  7:51       ` Mathias Dahl

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=26d902ac-7764-4e7c-bad6-2ded1f76db49@j24g2000yqa.googlegroups.com \
    --to=mathias.dahl@gmail.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).