GNU bug report logs - #1305
All code that currently beeps should use visual bell instead

Previous Next

Package: emacs;

Reported by: "Jason Spiro" <jasonspiro4 <at> gmail.com>

Date: Tue, 4 Nov 2008 23:00:03 UTC

Severity: wishlist

Merged with 53196

Found in version 28.0.90

Full log


Message #520 received at 1305 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Stefan Kangas <stefan <at> marxist.se>
Cc: Michael Welsh Duggan <mwd <at> md5i.com>,
 Gregory Heytings <gregory <at> heytings.org>, 1305 <at> debbugs.gnu.org,
 jasonspiro4 <at> gmail.com, monnier <at> iro.umontreal.ca
Subject: Re: bug#1305: All code that currently beeps should use visual bell
 instead
Date: Sun, 18 Apr 2021 18:26:10 +0300
On 18.04.2021 15:36, Lars Ingebrigtsen wrote:
> So you could say that there's some precedence for using
> just the echo area as the only notification mechanism (beyond apparently
> all the popular Emacs distributions doing exactly that).

Not really all of them. Here's what the distributions do:

Prelude and Spacemacs:

  (setq ring-bell-function 'ignore)

better-defaults:

  (setq visible-bell t)

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."
    (let ((doom-themes--bell-cookie (face-remap-add-relative 'mode-line 
'doom-visual-bell)))
      (force-mode-line-update)
      (run-with-timer 0.15 nil
                      (lambda (cookie buf)
                        (with-current-buffer buf
                          (face-remap-remove-relative cookie)
                          (force-mode-line-update)))
                      doom-themes--bell-cookie
                      (current-buffer))))




This bug report was last modified 3 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.