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.devel Subject: Re: Sound in Emacs Date: Wed, 05 Oct 2011 01:44:21 +0200 Message-ID: <87pqiciap6.fsf@wanadoo.es> References: <4E8AAF3E.7050600@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317771887 1671 80.91.229.12 (4 Oct 2011 23:44:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 23:44:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 05 01:44:42 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RBEfC-0006fa-Er for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2011 01:44:42 +0200 Original-Received: from localhost ([::1]:32909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBEfB-0003W6-Qj for ged-emacs-devel@m.gmane.org; Tue, 04 Oct 2011 19:44:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBEf9-0003W0-J3 for emacs-devel@gnu.org; Tue, 04 Oct 2011 19:44:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBEf8-0000ko-Fd for emacs-devel@gnu.org; Tue, 04 Oct 2011 19:44:39 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBEf8-0000kV-AP for emacs-devel@gnu.org; Tue, 04 Oct 2011 19:44:38 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RBEf5-0006eU-D5 for emacs-devel@gnu.org; Wed, 05 Oct 2011 01:44:35 +0200 Original-Received: from 175.red-83-45-165.dynamicip.rima-tde.net ([83.45.165.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Oct 2011 01:44:35 +0200 Original-Received: from ofv by 175.red-83-45-165.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Oct 2011 01:44:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 175.red-83-45-165.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:BoihfdT07qwOueiXyTp1qDRhguU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144568 Archived-At: "Jan D." writes: > joakim@verona.se skrev 2011-10-03 23:04: > >> And we also of course have EMMS. The thing, though, is that it is pretty >> seamless to just use an external binary to play the sound, unlike having >> to start an external binary to watch an image. So my vote would be on >> improving EMMS. >> > > If you just are out to get a more fancy beep, starting a new external > binary for every beep may not be so seamless. As Emacs' `(beep)' does not work on Kubuntu 10.10, my .emacs contains (setq ring-bell-function (lambda () (call-process "beep" nil 0 nil "-f" "400" "-l" "100"))) Although the `beep' executable is as lightweight as it can possibly be, the results are far from perfect. For instance (beep) (sit-for 0.1) (beep) usually makes two audible beeps, but often only one beep is perceived. On the machines where Emacs' (beep) works, there is no such problem.