From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#20066: 24.4; should-error and cl-assert Date: Wed, 08 Apr 2015 12:15:38 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428466583 10115 80.91.229.3 (8 Apr 2015 04:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2015 04:16:23 +0000 (UTC) Cc: 20066-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 06:16:12 2015 Return-path: Envelope-to: geb-bug-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 1YfhPO-0007F2-Ph for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 06:16:11 +0200 Original-Received: from localhost ([::1]:50422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfhPN-0006yH-Hj for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 00:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfhPK-0006xV-7v for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 00:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfhPG-00005Z-JL for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 00:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfhPG-00005Q-G8 for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 00:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfhPG-0000jy-7s for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 00:16:02 -0400 Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Apr 2015 04:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20066 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20066@debbugs.gnu.org, sdl.web@gmail.com, sdl.web@gmail.com Original-Received: via spool by 20066-done@debbugs.gnu.org id=D20066.14284665552827 (code D ref 20066); Wed, 08 Apr 2015 04:16:01 +0000 Original-Received: (at 20066-done) by debbugs.gnu.org; 8 Apr 2015 04:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:48656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfhP8-0000jX-Un for submit@debbugs.gnu.org; Wed, 08 Apr 2015 00:15:55 -0400 Original-Received: from mail-pd0-f182.google.com ([209.85.192.182]:36822) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfhP6-0000jI-O3 for 20066-done@debbugs.gnu.org; Wed, 08 Apr 2015 00:15:53 -0400 Original-Received: by pdea3 with SMTP id a3so101496124pde.3 for <20066-done@debbugs.gnu.org>; Tue, 07 Apr 2015 21:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:face:date :message-id:mime-version:content-type; bh=zKwH+fRWbzEUTbIsyNFCxCYKbWg6KFFFZlHLAl7ZSNg=; b=wPuTY+FD3o4ukRs6NOcgU5pmEzUltVarl9nDrmZbO5/hxggTG0HlJLyRllL/X109bm b0mjCNG4E4QKbMSlOwDtL9KOZnKmji8nqCBMct8QREO8Mb6cfhOKNjE3I/0ExY/4G2Ga ztFbMwLobL8PWGuGod9ls9m5/9VG/Tpwc0e29bhLvCBsfTKJ6Y4bPUK54RAokJaNH8EC fQBbxJLC7QPKKBXeV3u26O+aRq4on70sdp4smsgZlsWcDWuYdvAzi09/Ax5DiKgtsG1z 8m3DOgrR/YZL/5eSrDoXL8ld6udl2bq9QbzWyJrBuSVQ5sJdFQ9wlXEXctWFJypdsTDM r0rg== X-Received: by 10.68.210.46 with SMTP id mr14mr21040503pbc.73.1428466546994; Tue, 07 Apr 2015 21:15:46 -0700 (PDT) Original-Received: from Shidais-iMac.local ([128.199.230.246]) by mx.google.com with ESMTPSA id c8sm9661342pdj.65.2015.04.07.21.15.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 21:15:46 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 07 Apr 2015 22:05:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (OS X 10.10.2) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUKDAg1NjRWV1V9fnyg op/DxcLk5uP8/voi63ReAAAACXBIWXMAAAWJAAAFiQFtaJ36AAAAB3RJTUUH1goZAgAz00bgXgAA AeVJREFUKM9lk0Fz2jAQhQXJD3CCO70CmcC1YMtcWyTZ14Bl69xats4N9r6/3zWQBlodNKNPu/s0 b1cCQFuZGpfVVh3vAvBJolIXRkapSuoRUtIdFyo1Y5xSdlAj7OtvD1XnXxmWRi+eWgcxyCed1lVV B1CrKyujMoi+eLA5kU1SsjoHlW+nQjTtFxk4MXgrOxvIqzoTZR8XgPaLl419zgsMaSGFPiUOZCIh thsx5Xy9NsK8Kwf/JoQgMxcVJ301HKkcSWaT0O7FY056J4U9xcYfnmVXG4801lW6lqwu2nKFZoHC HuzvaTVndZ+LaRQgZdthXw1cpynEkLEwyFHXk/aIxNQ6QeooJuzPMB+wn+D7JJNsiCcVA13/A3h/ xE9J+WidpAwoYNmRFwyvSRhNVtsdaAewzZZP5uw82QL9+tyNfocyP0McAzICUr5Mk9RdIjWasUNx aIIt6NK4ZtXIMdfMQt3nuMAyWbLI4DqZ4xPq/ag8jPond4XU/cLuOgw6XCFX/YCUfcDAMMH58fD4 G9kDchwfqVefkBwup2uZM+Q4WhJt5jN3AxXCsaS2yXEDuWgS8VOzW0gFjhEPmLyFMKBFaLb1HRwc DiaKwx0EeTMRYnYPQRW3PP4HApvlMv0PttX5v/D6Aws3IOSEwzmLAAAAAElFTkSuQmCC X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101277 Archived-At: On 2015-04-08 10:05 +0800, Stefan Monnier wrote: > I think test 2 is incorrect. It assumes that when cl-assert fails it > reacts by throwing a "normal" signal that can be caught like any other. > This is untrue for example when we decide to compile-away the assertions > (depending on speed ans safety settings). > > cl-assert should be used to check impossible situations and an assertion > failure is just supposed to bring it to the user's attention to help > debug the code. It is not meant to be caught&handled like a normal > signal. OK, that makes sense. Leo