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: Fri, 30 Apr 2021 02:23:54 +0300 Message-ID: <3a17b49f-2a5c-42b6-4375-7544b67fd471@yandex.ru> 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=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23444"; 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: Alan Third , 1305@debbugs.gnu.org, Michael Welsh Duggan , Stefan Kangas , jasonspiro4@gmail.com, Stefan Monnier , 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:25:19 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 1lcG22-00060h-KB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 01:25:18 +0200 Original-Received: from localhost ([::1]:37660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcG21-0008RA-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 19:25:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcG1m-0008R3-Kc for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcG1m-0003JH-Cj for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lcG1m-000788-9d for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 19:25: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: Thu, 29 Apr 2021 23:25: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.161973864427336 (code B ref 1305); Thu, 29 Apr 2021 23:25:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 29 Apr 2021 23:24:04 +0000 Original-Received: from localhost ([127.0.0.1]:57072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcG0q-00076q-IT for submit@debbugs.gnu.org; Thu, 29 Apr 2021 19:24:04 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:47047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcG0o-00076M-TP for 1305@debbugs.gnu.org; Thu, 29 Apr 2021 19:24:03 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id x5so18262522wrv.13 for <1305@debbugs.gnu.org>; Thu, 29 Apr 2021 16:24:02 -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=NJKytifgGfbKI8+CIfp+/lKmh006wd+0Kq4RRhv81x4=; b=eI9D6ef3TXphMVsqQxKRRSgaRStY5r7IxhVa84yYfxeOSv4pKg65bFm3RsVXKfXiUn eRNO2HM11AoZTwWVJayJv87o14mdMSdefMHesH/EH7LY3NuhjwZx75T0FJNerF8HNMcg 0F2OAlFNQ9M0vtOvxVEkNkeZBLaV6jkKh79xdeqD264ZgGQXzFz+5MfQ7QSx6ZdgC24Y utPNzB0GCbnJlgGZlLfeTqooOit5/Ht4yjkmmjXsNAYPzRgiV+ekBCIIk8bs5BYOBzka PX4omAVINHYBAV2+N9WhAMVlBh+dUjLahf2AZgpuodUGIslik02wX7LumOZSWYEVhQC6 Qveg== 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=NJKytifgGfbKI8+CIfp+/lKmh006wd+0Kq4RRhv81x4=; b=KBDAA9YaWjtPZkO/ixaWvr/FN/Agh4ZiJtKN+padzv1jfkXU9eTEY75szVUT11QOP2 LAVU7BQ92EL4G7kK75AOmr9P1H4Hbw7JXz9bBN+hju7l5ven/3cA04dmBi2Q69TRVh/s 9e7g4oIsOVgvUxLvxxO9VGTwyyzgLlA4okynawshKxw5+zQYtm/7o8jgY02CrGcpBkgu E1zFvACkjQ3W8hhE4SvBzkjcIgH/j8SlTseC6DRbcCm2P8PnYitUWCIBD7iN05dEfivv nRj0OxPZws9Nro9XtIn7ttSjLFTBpssvg+/JE5tjWKpG9nkgIOcFG6KESUx6P/TXX3I6 aeUQ== X-Gm-Message-State: AOAM533VNefECMC+H0gF6K930khsNZeu7/5nu09mCKpqtNDLI22eZryf lbjGhl4k6LwhnsnhMKiLjRM= X-Google-Smtp-Source: ABdhPJy9G9YSVgnpQvWfPtkp1NEX2EkAEJjIj7oDIg6GYJtjW9TVC6iXL3hKCJ8HCXCLAIGDyGFYVg== X-Received: by 2002:adf:f805:: with SMTP id s5mr265443wrp.143.1619738636974; Thu, 29 Apr 2021 16:23:56 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id a15sm160365wrx.9.2021.04.29.16.23.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 16:23:56 -0700 (PDT) In-Reply-To: <8fba78a42eb8bd480d61@heytings.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:205214 Archived-At: On 30.04.2021 00:46, Gregory Heytings wrote: > I know you like the current default on GNU/Linux, and it will remain > available.  And what you like is not the default (you need to set > visible-bell in your init file), so from that point of view nothing > changes. Fair enough. Still, it's more "proven" that yours, so to speak. I don't mind putting it to the vote sometime, here or some other place. >>> Would you imagine such a behavior in Visual Studio, Sublime or Atom? >> >> Briefly flashing some UI elements in a neutral fashion, without extra >> colors that may look out of place? >> > > Using inverse-video also creates extra colors, unless your frame happens > to display only black on white or white on black elements on the first > and last line.  Moreover with my patch the colors are fully > configurable, so you can adapt them to your theme. It uses only the colors that are already there, though. Just in inverse. Maybe it looks worse on some alternative themes, I have really only tried it with the default one, and themes that are similar enough to it. >> That's also why I asked whether somebody knows a corresponding UI >> element/animation in either of these editors we could, uh, "get >> inspired by". >> > > 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. Thanks for the screenshots. I do not consider the 'ding' to be a warning or error notification, though: I far more often see it after pressing C-g myself, not when something unexpected happens. Otherwise a yellow notification, Atom-style, would be more pertinent. But it would be interesting to try some icon-based animation in the echo area, like the red circle on VSCode's pic.