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: Sun, 18 Apr 2021 18:02:11 +0000 Message-ID: References: <00ad01c942a0$1f49ca60$0200a8c0@us.oracle.com> <87eef9qg81.fsf@gnus.org> <1869622e162377be79e9@heytings.org> <83bladw0dh.fsf@gnu.org> <87a6pxqdeg.fsf@gnus.org> <875z0lqcj4.fsf@gnus.org> <1869622e1602a39e56a6@heytings.org> <87a6pwvcrv.fsf@md5i.com> <1869622e165c625e097b@heytings.org> <874kg4vast.fsf@md5i.com> <1869622e166ad3c37a69@heytings.org> <87k0ozq3n8.fsf@gnus.org> <87blabpy54.fsf@gnus.org> <8735vnpqho.fsf@gnus.org> <83fszntt1u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="pxftHDc3cB" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 1305@debbugs.gnu.org, mwd@md5i.com, stefan@marxist.se, jasonspiro4@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 18 20:03:28 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 1lYBlY-0003Pn-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 20:03:28 +0200 Original-Received: from localhost ([::1]:36022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYBlX-0000P6-Bm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 14:03:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYBl8-0000P0-Ry for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 14:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYBl8-0004di-Kd for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 14:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYBl8-0005WZ-Gm for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 14:03: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: Sun, 18 Apr 2021 18:03: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.161876893521177 (code B ref 1305); Sun, 18 Apr 2021 18:03:02 +0000 Original-Received: (at 1305) by debbugs.gnu.org; 18 Apr 2021 18:02:15 +0000 Original-Received: from localhost ([127.0.0.1]:47730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYBkN-0005VV-CJ for submit@debbugs.gnu.org; Sun, 18 Apr 2021 14:02:15 -0400 Original-Received: from heytings.org ([95.142.160.155]:43576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYBkL-0005VL-GB for 1305@debbugs.gnu.org; Sun, 18 Apr 2021 14:02:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618768932; bh=9s9TQ93Xwf5IU0+/8jom1v4I4kXjEtdez6x3fad3kG0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Nn+RxIxYSvBYNDcADg5OteJ1va06kbqwIQVSGNN9IL/qapgcTCL69O/a0W9mPhbla RxD20oxV197rKSweJj6EMm2436aBS0X4P4ROOhbXhkn147QoKfBcE3Y3VMRzznJjTl TNPO0y3N9Yl24ShUqo6TwESezju6p45yJIU34kn9QJZFHz/rUFMaMCwbGLpLDJxbZo iN0G9wWwhwJQfu/7Td85W/1U4n0iIRSlQqwsFIQtHNgFlt3oGGoQSjq5innEKk5tsr bVVqFRYWDvLwSmj5FmMoNnsl8p/1cdVEuNY/mgLKcjmhCX2gPFmdYqir2x06qw7ays SCkBTapEy67UQ== In-Reply-To: <83fszntt1u.fsf@gnu.org> 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:204385 Archived-At: --pxftHDc3cB Content-Type: text/plain; format=flowed; charset=us-ascii >>> I think, perhaps, introducing a new visible bell (across all >>> significant system), that's considerably less intrusive than the ones >>> we have today on GNU/Linux and Macos, might be an option. And then >>> defaulting to using that. >>> >>> Gregory suggested blinking the cursor in a different colour -- >>> perhaps? >> >> I attach a POC of what I have in mind. > > If this is being proposed as the default setting, then we should have a > different default for TTY frames, because AFAIR cursor color cannot be > changed there, right? > Indeed. >> (sit-for 0.5) > > I think half a second is too long, a bell should be much shorter, like > 0.1 sec or something. > Hmmm... 0.5 seconds is the duration of typical audible bells. And with a sit-for, it's at most 0.5 seconds, when the user presses a key the bell signal disappears. That being said, I agree with you that 0.5 seconds is perhaps a bit too long, so I changed it to 0.25 seconds. I attach the updated POC, which works on non-graphical displays. --pxftHDc3cB Content-Type: text/plain; charset=us-ascii; name=visible-bell.el Content-Transfer-Encoding: base64 Content-ID: Content-Description: Content-Disposition: attachment; filename=visible-bell.el KGRlZmZhY2UgdmlzaWJsZS1iZWxsLWZhY2UNCiAgJygoKCh0eXBlIHR0eSkp IDpiYWNrZ3JvdW5kICJyZWQiKSh0ICg6YmFja2dyb3VuZCAieWVsbG93Iikp KSAiIikNCihkZWZmYWNlIHZpc2libGUtYmVsbC1jdXJzb3ItZmFjZSBgKCh0 ICg6YmFja2dyb3VuZCAicmVkIikpKSAiIikNCihkZWZ2YXIgdmlzaWJsZS1i ZWxsLS1jdXJzb3ItYmFja2dyb3VuZCBuaWwpDQooZGVmdmFyIHZpc2libGUt YmVsbC0tZmFjZS1yZW1hcHBpbmcgbmlsKQ0KKGRlZnVuIHZpc2libGUtYmVs bCAoKQ0KICAodW5sZXNzIHZpc2libGUtYmVsbC0tY3Vyc29yLWJhY2tncm91 bmQNCiAgICAoc2V0cSB2aXNpYmxlLWJlbGwtLWN1cnNvci1iYWNrZ3JvdW5k DQogICAgICAgICAgKGZhY2UtYXR0cmlidXRlICdjdXJzb3IgOmJhY2tncm91 bmQpKSkNCiAgKHNldC1mYWNlLWF0dHJpYnV0ZSAnY3Vyc29yIG5pbCA6YmFj a2dyb3VuZA0KCQkgICAgICAoZmFjZS1hdHRyaWJ1dGUgJ3Zpc2libGUtYmVs bC1jdXJzb3ItZmFjZSA6YmFja2dyb3VuZCkpDQogICh3aXRoLWN1cnJlbnQt YnVmZmVyICIgKkVjaG8gQXJlYSAwKiINCiAgICAoc2V0cS1sb2NhbCB2aXNp YmxlLWJlbGwtLWZhY2UtcmVtYXBwaW5nDQogICAgICAgICAgICAgICAgKGZh Y2UtcmVtYXAtYWRkLXJlbGF0aXZlICdkZWZhdWx0ICd2aXNpYmxlLWJlbGwt ZmFjZSkpKQ0KICAoc2l0LWZvciAwLjI1KQ0KICAoc2V0LWZhY2UtYXR0cmli dXRlICdjdXJzb3IgbmlsIDpiYWNrZ3JvdW5kIHZpc2libGUtYmVsbC0tY3Vy c29yLWJhY2tncm91bmQpDQogICh3aXRoLWN1cnJlbnQtYnVmZmVyICIgKkVj aG8gQXJlYSAwKiINCiAgICAoZmFjZS1yZW1hcC1yZW1vdmUtcmVsYXRpdmUg dmlzaWJsZS1iZWxsLS1mYWNlLXJlbWFwcGluZykpKQ0KKHNldHEgcmluZy1i ZWxsLWZ1bmN0aW9uICMndmlzaWJsZS1iZWxsKQ0KKHNldHEgdmlzaWJsZS1i ZWxsIG5pbCkgOzsganVzdCBpbiBjYXNlDQo= --pxftHDc3cB--