From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26068: [PATCH] bug in generator function with pcase Date: Sat, 01 Apr 2017 22:08:57 +0900 Message-ID: <87efxcp95i.fsf@calancha-pc> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491052223 14796 195.159.176.226 (1 Apr 2017 13:10:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Apr 2017 13:10:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Mark Oteiza , 26068@debbugs.gnu.org, Stefan Monnier , tino.calancha@gmail.com To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 01 15:10:20 2017 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 1cuIn8-00027t-5Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 15:10:06 +0200 Original-Received: from localhost ([::1]:51291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuInE-0006Y3-6b for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 09:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuIn8-0006WZ-8h for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 09:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuIn4-0002cj-8G for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 09:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuIn4-0002cW-4y for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 09:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cuIn4-0006zH-1J for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 09:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2017 13:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26068 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26068-submit@debbugs.gnu.org id=B26068.149105214926794 (code B ref 26068); Sat, 01 Apr 2017 13:10:01 +0000 Original-Received: (at 26068) by debbugs.gnu.org; 1 Apr 2017 13:09:09 +0000 Original-Received: from localhost ([127.0.0.1]:55179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuImD-0006y4-AK for submit@debbugs.gnu.org; Sat, 01 Apr 2017 09:09:09 -0400 Original-Received: from mail-pg0-f66.google.com ([74.125.83.66]:35835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuImA-0006xe-Pt for 26068@debbugs.gnu.org; Sat, 01 Apr 2017 09:09:07 -0400 Original-Received: by mail-pg0-f66.google.com with SMTP id g2so22107602pge.2 for <26068@debbugs.gnu.org>; Sat, 01 Apr 2017 06:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xjEEnJDmhUsqMZunlJqdVmYc32fSxUxZpLPowvg4xck=; b=DerXWPtPedEBF16n0/UEPKn6ka3vMiDEazA+mLJLoWekidFCK+TEYxedhydaUpMMrR jACNI4nOUZ84rlcZ2C0jYPKvnVKsdNPOoEs8v2OvfZ/5EzIzFvIHS5IyY5+0XVJK/mDw 6QEFaSJ2RIs5KSCjZOSxf8LA+utAH8gm2vVOdFnSo3DDgSK9usJkvmCscFOPufnMMjj/ CvPMSQzFVXJeDPH1TUqg5pdbiOHlHWnXfRwrB6LfmvzQAiRMMLGJYvzb+tCFvhSBGu0y kWIu5JCh/5qM2Viyk2yX2+6GDBdXjWurSlRAoqZd1pqm0PRXTqISpFneGQNGLjyUb7yy rvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xjEEnJDmhUsqMZunlJqdVmYc32fSxUxZpLPowvg4xck=; b=anRrrSBNDpM3hJcbrKPf6OQ8PBY667PJCXjJZQFYKevo0pXhGJf0OFRAa0xQN/1z5A 3mcl0MXVsmIrmbI6aPULTCkoJ8y2u9wMgviiHanS4bBhMv2iJDAEDzVtkUGhVDLLTTMX R7QRVMcFDLpa3XMwcQAu3NdLY0fq5i3NOJtVl1vbKfmA/Hjbj+tZj/j7ZHRNuReuX2nw 1EZdISMF6rGg/g/FIuRfS/N4BNKmUmqUiq4wF93/VnXvK1AzAdxiTG8BLzrtSFm5OOku cAoxF6zyh3L2AAVneJVtjWSCHf8lMANptzfroKY0SJUlPdopMJwDwA2Opqs7EfQbiQVN /xFw== X-Gm-Message-State: AFeK/H10kJIHUcQD+ni2Ca6kAFSmFCqHbi9clpn8BN3HifHcyi7bJv4FSYQ2ISvOIDFcfg== X-Received: by 10.98.160.194 with SMTP id p63mr7418343pfl.72.1491052141155; Sat, 01 Apr 2017 06:09:01 -0700 (PDT) Original-Received: from calancha-pc (234.204.100.220.dy.bbexcite.jp. [220.100.204.234]) by smtp.gmail.com with ESMTPSA id a21sm16222317pfc.36.2017.04.01.06.08.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Apr 2017 06:09:00 -0700 (PDT) In-Reply-To: (Paul Pogonyshev's message of "Sun, 12 Mar 2017 09:51:23 +0100") 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:131170 Archived-At: Paul Pogonyshev writes: > To reproduce: > > (iter-next (funcall (iter-lambda () (pcase (list 1 2) > (`(,a ,b) (iter-yield (+ a b))))))) > > Patch is attached. I have no idea if it affects something else, but > matching symbols with `eq' on their names (`eq' on strings?!) seems > outright wrong to me. It looks also weird to me. It seems written on purpose in order to not expand fuction names in `cl-symbol-macrolet'. Stefan has added a new test 2 days ago which fails after your patch: * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet)