Subject: Re: bug#1305: All code that currently beeps should use visual bell instead

From: Stefan Kangas <[email-masked]>
Date: Sun, 18 Apr 2021 11:27:23 -0500

Dmitry Gutov <[email-masked]> writes:

> Doom:
>
>    (setq ring-bell-function #'doom-themes-visual-bell-fn
>          visible-bell t)
>
>    (defface doom-visual-bell '((t (:inherit error)))
>      "Face to use for the mode-line when `doom-themes-visual-bell-config'
>    is used."
>      :group 'doom-themes)
>
>    ;;;###autoload
>    (defun doom-themes-visual-bell-fn ()
>      "Blink the mode-line red briefly. Set `ring-bell-function' to this
>    to use it."

The docstring isn't clear what "blinking" means, but they briefly set
the *foreground* color to red (or whatever color `error' is configured
to be).

I think it's a neat idea.  It would be interesting to know how well it
works with third-party mode line (e.g. "powerline") packages.