* activating the beep
@ 2011-05-13 9:58 Frederic Baldit
2011-05-17 0:24 ` Óscar Fuentes
0 siblings, 1 reply; 3+ messages in thread
From: Frederic Baldit @ 2011-05-13 9:58 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
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.
Any help would be much appreciated.
Thank's in advance,
Frédéric.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: activating the beep
2011-05-13 9:58 activating the beep Frederic Baldit
@ 2011-05-17 0:24 ` Óscar Fuentes
2011-05-17 16:37 ` Frédéric Baldit
0 siblings, 1 reply; 3+ messages in thread
From: Óscar Fuentes @ 2011-05-17 0:24 UTC (permalink / raw)
To: help-gnu-emacs
Frederic Baldit <frederic38300@aol.com> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: activating the beep
2011-05-17 0:24 ` Óscar Fuentes
@ 2011-05-17 16:37 ` Frédéric Baldit
0 siblings, 0 replies; 3+ messages in thread
From: Frédéric Baldit @ 2011-05-17 16:37 UTC (permalink / raw)
To: help-gnu-emacs
Óscar Fuentes <ofv <at> wanadoo.es> writes:
> 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
I checked this: pcspkr kernel module is loaded, as the previous command responds:
pcspkr 1699 0
>
> 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.
I had also checked that, and alsamixer says that PCbeep is not mutted. By the
way all my sound system seems to work. Curiously, running emacs in a console,
through the command "emacs -nw", makes the PCbeep work !! I simply would like it
to work ALSO in it's X window, as I usually use it. Right now, I really don't
see why PC beep doesn't work for me in emacs.
Frédéric.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-17 16:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 9:58 activating the beep Frederic Baldit
2011-05-17 0:24 ` Óscar Fuentes
2011-05-17 16:37 ` Frédéric Baldit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).