GNU bug report logs -
#5711
23.1; Customizing the bell
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Fri, 12 Mar 2010 16:18:01 UTC
Severity: wishlist
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 5711 <at> debbugs.gnu.org (full text, mbox):
On Mar 12, Stefan Monnier wrote:
> > (setq ring-bell-function
> > (lambda ()
> > (if (foo)
> > (call-process "aplay" nil 0 nil "foo.wav")
> > (let ((visible-bell (bar))) (real-ding)))))
>
> Doesn't
>
> (setq ring-bell-function
> (lambda ()
> (if (foo)
> (call-process "aplay" nil 0 nil "foo.wav")
> (let ((visible-bell (bar)) (ring-bell-function nil)) (ding)))))
>
> do the trick?
Ah, you're right -- sorry. Fine to close this bug then. BTW, a
better answer would be:
(defun real-ding () (let ((ring-bell-function nil)) (ding)))
The only thing that might make sense is to show this in the docs as a
way to do this kind of thing (but I don't have any strong opinion
about that).
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
This bug report was last modified 15 years and 72 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.