From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#1305: All code that currently beeps should use visual bell instead Date: Fri, 30 Apr 2021 07:13:23 +0000 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; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2978"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third , 1305@debbugs.gnu.org, Michael Welsh Duggan , Stefan Kangas , jasonspiro4@gmail.com, Dmitry Gutov , Lars Ingebrigtsen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 09:19:09 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 1lcNQa-0000ZG-FO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 09:19:08 +0200 Original-Received: from localhost ([::1]:49410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcNQZ-0007Qw-FS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 03:19:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcNLe-00017C-LB for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 03:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcNLe-0000q1-BQ for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 03:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcNLe-0003Yy-6A for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2021 03:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Apr 2021 07: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.161976680613645 (code B ref 1305); Fri, 30 Apr 2021 07:14:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 30 Apr 2021 07:13:26 +0000 Original-Received: from localhost ([127.0.0.1]:57364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcNL4-0003Y1-M7 for submit@debbugs.gnu.org; Fri, 30 Apr 2021 03:13:26 -0400 Original-Received: from heytings.org ([95.142.160.155]:59058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcNL2-0003Xt-Kd for 1305@debbugs.gnu.org; Fri, 30 Apr 2021 03:13:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1619766804; bh=ozTw7LOF2YyNOwvpaA8O4DnyRLtoUnPo3OgHZD7fKHY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=gIXw3bbpiZZA56J5Bm/Q3pM4WUhS/gJ6MHsuDlShkw50e/7gU9jCEZApZlMlHsu6K K5+pBpiGv4GmkpyfqxdBv+p8LtkT8rQZrFqmeEbAJpvcfX+pgE2fD1KskEaNCnfM9m DjYzpYXKQm0gif2PM1LnHgW9nT6NIuqxnSWM/F0bazFzoDol1U42VwEHMn6xIFsxqV QwYc0GkKTU/03E8oaGB7oeZ+OuPJEQiXK/ineKy1RWmtMfT/6ac1cdpt4nfmeGazsl XuX5+zspiagrgwMWmzrHbpuJuJRHvlHiNcXSikk6oWDaWPdas9lRpKKoLqzrzk2Tmy Rga6RfGRfpARA== In-Reply-To: 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:205226 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). > Indeed. You may have seen that this is what my patch does, except that instead of hard-coding the error levels, it lets each user decide which errors they want to see with a flashing effect and which errors they want to see without flashing effect.