From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why timers are now catching errors Date: Sun, 13 Jan 2013 17:50:47 -0500 Message-ID: References: <877gnhb4hj.fsf@gmail.com> <871udpi151.fsf@gmail.com> <87wqvhgjyl.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358117457 14535 80.91.229.3 (13 Jan 2013 22:50:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2013 22:50:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 13 23:51:15 2013 Return-path: Envelope-to: ged-emacs-devel@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 1TuWOZ-0004V6-HB for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2013 23:51:15 +0100 Original-Received: from localhost ([::1]:40481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuWOJ-0006yB-CP for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2013 17:50:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuWOA-0006y0-WD for emacs-devel@gnu.org; Sun, 13 Jan 2013 17:50:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuWO9-000226-2w for emacs-devel@gnu.org; Sun, 13 Jan 2013 17:50:50 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:63019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuWO8-000222-V1 for emacs-devel@gnu.org; Sun, 13 Jan 2013 17:50:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09FpZpV/2dsb2JhbABEgXuyFoEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212438453" Original-Received: from 69-165-154-85.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Jan 2013 17:50:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 7B48258A07; Sun, 13 Jan 2013 17:50:47 -0500 (EST) In-Reply-To: <87wqvhgjyl.fsf@gmail.com> (Thierry Volpiatto's message of "Sun, 13 Jan 2013 16:51:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:156327 Archived-At: > Hmm, I see, what about sending such messages only when `debug-on-error' is > enabled ? No, when debug-on-error is enabled, you already get a backtrace, so there's no need for an additional message. But the point is that such errors (and hence messages) should be rare and correspond to actual real problems that need to be fixed. For "normal errors", the timer's code should catch/silence the error rather than let it get to timer.el. Stefan