From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45063: compilation-bell Date: Sun, 06 Dec 2020 07:56:36 +0200 Message-ID: <83h7ozbhpn.fsf@gnu.org> References: <871rg3tt98.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45063-done@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 06:58:33 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kln45-0008mU-UZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 06:58:33 +0100 Original-Received: from localhost ([::1]:36976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kln45-0007Sk-0H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 00:58:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kln3a-0007Ry-N4 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 00:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kln3a-0001k5-FW for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 00:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kln3a-0002Wg-FU for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 00:58:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 05:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 45063 X-GNU-PR-Package: emacs Mail-Followup-To: 45063@debbugs.gnu.org, eliz@gnu.org, jidanni@jidanni.org Original-Received: via spool by 45063-done@debbugs.gnu.org id=D45063.16072342249635 (code D ref 45063); Sun, 06 Dec 2020 05:58:02 +0000 Original-Received: (at 45063-done) by debbugs.gnu.org; 6 Dec 2020 05:57:04 +0000 Original-Received: from localhost ([127.0.0.1]:48736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kln2e-0002VL-5B for submit@debbugs.gnu.org; Sun, 06 Dec 2020 00:57:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kln2b-0002Uq-Vh for 45063-done@debbugs.gnu.org; Sun, 06 Dec 2020 00:57:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60451) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kln2U-0001Oj-Rr; Sun, 06 Dec 2020 00:56:56 -0500 Original-Received: from [176.228.60.248] (port=3086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kln2O-00036u-Lh; Sun, 06 Dec 2020 00:56:52 -0500 In-Reply-To: <871rg3tt98.5.fsf@jidanni.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195070 Archived-At: > From: 積丹尼 Dan Jacobson > > Date: Sun, 06 Dec 2020 13:09:55 +0800 > > https://www.quora.com/Why-do-typewriters-have-a-bell > Well compilers should too! > Sure, at the end of a Makefile we could just put > beep > but a new compilation-bell variable, > 'always: ring after every compilation finishes > 'long: ring only after compilations finish that took a "long time", that > you probably forgot are still running. See compilation-finish-functions hook, you can put there anything you want. > And ring differently for failed compilations. The functions on the above hook are called with the description of how the compilation ended, so you can vary the result as you see fit. Closing.