From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Proposal: make prog2 a macro Date: Fri, 7 Oct 2016 14:04:22 +0900 (JST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1475816702 13129 195.159.176.226 (7 Oct 2016 05:05:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2016 05:05:02 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: emacs-devel To: Wilfred Hughes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 07 07:04:53 2016 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 1bsNKp-0000uA-IB for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2016 07:04:39 +0200 Original-Received: from localhost ([::1]:60622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNKo-0004iS-0r for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2016 01:04:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNKh-0004iA-Oh for emacs-devel@gnu.org; Fri, 07 Oct 2016 01:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsNKd-0000tk-JE for emacs-devel@gnu.org; Fri, 07 Oct 2016 01:04:30 -0400 Original-Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:34072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNKd-0000q0-BV for emacs-devel@gnu.org; Fri, 07 Oct 2016 01:04:27 -0400 Original-Received: by mail-pf0-x232.google.com with SMTP id e6so18765959pfk.1 for ; Thu, 06 Oct 2016 22:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=z9jQ8VS+doEwrO8DCkDg3SHfiYUdp794wWrE5Oe+8v8=; b=TCJKW46h2V3ARLde6cI3sjmo9tDLK2J7gLEsqjKGhIJzn5x7qSPBB+gtz7VnPPQdg0 /9iMMl+4JZSOuCoEjs4q1FvB0L3O48gYsmpfyRmsqr7SUxcpYcnGmWaJ+y4YjiznMdSg TkNN/PBafsCcS0kWI6c2BuUYFg3bOlphkD8xQGfNeTOQpCODNwupDRaY5Zh9ZqoarcQ+ WshM3HJqhWf9MpBIn7qULv2mfJVtd4tLrvf45Ew63Z6bhGQz8/4tZr3gLvdiKSnlVHwV go4h+zHpcMEVTYlsaF+1Nkv2OYZD/VLsqfW2AgMtfj5BIMINir68/Yt4xzUrnYYxiTNf 8auA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=z9jQ8VS+doEwrO8DCkDg3SHfiYUdp794wWrE5Oe+8v8=; b=AbPi/mwbNbe79Gc8A3+VGXvOWGykOJu4hagmhBtYpXyjGXg+MtdBAPw1Fjqk4jeSL0 hpgJiMSuXuNjlkUsvJuK5+tAY63kPX+TRaXY5pGGmsSQZ66PP0iS591H0TGPBtSpWwTX manp6Ah+tqgQra5igwwBQZuSlRF90CTWypKW5eeP9a8N5ldZQyOT2QkqjvVmPWgv6uex eh3B98UEOfK3/DFHlE5NjlzbQUds050/MgeMu4RQzi7KcnWVatFdwDE681zr4Jv50Y6W uMFj84qDojl/8YHkcNrvmminO1nOLZuydbohJa8ty+gsMaKmO0afK7VvSQHQ826wqj6w Ussw== X-Gm-Message-State: AA6/9RkA2F/zYAgM15oZ3m9hFbLXB7Ftn26psAMbb+mspztmZTacRZPZtQoDm1lae1o3jQ== X-Received: by 10.98.82.209 with SMTP id g200mr2762625pfb.84.1475816665623; Thu, 06 Oct 2016 22:04:25 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id 137sm9789124pfv.26.2016.10.06.22.04.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Oct 2016 22:04:25 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::232 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:208052 Archived-At: On Fri, 7 Oct 2016, Wilfred Hughes wrote: > I was looking at a list of Emacs' special forms, and noticed that > prog2 is implemented in C. Is there any interest in moving this to a > simple macro? I don't have opinion about if this is worth or not, but i think is safer to avoid the use of backquote: prog2 could be used in an early stage of the bootstrap. Instead of: > + `(prog1 > + (progn ,form1 ,form2) > + ,@body)) Better use: (cons 'prog1 (cons (list 'progn form1 form2) body)))