From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Beeping (was: Emacs for new users) Date: Fri, 27 Nov 2009 00:35:27 +0200 Organization: JURTA Message-ID: <87aay91k9j.fsf_-_@mail.jurta.org> References: <912155b0911230837i48326730m82e0d54d4004be59@mail.gmail.com> <87y6lxdvnl.fsf@mandingo.thematica.it> <87zl6dgjt1.fsf@stupidchicken.com> <874oolarvt.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259275458 21557 80.91.229.12 (26 Nov 2009 22:44:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 22:44:18 +0000 (UTC) Cc: Per =?iso-8859-1?Q?Starb=E4ck?= , emacs-devel@gnu.org, Giuseppe Scrivano , 1305@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 26 23:44:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDn4L-0004hW-Ep for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2009 23:44:09 +0100 Original-Received: from localhost ([127.0.0.1]:42042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDn4L-0001oM-6b for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2009 17:44:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDn2R-0000cc-Bj for emacs-devel@gnu.org; Thu, 26 Nov 2009 17:42:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDn2M-0000Xr-3J for emacs-devel@gnu.org; Thu, 26 Nov 2009 17:42:10 -0500 Original-Received: from [199.232.76.173] (port=34144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDn2L-0000XS-R7 for emacs-devel@gnu.org; Thu, 26 Nov 2009 17:42:05 -0500 Original-Received: from smtp-out3.starman.ee ([85.253.0.5]:39705 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDn2I-0005lY-SW; Thu, 26 Nov 2009 17:42:03 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.35.21.cable.starman.ee [82.131.35.21]) by mx1.starman.ee (Postfix) with ESMTP id 5E1B23F412A; Fri, 27 Nov 2009 00:41:54 +0200 (EET) In-Reply-To: <874oolarvt.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 23 Nov 2009 15:49:26 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117834 Archived-At: >>>> * beeping is often disturbing and unexpected, in particular for >>>> scrolling past the beginning or end of the >>>> buffer with the scroll wheel. (I agree. That's hardly an error.) >>> >>> yes, I agree with you, beeping is often disturbing. You can disable it, >>> changing the value of visible-bell to t: > >> This is bug#1305. That discussion never came to a conclusion. > > One complication, now that I recall, is that we really do want to signal > an error for beginning-of-buffer and end-of-buffer, so that keyboard > macros will terminate. > > The problem is that we have no mechanism for telling Emacs not to ring > the bell for certain classes of errors. I suggest to implement this mechanism by adding a new symbol property, e.g. `error-bell' by analogy with properties `error-message' and `error-conditions', with possible values t, nil and `visible'. And to put this property with the value nil on `beginning-of-buffer', `end-of-buffer' and `keyboard-quit' - most annoying beeping commands. > But I'm not sure Emacs should even be in the bell-ringing business, > anyway; it's a barbaric practice, and an echo-area message IMHO > suffices. Yes, this practice comes from ancient times of beeping keyboards :-) -- Juri Linkov http://www.jurta.org/emacs/