From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: activating the beep Date: Tue, 17 May 2011 02:24:03 +0200 Message-ID: <8739ke5g4c.fsf@wanadoo.es> References: <1305280684.3015.12.camel@Siula-Grande.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305591872 9310 80.91.229.12 (17 May 2011 00:24:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 May 2011 00:24:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 17 02:24:29 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QM85M-00060z-Ew for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2011 02:24:28 +0200 Original-Received: from localhost ([::1]:56996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM85L-0007Od-T3 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2011 20:24:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM85F-0007OL-Jv for help-gnu-emacs@gnu.org; Mon, 16 May 2011 20:24:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QM85E-00082q-Fa for help-gnu-emacs@gnu.org; Mon, 16 May 2011 20:24:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM85E-00082e-59 for help-gnu-emacs@gnu.org; Mon, 16 May 2011 20:24:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QM85B-0005wT-Q6 for help-gnu-emacs@gnu.org; Tue, 17 May 2011 02:24:17 +0200 Original-Received: from 31.red-79-148-47.dynamicip.rima-tde.net ([79.148.47.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2011 02:24:17 +0200 Original-Received: from ofv by 31.red-79-148-47.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2011 02:24:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 31.red-79-148-47.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:0Ou6nzn4ZnYwzDvJSb9tlO5Zg7I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80988 Archived-At: Frederic Baldit writes: > I am a new emacs user (23.2.1)on debian squeeze. When reading the book > "Learning GNU Emacs" (from D. Cameron), I see that emacs should normally > beep in certain circumstances, e.g. when leaving emacs after the current > buffer has been modified and the changes haven't been saved to the > corresponding file and you don't answer "yes" or "no". > > In my case, no beep at all is heard, and I cannot figure out why. I have > added in my .emacs file the line: > > (setq ring-bell-function 'beep) > > with no success. I also tried browsing the customization, unsuccesfully. By default the beep that Emacs produces goes to the PC speaker. Some modern desktop machines (and all laptops AFAIK) don't have a PC speaker. Another possibility is that your OS has the pcspkr kernel module disabled (this is the case of Ubuntu since some releases ago). You can check that pcspkr is loaded typing this on a console: lsmod | grep pcspkr If the above outputs nothing, try this load the module: sudo modprobe pcspkr Then on Emacs pressing C-g (Control+g) should produce a beep. You also can check that the beep is not muted. On my Kubuntu 10.10 install this is performed executing alsamixer on a console: alsamixer press the left arrow until you see a vertical bar with the word "Beep" under it. If it is muted the letters MM are shown over it. Be sure that "Beep" is highlighted, press M to unmute it and the up arrow to increase the volume. HTH.