GNU Emacs Lisp Reference Manual
You can make Emacs ring a bell (or blink the screen) to attract the user's attention. Be conservative about how often you do this; frequent bells can become irritating. Also be careful not to use beeping alone when signaling an error is appropriate. (See Errors.)
visible-bell below).
It also terminates any keyboard macro currently executing unless
dont-terminate is non-nil.
ding.
nil means yes, nil means no. This
is effective under X windows, and on a character-only terminal provided
the terminal's Termcap entry defines the visible bell capability
(vb).