[gnu.emacs] Is there a way to turn off the Bell?

ldk@raistlin.udev.cdc.com (ld kelley x-6857) (01/10/90)

I have a number of users here that are using x terminals, and they tell
my that the bell is driving them bonkers.  Can a user disable the bell and
how?  We are running emacs 18.55 on MIPS and Suns.

Thanks in advance
  -larry

Larry D. Kelley         |      Internet:  ldk@raistlin.udev.cdc.com
Control Data Corporation|      uucp:      {uunet}!shamash!raistlin!ldk
4201 Lexington Ave No.  |      AT&T:	  01-612-482-2046
Arden Hills, MN         |



Larry D. Kelley         |      Internet:  ldk@raistlin.udev.cdc.com
Control Data Corporation|      uucp:      {uunet}!shamash!raistlin!ldk
4201 Lexington Ave No.  |      AT&T:	  01-612-482-2046
Arden Hills, MN         |

weening@Gang-of-Four.Stanford.EDU (Joe Weening) (01/11/90)

In article <15026@shamash.cdc.com> ldk@raistlin.udev.cdc.com (ld kelley x-6857) writes:

   I have a number of users here that are using x terminals, and they tell
   my that the bell is driving them bonkers.  Can a user disable the bell and
   how?  We are running emacs 18.55 on MIPS and Suns.

The problem is that Emacs is increasing the bell volume, instead of
using the user's choice.  On my NCD-16 X terminal, I usually set the
bell to 20% of the maximum volume, because it has a really loud beep.
Emacs chooses to beep at 50% between this and the maximum, i.e., 60%
of the maximum, or three times as loud as I want.  The following patch
fixes it.

*** x11term.c.old	Wed Aug  2 19:56:42 1989
--- x11term.c	Sat Dec  2 17:37:44 1989
***************
*** 655,659 ****
  #endif
  	BLOCK_INPUT ();
! 	XBell (XXdisplay,50);
  	UNBLOCK_INPUT ();
  }
--- 655,659 ----
  #endif
  	BLOCK_INPUT ();
! 	XBell (XXdisplay,0);
  	UNBLOCK_INPUT ();
  }
--
Joe Weening                                Computer Science Dept.
weening@Gang-of-Four.Stanford.EDU          Stanford University