From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1305: All code that currently beeps should use visual bell instead Date: Wed, 21 Apr 2021 10:33:35 -0400 Message-ID: References: <87blabpy54.fsf@gnus.org> <87lf9eo3mq.fsf@gnus.org> <0d7924a2-d09f-e2d0-f0e7-6b5ee3a7a7f2@yandex.ru> <192e82f20f5deb690394@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Third , 1305@debbugs.gnu.org, Michael Welsh Duggan , jasonspiro4@gmail.com, Gregory Heytings , Dmitry Gutov , Lars Ingebrigtsen To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 21 16:34:10 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 1lZDve-0002wF-7q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 16:34:10 +0200 Original-Received: from localhost ([::1]:60962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZDvd-0004L3-B2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 10:34:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZDvW-0004Kd-Ah for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 10:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZDvW-0001Q0-21 for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 10:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZDvV-00033R-VA for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 10:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Apr 2021 14:34:01 +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.161901563111724 (code B ref 1305); Wed, 21 Apr 2021 14:34:01 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 21 Apr 2021 14:33:51 +0000 Original-Received: from localhost ([127.0.0.1]:59358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZDvL-000332-J2 for submit@debbugs.gnu.org; Wed, 21 Apr 2021 10:33:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZDvJ-00032n-99 for 1305@debbugs.gnu.org; Wed, 21 Apr 2021 10:33:50 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BBCA4440C5C; Wed, 21 Apr 2021 10:33:43 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 363C3440C29; Wed, 21 Apr 2021 10:33:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619015622; bh=q4GQ51r20viJCh7I0kXBa/BSACKMWt04KYT2s8PufVE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AGU95xNWnDmJzzacGQY6lhpbVuNuEo47RwG5SF+dU9pOyh3OcDPOd/t0y14zW1/Pd DwP71xWUWib6BBzzJNoC8A9UmzJyosZT7d7FlkcY1lpruPBPb4tNkhQ10x3T1srNSm wPSoxB8C1Q5Tg0sHf2obgwXBG8mmompI9m0on1KkWS4pxbFgpqPZ/6c4KX8U2yqwJU dPpdwi1o3PF7o7YnPscQC/5+/8/rA+A3Hfui++EaC/93AYsa16IGQcHQZPha45MtBK bG3SYK9afxyqS0gc0uJPF83d7fjbL7ld9QIaNRonedP0wt8sPZZIMXkiUO31Bquy09 nlNtqpRGYVoUg== Original-Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C6D69120264; Wed, 21 Apr 2021 10:33:41 -0400 (EDT) In-Reply-To: (Stefan Kangas's message of "Wed, 21 Apr 2021 08:11:04 -0500") 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:204619 Archived-At: >> Yes, it's perhaps a bit unfortunate that "visible-bell" is nil in this >> case, but note that with visible-bell t and ring-bell-function ignore you >> also do not have what you could expect. The semantics of visible-bell and >> ring-bell-function are a bit unclear, but they cannot be fixed anymore >> without introducing backward incompatible changes. > > I think this is a bit of a mess, indeed. > > I would be in favour of fixing this by adding one or more new variables > with reasonable semantics. For example, why not have a variable called > `alarm-bell' with these valid values: > > - a function call this function > - `visual' Use a visual bell > - t Ring the bell > - nil Do nothing Agreed, except I suggest to use slightly different names: `visual` becomes `ring-bell-visual`, `t` becomes `ring-bell-beep`, `nil` becomes `ignore` and `alarm-bell` becomes `ring-bell-function`. Stefan