From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#1305: All code that currently beeps should use visual bell instead Date: Sun, 18 Apr 2021 18:26:10 +0300 Message-ID: References: <009901c9421f$5bd0a6b0$0200a8c0@us.oracle.com> <00ad01c942a0$1f49ca60$0200a8c0@us.oracle.com> <87eef9qg81.fsf@gnus.org> <1869622e162377be79e9@heytings.org> <83bladw0dh.fsf@gnu.org> <87a6pxqdeg.fsf@gnus.org> <875z0lqcj4.fsf@gnus.org> <1869622e1602a39e56a6@heytings.org> <87a6pwvcrv.fsf@md5i.com> <1869622e165c625e097b@heytings.org> <874kg4vast.fsf@md5i.com> <1869622e166ad3c37a69@heytings.org> <87k0ozq3n8.fsf@gnus.org> <87blabpy54.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28613"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cc: Michael Welsh Duggan , Gregory Heytings , 1305@debbugs.gnu.org, jasonspiro4@gmail.com, monnier@iro.umontreal.ca To: Lars Ingebrigtsen , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 18 17:27:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lY9KW-0007J5-7F for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 17:27:24 +0200 Original-Received: from localhost ([::1]:40590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY9KT-0007Is-6q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 11:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lY9KA-0007Ii-Km for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 11:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lY9KA-000529-DU for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lY9KA-0003Yk-AF for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 11:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1305 X-GNU-PR-Package: emacs Original-Received: via spool by 1305-submit@debbugs.gnu.org id=B1305.161875958013631 (code B ref 1305); Sun, 18 Apr 2021 15:27:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 18 Apr 2021 15:26:20 +0000 Original-Received: from localhost ([127.0.0.1]:47453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY9JT-0003Xn-Ni for submit@debbugs.gnu.org; Sun, 18 Apr 2021 11:26:19 -0400 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:33765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY9JS-0003XZ-Fj for 1305@debbugs.gnu.org; Sun, 18 Apr 2021 11:26:18 -0400 Original-Received: by mail-wr1-f49.google.com with SMTP id g9so15379397wrx.0 for <1305@debbugs.gnu.org>; Sun, 18 Apr 2021 08:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ICxAfv03lo1v0F2i0pcVjkisyPCE26a/A27tyXzUdZw=; b=qBGCatgSZM3Rs81wgztnwLuYY4MqWPNyTBhnpW7z8FUhnq9kf/7Xpey5ORM6/1o36C PKwdz1foAhAUsmB3VgVh4jwLYC5F1hT48H4ODBHWSugltrbYCMjoEHUmIM1RIzXm9KqU n9qDgPzkmt3eMDo+Jaf3KJChAGSAFNadLcwGsTbLCT9UBdAyfSNH18MIcEkfw3AHMFhx zWiuJ/dC63TPkYGyySQUeTpwCeOhPv1OYQruxNvxzYcbbE+Bw2dET5nakaaeU5+mw9AI tNDARwu+FTzQD7a+VgoPW6U9EKiau9Nxm8v6zuu4JrbfaQ8USk9gUQtoFw+4WXdU0Jzj wnNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ICxAfv03lo1v0F2i0pcVjkisyPCE26a/A27tyXzUdZw=; b=nszqMqvnxENru5cgmwdtdMoHb8xXSuP/EPAifyJkRSIx3IfCC8IZeJISrbOuXg/YQf YsQ7LK6hRtMQku0Pmvi4zGqSzMT0l8uXTbv3k0zwQJZ5GgmTFZuXIh2pU/LiF92HCo32 8R2hHDZMRZtNEdf75IBeyyLT6S13nimBTdwys/d1lqxXv3piCnBur+wlGk0/B/lIXxRG kOPgSTQJaNfIm+qhV6EGZYLUe8zZOjWsUpXTAaxku8cmSA2x19ukhbu34XgwAnZjZXsO RS8YQvv4d1PGe0BSB8dvMEEQh/itwOieHs2Lmp1lV/Bk/7QBINAW+YFkiASeghkXbB0m qC0Q== X-Gm-Message-State: AOAM533jeY830t65jxpPWTEEyjFhEOEA/aeH87zzuEeOPx2iLm19Ytl1 CKV/h36ELdInnIsSet/l0p0= X-Google-Smtp-Source: ABdhPJwZGER9KHE7NU4h9RJrLTxZW5sss0zW+PjKLz1f5+kYuaRXWlK1PARdMJDfoqa/vxD5ihrdWg== X-Received: by 2002:adf:f5cc:: with SMTP id k12mr9524297wrp.117.1618759572735; Sun, 18 Apr 2021 08:26:12 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s13sm19073199wrv.80.2021.04.18.08.26.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Apr 2021 08:26:12 -0700 (PDT) In-Reply-To: <87blabpy54.fsf@gnus.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204350 Archived-At: 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))))