all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* another question about controlling the d..n beep!
@ 2010-04-05  2:04 aspirinjunky
  2010-04-05 13:00 ` Colin S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: aspirinjunky @ 2010-04-05  2:04 UTC (permalink / raw)
  To: help-gnu-emacs

hi,

sorry if this topic has been beaten to death. I've searched and
searched, but haven't found anything helpful, so I thought I'd ask the
experts for the final word:

Is there a way to fine tune the conditions that cause emacs to beep?
I'd like to kill the sounds for trivial errors (like during searching
and deleting) without actually disabling the bell (with visible-bell),
because there are certain times when I'd like the bell to actually
ring (for instance, when my alarm clock goes off.)

any advice would REALLY be appreciated (potentially marriage saving.)
my wife hates the incessant beeping while I'm editing when she tries
to nap, but I use the alarm clock to remember when to wake her up!

thanks in advance,

d...


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: another question about controlling the d..n beep!
  2010-04-05  2:04 another question about controlling the d..n beep! aspirinjunky
@ 2010-04-05 13:00 ` Colin S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: Colin S. Miller @ 2010-04-05 13:00 UTC (permalink / raw)
  To: help-gnu-emacs

aspirinjunky wrote:
> hi,
> 
<snip!>
> Is there a way to fine tune the conditions that cause emacs to beep?
> I'd like to kill the sounds for trivial errors (like during searching
> and deleting) without actually disabling the bell (with visible-bell),
> because there are certain times when I'd like the bell to actually
> ring (for instance, when my alarm clock goes off.)
 >
<snip!>
> thanks in advance,
> 
> d...

D,
As an off-the-wall suggestion, you could try putting a defadvice on (beep)
[ or (ding) ].

The defadvice would call (split-string (with-output-to-string (backtrace)) '"\012")
This gives a list of strings, each element of which is a function in the
caller backtrace that caused the beep. With a little scripting,
it should be possible to determine whether you want a enable visual
or audible bell for this invocation.

HTH,
Colin S. Miller

-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-05 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-05  2:04 another question about controlling the d..n beep! aspirinjunky
2010-04-05 13:00 ` Colin S. Miller

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.