From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: beep makes no sound on xfce Date: Sat, 12 Sep 2015 18:03:16 +0200 Message-ID: <877fnv39rv.fsf@web.de> References: <20150909212527.24ebb8af@gauss> <87egi4xaar.fsf@web.de> <20150912081851.5514fc7e@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1442073841 20726 80.91.229.3 (12 Sep 2015 16:04:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2015 16:04:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 12 18:03:53 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 1ZanHM-0003gQ-UC for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2015 18:03:53 +0200 Original-Received: from localhost ([::1]:33076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZanHM-0005xS-Ck for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2015 12:03:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZanHC-0005xM-3b for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 12:03:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZanH8-00053h-RN for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 12:03:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZanH8-00053T-Lh for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 12:03:38 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZanH7-0003OS-II for help-gnu-emacs@gnu.org; Sat, 12 Sep 2015 18:03:37 +0200 Original-Received: from ip-90-186-132-206.web.vodafone.de ([90.186.132.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Sep 2015 18:03:37 +0200 Original-Received: from michael_heerdegen by ip-90-186-132-206.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Sep 2015 18:03:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-186-132-206.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:+LcFE04VzQZTeTB3qt05vuz9+K8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:107179 Archived-At: Joe Riel writes: > Any idea what mechanism emacs uses to generate a beep on linux? I'm > thinking the problem lies there, rather than in emacs. I think `XTring_bell' in xterm.c is the function implementing this: --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--- 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. There is a news entry about the above function btw: 2013-03-25 Jan Djärv * xterm.c: Include X11/XKBlib.h (XTring_bell): Use XkbBell if HAVE_XKB (Bug#14041). Others hopefully can help further. Regards, Michael.