From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29799: 24.5; cl-loop guard clause missing Date: Mon, 01 Jan 2018 17:58:40 -0500 Message-ID: <871sj9tcdb.fsf@users.sourceforge.net> References: <87d138beur.fsf@gmail.com> <874lo5tfpl.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514847440 24243 195.159.176.226 (1 Jan 2018 22:57:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2018 22:57:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29799@debbugs.gnu.org, monnier@iro.umontreal.ca To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 01 23:57:16 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW914-0005ez-7B for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 23:57:10 +0100 Original-Received: from localhost ([::1]:46958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW933-0001EE-E2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 17:59:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW92w-0001DP-VH for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 17:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eW92s-0007vW-11 for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 17:59:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51603) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eW92r-0007v7-Te for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 17:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eW92r-0006li-I8 for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 17:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jan 2018 22:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29799 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29799-submit@debbugs.gnu.org id=B29799.151484753026002 (code B ref 29799); Mon, 01 Jan 2018 22:59:01 +0000 Original-Received: (at 29799) by debbugs.gnu.org; 1 Jan 2018 22:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:60284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW92g-0006lJ-Ge for submit@debbugs.gnu.org; Mon, 01 Jan 2018 17:58:50 -0500 Original-Received: from mail-io0-f176.google.com ([209.85.223.176]:39061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW92e-0006l6-FI for 29799@debbugs.gnu.org; Mon, 01 Jan 2018 17:58:48 -0500 Original-Received: by mail-io0-f176.google.com with SMTP id g70so34826709ioj.6 for <29799@debbugs.gnu.org>; Mon, 01 Jan 2018 14:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fJsRm0ug3tnb7CVI+3m011WdfsxonTEDCqW/X3GLbwQ=; b=NiLAKoyaOjcE9x5fRgp5rNhKhDCMWIy0LjiRIkPaNebzFSRP4WPM1Pwv8h2fChiMG4 SvcB+hK3Z/88nBsOgZTbTbek+DWfuYcz6XV4h3VnvLl9VvFfgw2nOWE2MhOL6CC2139g anOlSw80p+TS+zM+eluiM7YEgjiIZaeFJgw2RRTmDL4Yx6oeUUBvP2QtM/iZcx1QGcSU t3Gaxp3vwZkBAdX5z+xna1IPy1JTlZ/T6SSf4h6+bh9ZeVUQyJEX8mVqidokt1hs40gy Fm5W39/K73hDqGz/cHrt9HUeHBdANGADA80bIeWSGCK4DzG06ojIM9hewFeMP/WawmNV JGOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=fJsRm0ug3tnb7CVI+3m011WdfsxonTEDCqW/X3GLbwQ=; b=kLYQqj3L0D7stQs6OdVftGdClkloLpFTuDq0X/eSs9B3dcTvWkUl4BBckOdabEm0JQ fl6Cf2CPvHzcIvF1z9E0z5msb4BpZOJV/9jUBmcJ6QU4KZCdaO0BEO/J3fQoxy9GgqTT 7rReGQMZYYka7FOqgpCq4Qsb3wic24PTCnyTuFrKmdoFXWB9OKh7ghxQqadubzAKjune H3xMCUtq/AMdV49nYGLB8ZQevc1DOw5sjGYTZSOiwTbsEdTdyzFFF3pWtli2MFl/znQq IcxhkMdMHit2bbLpjQ/0omtZOFLBVRA8VdnxmaR1JuB8+MEKwvo89RlEZmL1VzU1t2bv I68w== X-Gm-Message-State: AKGB3mIdTjqrMepBdIk+/ICZg+zzyY8i840dsyI0xaplBLpyWALRJaSb JiCi3NklkjbnHI9mrcsmBnI= X-Google-Smtp-Source: ACJfBoul2atp1n60isjYDTt8WAnt+bJjQoKSdxFLmdlsyNR4r+VNP+yKR4sj4oPxQB4o+6dA6QRsZw== X-Received: by 10.107.46.97 with SMTP id i94mr21542981ioo.179.1514847522757; Mon, 01 Jan 2018 14:58:42 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 139sm4677173itm.2.2018.01.01.14.58.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jan 2018 14:58:42 -0800 (PST) In-Reply-To: <874lo5tfpl.fsf@users.sourceforge.net> (Noam Postavsky's message of "Mon, 01 Jan 2018 16:46:30 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141702 Archived-At: Noam Postavsky writes: > I don't understand why the "then" step is put at the of the loop. The > following patch (commenting out the "ands" branch) avoids doing that, > and fixes this bug. But presumably there is some reason for having this > code in the first place? I guess some more complicated example would be > needed to show why this naive fix won't work. Oh, 'make -C test cl-macs-tests' provides some. And I see we've in fact been over this naive solution before: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6583#28