From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: can't turn off bell Date: Fri, 12 Aug 2005 09:30:32 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1123859181 1152 80.91.229.2 (12 Aug 2005 15:06:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 15:06:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 12 17:06:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3b5S-0002zx-O5 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 17:04:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3b8f-0001Mk-W4 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 11:08:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3b74-0000sc-3l for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 11:06:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3b72-0000rh-2z for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 11:06:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3b3q-0008WN-VV for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 11:03:06 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3amx-0001lB-Cg for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 10:45:39 -0400 Original-Received: from lab1.ma.utexas.edu (mail@lab1.ma.utexas.edu [128.83.133.39]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j7CEUWS14835; Fri, 12 Aug 2005 09:30:32 -0500 Original-Received: from jcorneli by lab1.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1E3aYK-0008LV-00; Fri, 12 Aug 2005 09:30:32 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Paminu on Fri, 12 Aug 2005 13:41:18 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28683 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28683 I have this in my .emacs file: (setq ring-bell-function #'(lambda)) But the bell is active anyway. I think you meant~ to write (setq ring-bell-function (lambda ())) (ding) or maybe you prefer (this is what I have in my .emacs) (setq ring-bell-function nil) (setq visible-bell t) (ding) ~: `lambda' is self-quoting, which is why `(lambda)' "works", but it requires an arglist if you want to build a function; if the function accepts no arguments, the arglist is `nil'. C-h f lambda RET.