From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Re: beep makes no sound on xfce Date: Sat, 12 Sep 2015 16:36:20 -0700 Message-ID: <20150912163620.23c919fa@gauss> References: <20150909212527.24ebb8af@gauss> <87egi4xaar.fsf@web.de> <20150912081851.5514fc7e@gauss> <877fnv39rv.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442101013 5467 80.91.229.3 (12 Sep 2015 23:36:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2015 23:36:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 01:36:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZauLc-0004Od-4o for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Sep 2015 01:36:44 +0200 Original-Received: from localhost ([::1]:34037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZauLb-00014m-6i for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2015 19:36:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZauLK-0000wt-GP for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:36:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZauLG-0003FT-FM for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:36:26 -0400 Original-Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:23784 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZauLG-0003F5-Bo for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 19:36:22 -0400 Original-Received: from [75.80.189.125] ([75.80.189.125:48582] helo=gauss) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 94/F7-28614-4F6B4F55; Sat, 12 Sep 2015 23:36:20 +0000 In-Reply-To: <877fnv39rv.fsf@web.de> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.166.228 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:107182 Archived-At: On Sat, 12 Sep 2015 18:03:16 +0200 Michael Heerdegen wrote: > Joe Riel writes: >=20 > > Any idea what mechanism emacs uses to generate a beep on linux? I'm > > thinking the problem lies there, rather than in emacs. >=20 > I think `XTring_bell' in xterm.c is the function implementing this: >=20 > --8<---------------cut here---------------start------------->8--- > static void > XTring_bell (struct frame *f) > { > if (FRAME_X_DISPLAY (f)) > { > if (visible_bell) > XTflash (f); > else > { > block_input (); > #ifdef HAVE_XKB > XkbBell (FRAME_X_DISPLAY (f), None, 0, None); > #else > XBell (FRAME_X_DISPLAY (f), 0); > #endif > XFlush (FRAME_X_DISPLAY (f)); > unblock_input (); > } > } > } > --8<---------------cut here---------------end--------------->8--- >=20 > I don't have any background knowledge, AFAICT this calls the system bell > via X. AFAIK the X bell used to activate some little beeper device that > modern hardware often doesn't have. It never worked for me, for > example, so I use the visible bell. >=20 > There is a news entry about the above function btw: >=20 > 2013-03-25 Jan Dj=C3=A4rv >=20 > * xterm.c: Include X11/XKBlib.h > (XTring_bell): Use XkbBell if HAVE_XKB (Bug#14041). >=20 > Others hopefully can help further. Thanks. Interesting. Turns out a reboot solved my problem, the bell is now ringing (more like beeping). --=20 Joe Riel