From: Eli Barzilay <eli@barzilay.org>
To: 5711@debbugs.gnu.org
Subject: bug#5711: 23.1; Customizing the bell
Date: Fri, 12 Mar 2010 10:54:49 -0500 [thread overview]
Message-ID: <E1Nq7CL-0004fD-7X@barzilay.org> (raw)
I'd like for my Emacs to sometimes ring the bell as usual, sometimes
flash the screen, and sometimes play a sound. Currently, I can change
it to do one of these things in the usual way, but I cannot write code
that determines what to do dynamically. What's missing is a primitive
function to the "real" beep. Something that would allow me to do
this:
(setq ring-bell-function
(lambda ()
(if (foo)
(call-process "aplay" nil 0 nil "foo.wav")
(let ((visible-bell (bar))) (real-ding)))))
(I could do this in a bad way, by installing some hook that will set
`ring-bell-function' and `visible-bell' -- for example in an idle
timer, but the above would be much more convenient.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next reply other threads:[~2010-03-12 15:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 15:54 Eli Barzilay [this message]
2010-03-12 17:14 ` bug#5711: 23.1; Customizing the bell Drew Adams
2010-03-12 18:05 ` Stefan Monnier
2010-03-12 19:20 ` Eli Barzilay
2010-03-15 19:39 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Nq7CL-0004fD-7X@barzilay.org \
--to=eli@barzilay.org \
--cc=5711@debbugs.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.