From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 04:07:01 2015 Received: (at submit) by debbugs.gnu.org; 9 Mar 2015 08:07:01 +0000 Received: from localhost ([127.0.0.1]:40108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUsiK-0000dU-SP for submit@debbugs.gnu.org; Mon, 09 Mar 2015 04:07:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUsiI-0000d0-SQ for submit@debbugs.gnu.org; Mon, 09 Mar 2015 04:06:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUsiC-0000C7-VK for submit@debbugs.gnu.org; Mon, 09 Mar 2015 04:06:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsiC-0000Bz-T4 for submit@debbugs.gnu.org; Mon, 09 Mar 2015 04:06:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsiC-0008Hv-6V for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 04:06:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUsi9-00008J-1a for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 04:06:52 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:41268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUsi8-00007Z-RJ for bug-gnu-emacs@gnu.org; Mon, 09 Mar 2015 04:06:48 -0400 Received: by pablj1 with SMTP id lj1so64638463pab.8 for ; Mon, 09 Mar 2015 01:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=mhzWHXCQnzEku8tNSIF32rE+9k1Sph1GL1CFtygEUm0=; b=RNNzciKV75b4ZQdjw4b2Xb1OfgRsl0UR9p+TzEIbQ7v2GJz8dqs1LIRaJGNblNQ5W/ HDBqWSaT7ACVz/Dn5ahx3c164yI0esYThPmy2MNkRM+qDOlsWN/JQ89z/T4gP85aiP81 Bx1ovR0DTwudX4BypE0pDVdQQ2KkIg+KN7f30r8wFfo283CyScmzSIDUXymwXH9u7Raa 3CLlCXR7v78P8Kwc7hllCVEscyJ+oyXJzvoH21LPfgeCQWnIk2R2ony6eIqV+biafuGk iCtFtw3EXdlofK8QlT533i6mepFQhWXVDWZNcESms+dIn6qc2nj+Vj6DDsRcpOw+cqku mDCg== X-Received: by 10.70.94.195 with SMTP id de3mr50360241pdb.59.1425888407754; Mon, 09 Mar 2015 01:06:47 -0700 (PDT) Received: from localhost ([128.199.230.246]) by mx.google.com with ESMTPSA id z2sm17662945pde.94.2015.03.09.01.06.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 01:06:47 -0700 (PDT) From: Leo Liu To: bug-gnu-emacs@gnu.org Subject: 24.4; should-error and cl-assert X-Debbugs-CC: Date: Mon, 09 Mar 2015 16:06:44 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I just compiled emacs 25.0.50 from git and I have immediately noticed the following difference: 1. (should-error (error "yes")) 2. (should-error (cl-assert nil t)) Test 1 succeeds but test 2 fails. In emacs 24.4, both tests succeed. Could someone investigate what have caused this incompatibility? Thanks, Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 12:13:31 2015 Received: (at 20066) by debbugs.gnu.org; 9 Mar 2015 16:13:31 +0000 Received: from localhost ([127.0.0.1]:40876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV0J9-00065S-8o for submit@debbugs.gnu.org; Mon, 09 Mar 2015 12:13:31 -0400 Received: from b2bfep13.mx.upcmail.net ([62.179.121.58]:33066) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV0J6-00065C-1J for 20066@debbugs.gnu.org; Mon, 09 Mar 2015 12:13:29 -0400 Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep13.mx.upcmail.net (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20150309161321.VSES20529.b2bfep13-int.chello.at@edge12.upcmail.net> for <20066@debbugs.gnu.org>; Mon, 9 Mar 2015 17:13:21 +0100 Received: from iznogoud.viz ([91.119.102.48]) by edge12.upcmail.net with edge id 1UDM1q00112fMZF0CUDM5R; Mon, 09 Mar 2015 17:13:21 +0100 X-SourceIP: 91.119.102.48 Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YV0Iy-0000Mt-OP; Mon, 09 Mar 2015 17:13:20 +0100 From: Wolfgang Jenkner To: Leo Liu Subject: Re: bug#20066: 24.4; should-error and cl-assert Date: Mon, 09 Mar 2015 17:12:35 +0100 References: Message-ID: <854mpum9nj.fsf@iznogoud.viz> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20066 Cc: 20066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Mon, Mar 09 2015, Leo Liu wrote: > I just compiled emacs 25.0.50 from git and I have immediately noticed > the following difference: > > 1. (should-error (error "yes")) > 2. (should-error (cl-assert nil t)) > > Test 1 succeeds but test 2 fails. In emacs 24.4, both tests succeed. > Could someone investigate what have caused this incompatibility? commit 61b4c22c6eba96718327a0d208a8492d8bad76e0 Author: Stefan Monnier Date: Sat Feb 14 00:46:29 2015 -0500 [...] (cl--assertion-failed): New function. +(defun cl--assertion-failed (form &optional string sargs args) + (if debug-on-error + (debug `(cl-assertion-failed ,form ,string ,@sargs)) So, `debug' is explicitly called now, which circumvents the normal call-chain: signal > maybe_call_debugger > call_debugger > debug From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 15:40:19 2015 Received: (at control) by debbugs.gnu.org; 9 Mar 2015 19:40:19 +0000 Received: from localhost ([127.0.0.1]:40937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV3XH-0002pT-5L for submit@debbugs.gnu.org; Mon, 09 Mar 2015 15:40:19 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43994 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV3XF-0002pL-LG for control@debbugs.gnu.org; Mon, 09 Mar 2015 15:40:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YV3XF-0008Iq-4S for control@debbugs.gnu.org; Mon, 09 Mar 2015 15:40:17 -0400 Date: Mon, 09 Mar 2015 15:40:17 -0400 Message-Id: Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 19759 by 20066 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 07 03:44:59 2015 Received: (at 20066) by debbugs.gnu.org; 7 Apr 2015 07:44:59 +0000 Received: from localhost ([127.0.0.1]:46933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfOBv-0008Se-09 for submit@debbugs.gnu.org; Tue, 07 Apr 2015 03:44:59 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:35217) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfOBt-0008SO-10 for 20066@debbugs.gnu.org; Tue, 07 Apr 2015 03:44:57 -0400 Received: by pddn5 with SMTP id n5so70578247pdd.2 for <20066@debbugs.gnu.org>; Tue, 07 Apr 2015 00:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=rWRv11lXrtxyB6VAaHr9f7v45E4a/TPznIWvpTg8bdc=; b=JAznyXXH2zuR3knADM/iRkaL1kFqhfJvm5e5QkWDqV9afJB0baIay4nWiJ0TwqW4Pt KiWIOBehQmjfaCCsiChQf1MRnLpPNS1WzSHEafxAEMPKoRr3w8bMLBfr0zJHL5MNkHG6 mHfBJBQmy9ow6MJU16taGH0GHqKuD2tvK1h8RU4tlgE5jfwE1Ld8iHLC85tcVhYTstBP 2uH+6veE4BOBoYy8wSS5Et2ZSivfGb9ntF86puNqHG0A6ohOnKrRXQA5xbimiaAFDnNK YPvi9jLtBRDivBN1GS0cHXD4Oz++Dp+Xr7QHklWeVoggtTaPeJQr0eHcM6QLYoHfKa5R f8vA== X-Received: by 10.66.235.169 with SMTP id un9mr33313263pac.45.1428392690944; Tue, 07 Apr 2015 00:44:50 -0700 (PDT) Received: from Shidais-iMac.local ([128.199.230.246]) by mx.google.com with ESMTPSA id c1sm7006350pdc.45.2015.04.07.00.44.48 for <20066@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 00:44:50 -0700 (PDT) From: Leo Liu To: 20066@debbugs.gnu.org Subject: Re: bug#20066: 24.4; should-error and cl-assert References: Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Date: Tue, 07 Apr 2015 15:44:45 +0800 In-Reply-To: (Leo Liu's message of "Mon, 09 Mar 2015 16:06:44 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (OS X 10.10.2) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20066 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2015-03-09 16:06 +0800, Leo Liu wrote: > I just compiled emacs 25.0.50 from git and I have immediately noticed > the following difference: > > 1. (should-error (error "yes")) > 2. (should-error (cl-assert nil t)) > > Test 1 succeeds but test 2 fails. In emacs 24.4, both tests succeed. > Could someone investigate what have caused this incompatibility? > > Thanks, > Leo Any comments on this bug? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 07 08:45:47 2015 Received: (at 20066) by debbugs.gnu.org; 7 Apr 2015 12:45:47 +0000 Received: from localhost ([127.0.0.1]:47120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfSt1-0000Ts-KR for submit@debbugs.gnu.org; Tue, 07 Apr 2015 08:45:47 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:3473) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfSt0-0000Tk-Bt for 20066@debbugs.gnu.org; Tue, 07 Apr 2015 08:45:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiwFALzQI1WkD4Xx/2dsb2JhbABchDayFAEBAQEBAQaZJQKBeQEBAQEBAX6EHwEFeRAIAw4TJQ8BBA08E4gaAQMRtnGPBgFKDYUfAQEBAQYBAQEBHoYQgjOCaIJIgjQHhC0BBJBRiF2BTYcHhyGGMyKCAxyBUjwxgkMBAQE Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 07 Apr 2015 14:45:44 +0200 From: Nicolas Richard To: Leo Liu Subject: Re: bug#20066: 24.4; should-error and cl-assert References: Date: Tue, 07 Apr 2015 14:47:00 +0200 In-Reply-To: (Leo Liu's message of "Tue, 07 Apr 2015 15:44:45 +0800") Message-ID: <87k2xogl6j.fsf@yahoo.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20066 Cc: 20066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Leo Liu writes: > Any comments on this bug? Hi, I can't seem to reproduce : $ src/emacs --version GNU Emacs 25.0.50.1 Copyright (C) 2015 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. $ src/emacs --batch -l ert --eval '(should-error (cl-assert nil t))'; echo $? 0 $ src/emacs --batch -l ert --eval '(should-error (error "yes"))'; echo $? 0 $ src/emacs --batch -l ert --eval '(should-error nil)'; echo $? Test failed: ((should-error nil) :form nil :value nil :fail-reason "did not signal an error") 255 -- Nicolas Richard From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 07 09:09:30 2015 Received: (at 20066) by debbugs.gnu.org; 7 Apr 2015 13:09:30 +0000 Received: from localhost ([127.0.0.1]:47211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfTFx-000150-PL for submit@debbugs.gnu.org; Tue, 07 Apr 2015 09:09:29 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:62196) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YfTFv-00014s-VP for 20066@debbugs.gnu.org; Tue, 07 Apr 2015 09:09:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkMAIrWI1WkD4Xx/2dsb2JhbABchCoBAQqyFAEBAQEBAQaEAZUkAoF6AQEBAQEBfkEEg1oBBXkQCAMhJQ8BBEkTiBoBAxG2fY8GAYV2AQEBAQYBAQEBHoYQgjOCaIJIgjQHhC0BBIUQCpQagUeHB4chhjMig3E8MYJDAQEB Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 07 Apr 2015 15:09:22 +0200 From: Nicolas Richard To: Nicolas Richard Subject: Re: bug#20066: 24.4; should-error and cl-assert References: <87k2xogl6j.fsf@yahoo.fr> Date: Tue, 07 Apr 2015 15:10:38 +0200 In-Reply-To: <87k2xogl6j.fsf@yahoo.fr> (Nicolas Richard's message of "Tue, 07 Apr 2015 14:47:00 +0200") Message-ID: <87d23ggk35.fsf@yahoo.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20066 Cc: 20066@debbugs.gnu.org, Leo Liu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Nicolas Richard writes: > $ src/emacs --version > GNU Emacs 25.0.50.1 Forgot to mention I was at commit 7c691f32f78303750d29972a29dcc6754fae257a from a few days ago. Nico. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 07 22:05:19 2015 Received: (at 20066) by debbugs.gnu.org; 8 Apr 2015 02:05:19 +0000 Received: from localhost ([127.0.0.1]:48620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YffMk-0004bT-Sj for submit@debbugs.gnu.org; Tue, 07 Apr 2015 22:05:19 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:55574) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YffMj-0004bH-6K for 20066@debbugs.gnu.org; Tue, 07 Apr 2015 22:05:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMQCw4mEhQYDSSIE6IRi3UEKkEJAwECgz4Dg3AEqDs X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMQCw4mEhQYDSSIE6IRi3UEKkEJAwECgz4Dg3AEqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115665176" Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Apr 2015 22:05:11 -0400 Received: by pastel.home (Postfix, from userid 20848) id 88F381209; Tue, 7 Apr 2015 22:05:11 -0400 (EDT) From: Stefan Monnier To: Leo Liu Subject: Re: bug#20066: 24.4; should-error and cl-assert Message-ID: References: Date: Tue, 07 Apr 2015 22:05:11 -0400 In-Reply-To: (Leo Liu's message of "Tue, 07 Apr 2015 15:44:45 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20066 Cc: 20066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> 1. (should-error (error "yes")) >> 2. (should-error (cl-assert nil t)) >> Test 1 succeeds but test 2 fails. 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. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 08 00:15:55 2015 Received: (at 20066-done) by debbugs.gnu.org; 8 Apr 2015 04:15:55 +0000 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 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 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) 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) From: Leo Liu To: Stefan Monnier Subject: Re: bug#20066: 24.4; should-error and cl-assert In-Reply-To: (Stefan Monnier's message of "Tue, 07 Apr 2015 22:05:11 -0400") References: 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 Date: Wed, 08 Apr 2015 12:15:38 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20066-done Cc: 20066-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From unknown Sun Jun 22 00:11:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 May 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator