From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#25280: 25.1; define-inline doesn't support &rest Date: Thu, 29 Dec 2016 10:00:11 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1482976873 23811 195.159.176.226 (29 Dec 2016 02:01:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2016 02:01:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (macOS 10.12.2) Cc: 25280@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 03:01:09 2016 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 1cMQ1j-0005LU-QR for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2016 03:01:08 +0100 Original-Received: from localhost ([::1]:33429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMQ1o-0004Qr-Pk for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Dec 2016 21:01:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMQ1h-0004QD-9p for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 21:01:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMQ1e-0007LE-9B for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 21:01:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMQ1e-0007L6-6F for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 21:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cMQ1d-0004zS-Vy for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2016 21:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2016 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25280 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25280-submit@debbugs.gnu.org id=B25280.148297682519127 (code B ref 25280); Thu, 29 Dec 2016 02:01:01 +0000 Original-Received: (at 25280) by debbugs.gnu.org; 29 Dec 2016 02:00:25 +0000 Original-Received: from localhost ([127.0.0.1]:58378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMQ12-0004yQ-VJ for submit@debbugs.gnu.org; Wed, 28 Dec 2016 21:00:25 -0500 Original-Received: from mail-pg0-f66.google.com ([74.125.83.66]:35917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMQ10-0004yB-Jq for 25280@debbugs.gnu.org; Wed, 28 Dec 2016 21:00:23 -0500 Original-Received: by mail-pg0-f66.google.com with SMTP id n5so17312197pgh.3 for <25280@debbugs.gnu.org>; Wed, 28 Dec 2016 18:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=JTrhoZwxEzRgDGaiZEagCcg8ZguM5OqJnpiagR17ul0=; b=tS1B/f8N26zMkCR11kEbwISya+slKoqcJv+QxKryqEXWGEBjpgWfJFo5wAr/cngbWN GSE4WonTi5eeGl2AsTbbD40vUZ1+9vBKv/PgxT4eFEuV1EB38F2d0Hv4qqc3sG3eOFIn zhv7Jc8gKa8kPmDwEVvSUm8t6n99cgcEFKIVMg/kP6ZImJoS6fpyykvLe/2JOWCNkg6B O7EKR8N/hfCDkEy/71xOgRIz0LXfBF4tqYDt+6TS1REpv3I2Ux7YF/oiR5GakQqKhjkM hmN35g7JXhCzbNGyfs/k5Q4p99A7ZSGBCxu8r7aUUHScARS0UgvM5GpWapu60dw0SBhU giDw== 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:face:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=JTrhoZwxEzRgDGaiZEagCcg8ZguM5OqJnpiagR17ul0=; b=UPvTLtlHS3qB6OKnojoZIi2nftjLsBNi9HRRcfVGFB+Y4PEQptoSTzTIwznhKX9yyP 3ys8CyA5mEHMch2hLVQQc5Pzo/V3S6PpTZ8LEcmZ3SGP6feQ1DRCito7l8GwztjrTA6f 2pie8y4YXuGgHkLG1SPYO2LNVpZTKOMpDSbIDuegS64vF94LRnoHLJFFXZyWQbpgcYiq HMAR5eCQdzBs5iGxEmJE0qZT/vgw9TfgvUZbyfWWagcb4B3FR/BB/sOlUQYXW9yjTQdw UdogZUuTeoN4OpLCHC3U1KtUrwW+LVjH/jlWM+7LAsdOypjLR0TcobKzi4PyK5NHu5qA bULw== X-Gm-Message-State: AIkVDXJgLDBKeaaR1YZmMVfZUI/1GT394orppYnKJJyDqwlLZ03cvaHuDcKKKSz4Lu9Eqw== X-Received: by 10.98.72.81 with SMTP id v78mr37052415pfa.104.1482976816428; Wed, 28 Dec 2016 18:00:16 -0800 (PST) Original-Received: from Zeuss-MacBook-Air.local ([112.208.1.100]) by smtp.gmail.com with ESMTPSA id d1sm99946927pfb.76.2016.12.28.18.00.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Dec 2016 18:00:15 -0800 (PST) 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 In-Reply-To: (Stefan Monnier's message of "Tue, 27 Dec 2016 12:42:44 -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:127534 Archived-At: On 2016-12-27 12:42 -0500, Stefan Monnier wrote: > OTOH it's not as efficient as we'd like. The better way to write it is: > > (define-inline sm-foo (&rest xs) > (inline-letevals xs (inline-quote (vector . ,xs)))) I misunderstood no support for `,@' implied `. ,'. Good to know it is not the case. My experiment seems to suggest that inline-letevals is only needed for variables that are eval'd more than once. Is that understanding correct? I also get compiler warning:=20 In rest: t2.el:4:38:Warning: reference to free variable =A1=AEvector=A1=AF where t2.el has the contents: ;;; -*- lexical-binding: t -*- (define-inline rest (&rest xs) (inline-letevals xs (inline-quote (vector . ,xs)))) Thanks, Leo