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: Sat, 17 Apr 2021 19:59:13 +0300 Message-ID: References: <009901c9421f$5bd0a6b0$0200a8c0@us.oracle.com> <00ad01c942a0$1f49ca60$0200a8c0@us.oracle.com> <87eef9qg81.fsf@gnus.org> <1869622e162377be79e9@heytings.org> <83bladw0dh.fsf@gnu.org> <87a6pxqdeg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40647"; 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: Gregory Heytings , 1305@debbugs.gnu.org, stefan@marxist.se, jasonspiro4@gmail.com, monnier@iro.umontreal.ca To: Lars Ingebrigtsen , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 19:01:49 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 1lXoKL-000ASG-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 19:01:49 +0200 Original-Received: from localhost ([::1]:50002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXoKK-0004Mp-5V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 13:01:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXoIc-0003iw-Og for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXoIc-0004ti-Fw for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXoIc-0005Hp-Be for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:00: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: Sat, 17 Apr 2021 17:00: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.161867876420251 (code B ref 1305); Sat, 17 Apr 2021 17:00:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 17 Apr 2021 16:59:24 +0000 Original-Received: from localhost ([127.0.0.1]:44258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXoI0-0005GZ-19 for submit@debbugs.gnu.org; Sat, 17 Apr 2021 12:59:24 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:45959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXoHy-0005GM-BX for 1305@debbugs.gnu.org; Sat, 17 Apr 2021 12:59:22 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id h4so20609722wrt.12 for <1305@debbugs.gnu.org>; Sat, 17 Apr 2021 09:59:22 -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=Vuu2cjTh4UVznHNKLhfsKgoNvH4tuldgceX9Ln0OFcQ=; b=jB83yonQpsM+Yu/vb7ffZlfa5CYK6d5y1qUs+ctxcuqBOaRfIN3HnP46CAPBId/sYz HuC9NuhJtUeg4tiMez94NCT39WPSBD874BHMpK7/7TBl+OWBLELaXqmtotpX9GJ9kdEi 0aKS5K5MzLkIT8NZtMsIFIZDoob6MldFw3K/BadhbI07hBfRvHEcMriZXRB3eg49shPz ClbnU7y87zjZ8UdsLVhrWEzqYw8hYhAPTuc1xC8YjYsVKWQIkHaKqQR2aMbewPeEOayf rJPOTMxZjviD5c4FDxNf8Ad2m3kF4gI9ubcMHY6WDpP+nrEYFl354z38wOxqTBYqMVmT H0Dw== 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=Vuu2cjTh4UVznHNKLhfsKgoNvH4tuldgceX9Ln0OFcQ=; b=PiNaHxuu2rIrPhBucNGvYMnRegPmt/jd76nUgIOw/p86KNttJGVqeRKm10CCc7cMFk ITE8/9jFI5+FE2tMHt+g/DmL3BmyuQT9GnXr5pNW6jTzp0WqwbkzIJ7MrPasmN/AeEK9 JdEeTV7qSL2gZqu+nRUZpNSfH7D8jwbyns9QKHHJZ64KXADkOo96vZyyzEuMWcHGkbVv u+kH8DZ+l7aG4+vemK4G62gWjnuLEANip/L+G85e09G8nJt/MgGYE2wH+OznNb6UrWQk keLSChkf+ilWj4SgPltFa5yeONDJWa8/d5Eqje+MCVlcfNH+kaTJto0ILpwXH1lbCoV+ THcg== X-Gm-Message-State: AOAM533jOU0Ge1u5DKHThhajLX9jS4ouYDoimI9Dmp3raUB+Kt6na4PV DzNje6yvOHpucc/JxevLLj8= X-Google-Smtp-Source: ABdhPJwXgpJaAVAONNvo1S0q0lQAKf1trUHvWTV22ijVPp60qDO4y9Tg/dmn/IXo8NtcSvsfoKs/+A== X-Received: by 2002:adf:f410:: with SMTP id g16mr5126066wro.345.1618678756497; Sat, 17 Apr 2021 09:59:16 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id z17sm16171914wro.1.2021.04.17.09.59.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Apr 2021 09:59:15 -0700 (PDT) In-Reply-To: <87a6pxqdeg.fsf@gnus.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:204229 Archived-At: On 17.04.2021 15:55, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >>> IMO, the default behavior on GNU/Linux (inverting video on the first and >>> last line of the frame) is horrible (but perhaps less so than an actual >>> bell), > > Hm... when I try this on Debian/bullseye, it inverts the video on the > two first lines in the frame. But I seem to recall it working the way > you describe, so perhaps there's differences between various > toolkits/libraries used by Emacs in this area? Same here. It's either GTK3 build, or its HiDPI support (if you also have a HiDPI screen). >>> and the default behavior on macOS is too intrusive (but again >>> perhaps less so than an actual bell). >> >> On MS-Windows, we use a system API that flashes the caption bar of the >> selected-frame's window. > > Then it sounds like visible-bell should be visible enough on all the > three major systems we support. From what I see, visible-bell does nothing in 'emacs -nw'. Not sure how easy that would be to fix. > However, I just noticed that an "emacs -Q" doesn't beep at all on this > machine -- because I've switched off all "alert" beeps in the OS > interface. So `C-g' just says "Quit" in the echo area, and nothing > else. > > So in this instance, defaulting `visible-bell' to "on" would make `C-g' > more intrusive/obnoxious than previously... which is the opposite > effect than what was originally discussed in this bug report. Well, we probably do want it to have some effect in general, unless the user has customized is off in some way or another.