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: Thu, 29 Apr 2021 19:36:01 -0400 Message-ID: References: <87blabpy54.fsf@gnus.org> <0d7924a2-d09f-e2d0-f0e7-6b5ee3a7a7f2@yandex.ru> <192e82f20f5deb690394@heytings.org> <87zgxmjkr9.fsf@gnus.org> <874kfs3585.fsf@gnus.org> <87v987z53l.fsf@gnus.org> <8fba78a42ee78011f182@heytings.org> <80b9aa43-9924-ae07-df60-87dde8c17378@yandex.ru> <8fba78a42eb8bd480d61@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="34553"; 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 , jasonspiro4@gmail.com, Dmitry Gutov , Lars Ingebrigtsen To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 01:37:41 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 1lcGE1-0008sS-2D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 01:37:41 +0200 Original-Received: from localhost ([::1]:44026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcGE0-00039E-5Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 19:37:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcGDO-0002g2-E8 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcGDO-0001xf-4I for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcGDO-0007Pn-17 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Apr 2021 23:37: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.161973938028448 (code B ref 1305); Thu, 29 Apr 2021 23:37:01 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 29 Apr 2021 23:36:20 +0000 Original-Received: from localhost ([127.0.0.1]:57082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcGCi-0007Oj-0u for submit@debbugs.gnu.org; Thu, 29 Apr 2021 19:36:20 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcGCe-0007OT-ST for 1305@debbugs.gnu.org; Thu, 29 Apr 2021 19:36:19 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6395D10020E; Thu, 29 Apr 2021 19:36:11 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2B0531000C4; Thu, 29 Apr 2021 19:36:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619739369; bh=Dmwi+/owcq10rCWDGmW8/VbVE7TjvSRo0NayCaACjoU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=E04b4GHkWgbJVDOZOiI7+axO5bVHetFO78OQ5bIasrZIoJEnTWdP3RjvLRKwiFraa DkLtjV/5T9mYsGweyQSCPw0haBU+lbngk5mDS5+0POAE4xvklwCX3ZoIpU1foWTeFF lelSXlzGFwio4j0AIBzNPpbXjMrsPhwUOuKgYs7T+00fE0Fgbs3JzzLcmREz8fe6v1 wZL2oFqPHKlOXhDyuo6Et3su1m2DKc1MDv4956abHfR5aP241Dj5w1soRwDWXXU/4j KMbn0rcfmQRWch9hl2k7aN8VTaJbpPDH+Gj/iF3wOcEypvRRlCghUKm6P0zHUCogI4 NSTzJ7ZV82w0A== Original-Received: from alfajor (unknown [108.161.125.61]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BD51D120294; Thu, 29 Apr 2021 19:36:08 -0400 (EDT) In-Reply-To: <8fba78a42eb8bd480d61@heytings.org> (Gregory Heytings's message of "Thu, 29 Apr 2021 21:46:26 +0000") 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:205216 Archived-At: > AFAICS in other editors error signals are far less frequent (e.g. they do > nothing when you try to move past the beginning or end of the buffer, or > when you press a key binding with no corresponding action, or when you > enter characters in a read-only file, ...), they only signal "critical" > errors. So I'm not sure it's possible to get inspired by what they > do. What they use are typically popups; I attach two examples with Visual > Studio and Atom, one when a non-readable file is opened, another when > a non-writable file is saved. This suggests we may want to introduce "levels" of beeping. We generally follow the convention that a command should do *something* so if the command cannot do what the user asked because it is "obviously" non-sensical (e.g. try to move before the beginning or past the end of the buffer, type a key that's not bound, ...) we'd emit a "low-priority" beep, whereas in case of an actual error we'd emit a higher priority beep. We probably don't need many levels, (e.g. just 2, at most 3 might be enough). Not sure it's worth the trouble, since it could require a fair bit of changes in a lot of code. But it would let users configure their Emacs to be similarly "discrete" as the editors you describe. Stefan