From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#1305: All code that currently beeps should use visual bell instead Date: Sun, 25 Apr 2021 20:12:58 +0200 Message-ID: <87zgxmjkr9.fsf@gnus.org> 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="31627"; 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 , Stefan Kangas , Gregory Heytings , jasonspiro4@gmail.com, Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 25 20:15:08 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 1lajHf-00089B-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 20:15:07 +0200 Original-Received: from localhost ([::1]:34784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lajHa-0007cy-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 14:15:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lajGc-0007bx-TE for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 14:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lajGc-000646-LA for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 14:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lajGc-0003Pr-GF for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 14:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Apr 2021 18:14: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.161937440913083 (code B ref 1305); Sun, 25 Apr 2021 18:14:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 25 Apr 2021 18:13:29 +0000 Original-Received: from localhost ([127.0.0.1]:43715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lajFq-0003Oi-Rn for submit@debbugs.gnu.org; Sun, 25 Apr 2021 14:13:29 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lajFo-0003OU-WD for 1305@debbugs.gnu.org; Sun, 25 Apr 2021 14:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7szLUdjLS1d32+DM6pi+Prphau38Qc5TAyVv90EF/uE=; b=Qjic9LVJx06hAUE39RA+U7K64U 9HytlaMIyA4ps7TU7nmCGK18bixZXcdgtK4VEIZhY5C8s6qTkuYykFU4kLwsidh+92A6D7YsZ64G7 dh7MuLUShPOnrHFdtb230F3k2H8jYjqOqvScItzPqqirG3m/uY+YfoVLB0bqWe7XARdQ=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lajFb-0000lq-LY; Sun, 25 Apr 2021 20:13:03 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX5+Prb1duro5+U bVBTOi////93TpsyAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UEGRE6G+DkQJYAAAGXSURBVDjLfZTh gYMgDIUT6AAJdgChHQCEAc7C/jNdAOlJz7v8QM3nywsIAgDBddhlvczjitdA/VVJ+epCyAgIbKWA XFskAgveGEVahYfZNJjDZIf/QjFaAvcbxOhiUPFEcACJFIt7N3m0m0pJMQvcBsF2h6nk1FTxLcEG pE6Jpcg41kH7Oi6xCBCSShiCLxnMs0ipKinlPS1XHcS7yCCVSqbD5SaCmpBCWdIV9CmoVcVaJDdN TtmOvnbVX+4iaetQgNe1m1xtWlt2gKBTqdkRAfkA+JOuFQMfYAdzFpTXocCA6pwveSiQcFJIrT4P y7NiAAesZ7A2gB4+FTsf+4rpeQVWYJ7NX1xXS1fw+OiXhkJdKKo5LxPYertBwP1cyHFTwEIzkKXq ACyzOQnksYNqzj23Sds13813kfaJvGiJGw8AHlu7+dlfngGnzCbzBTCR2X4A+cRIxFN0QLAaBcgr WGOconHAZbd7s8iH9GAdkgZ9BWS1Z3CTVf4Cez8DOQ/7osLiI2862NsARo6W/CYck2wXeLz/GN+7 NXyuvfdRQwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNC0yNVQxNzo1ODoyNyswMDowMFnHcGoA AAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDQtMjVUMTc6NTg6MjcrMDA6MDAomsjWAAAAAElFTkSu QmCC X-Now-Playing: Susumu Yokota's _Cloud Hidden_: "Ama and the Mountain" In-Reply-To: (Stefan Monnier's message of "Wed, 21 Apr 2021 10:33:35 -0400") 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:204898 Archived-At: Stefan Monnier writes: >> 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`. So just use function names instead of symbols? I think, in general, it's nice to have things like nil/t in variables like this -- it's easier for users to deal with. Anyway, I agree that cleaning up this area by introducing a new variable and obsoleting the slightly confusing current state of affairs would be nice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no