From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Replace trivial pcase occurrences in the Emacs sources Date: Wed, 31 Oct 2018 18:33:43 +0200 Message-ID: <566924c3-b34e-bf0b-3f3e-b6b82ad44b60@yandex.ru> References: <83tvlcsnee.fsf@gnu.org> <86mur137n8.fsf@gmail.com> <20181029130132.GB4195@ACM> <20181029134722.GC4195@ACM> <87lg6gifnb.fsf@web.de> <87muqwxs7m.fsf@ericabrahamsen.net> <83h8h3jlyd.fsf@gnu.org> <8b897e43-679b-d38c-e185-0efe19c09342@yandex.ru> <83y3aei08p.fsf@gnu.org> <83o9bahz6i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1541003528 22120 195.159.176.226 (31 Oct 2018 16:32:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 16:32:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Thunderbird/64.0 Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 17:32:04 2018 Return-path: Envelope-to: ged-emacs-devel@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 1gHtPY-0005e4-0C for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2018 17:32:04 +0100 Original-Received: from localhost ([::1]:60659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHtRe-0008On-46 for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2018 12:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHtRT-0008OX-GA for emacs-devel@gnu.org; Wed, 31 Oct 2018 12:34:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHtRL-0004DS-2K for emacs-devel@gnu.org; Wed, 31 Oct 2018 12:34:00 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:36814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHtRF-00049b-OV; Wed, 31 Oct 2018 12:33:50 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id x2-v6so14188936eds.3; Wed, 31 Oct 2018 09:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OXeM9pFnx/mzSu0foeXb/HFfbht27+gcfT4qpLcWKDY=; b=OsV9Q7B+qSa97VbDLKdxs8gDNasQdmcxkfoM/v+zoJ4LjzLwNgzB7TUpHv8kY2oGTl C2KBS6Rdlksj/hzZyNw9oMrastNU8hZsrxDt+ptpK/nVHdyVW7chvS2udal10hVmCAQm dNGJfHT/+MnGxvWgpUoaYHzOTHRWyDyaZDB1jKLd+VLOiHtjERIbbz4U7rUFYSLSziaj R2t9GBE2qjZPVghRGVXaiDq5gmHHv2BH+2sE69pENIaiW6oAG03IBaTqJYy78K5qXkgp Gg3159XOKA46WuJHxagA3oMEXmq7ADaAomlX7VofEjNCxyPGbhNDePCZ++gzwdwi70Sz KXRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OXeM9pFnx/mzSu0foeXb/HFfbht27+gcfT4qpLcWKDY=; b=WeE6jZZnGGa6fLvvLYwIEWEUG2zChO9XS66SGNeWaILFGvnhacp3T+HuIzTxdfS9ty +qZTC1Mn/hagLP6gu3wQ40N40eloTOFqEgxL6vvv6ys/lor5IYTuVUynPTevR4MQg87t 33w1nN4H2BtKbqIgTGV1Ll288lrTfb+HgSbB/PAMKT08ZTDrKjl7oq+Y4VAY0Nz2ic9S UYWepDUMqi/Yublqmk3zLW6ytEUyowon3g3SjrG6iaNnJ6SPR2qfyh0vDm3JLwWELt40 3DIHg7A3Er75RLp81F75OrbxHmDM5s5Q2ZD3Ae+QxwFY9VNGzsq16B1wStciusIsd1GA P/9w== X-Gm-Message-State: AGRZ1gIhXhGQ9igrSdUBaRZGmwA5KVA5EuLjWQRbAvn0wueh1W2Z6pvd l/5aEvloE1vMTNlhu5xP/xZD+7MX X-Google-Smtp-Source: AJdET5cDEufgPrFcNze0uca0+4CtE+3UqKz5wMrjgZDCKn8jOOxJd5D0ETGe4riJS9/sdYuTmEsk2A== X-Received: by 2002:a17:906:359b:: with SMTP id o27-v6mr2072718ejb.14.1541003626155; Wed, 31 Oct 2018 09:33:46 -0700 (PDT) Original-Received: from [192.168.0.195] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id c24-v6sm8447483ede.73.2018.10.31.09.33.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 09:33:45 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::531 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:230886 Archived-At: On 31.10.2018 18:27, Dmitry Gutov wrote: > On 31.10.2018 18:13, Eli Zaretskii wrote: > >> Ah, the elements that are assigned by destructuring?  I indeed hoped >> we could identify in some way the patterns which satisfy that >> condition.  I didn't give up yet. > > Yeah, so we could say a pattern is a "destructuring" one if it > introduces new bindings, so to speak. > > Not sure if it will help with the manual entries, though. ...after all, a destructuring construct like pcase-dolist or pcase-let doesn't *have to* be used with destructuring patterns as defined above. It would simply be pointless to do otherwise, most of the time, but they can be used with simple ones, too.