From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master 68bcf86 2/4: package/names: :group can be given a list Date: Mon, 12 Jan 2015 19:13:37 +0100 Message-ID: <87ppajj29a.fsf@fencepost.gnu.org> References: <20150112112953.11913.47601@vcs.savannah.gnu.org> <871tn0yo6j.fsf@uwakimon.sk.tsukuba.ac.jp> <87a91om0dv.fsf@yahoo.fr> <87zj9nykjk.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421086451 22904 80.91.229.3 (12 Jan 2015 18:14:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2015 18:14:11 +0000 (UTC) Cc: Nicolas Richard , Stefan Monnier , Artur Malabarba , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 12 19:14:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAjV6-0001dw-V8 for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 19:14:05 +0100 Original-Received: from localhost ([::1]:35852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjV5-00009Z-SW for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2015 13:14:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjUt-00009I-DH for emacs-devel@gnu.org; Mon, 12 Jan 2015 13:13:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAjUs-0001cI-3f for emacs-devel@gnu.org; Mon, 12 Jan 2015 13:13:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjUs-0001cE-0V for emacs-devel@gnu.org; Mon, 12 Jan 2015 13:13:50 -0500 Original-Received: from localhost ([127.0.0.1]:53311 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAjUq-0004H6-FU; Mon, 12 Jan 2015 13:13:48 -0500 Original-Received: by lola (Postfix, from userid 1000) id DD713E0692; Mon, 12 Jan 2015 19:13:37 +0100 (CET) In-Reply-To: <87zj9nykjk.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Tue, 13 Jan 2015 02:29:35 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181187 Archived-At: "Stephen J. Turnbull" writes: > Nicolas Richard writes: > > "Stephen J. Turnbull" writes: > > > > > Stefan Monnier writes: > > > > > > > Just like we don't like '(lambda ...), we don't like '(... (lambda ...) > > > > ...) either (tho it's still found at many places in Emacs's source code > > > > since you can't "grep" for it quite as easily). Better use > > > > `(... ,(lambda ...) ...) instead, so the lambda is byte-compiled. > > > > > > Doesn't Emacs support #', and wouldn't that be more readable? > > > > I don't think it will help : > > `(... ,#'(lambda ...) ...) doesn't look more readable and > > #'(... (lambda ...) ...) would be wrong > > I'm suggesting > > '(... #'(lambda ...) ...) > > to tell the byte-compiler that the lambda expression is a function, > and can be replaced by an equivalent function (ie, the byte-compiled > version). That's equivalent to '(... (function (lambda ...)) ...) with (function (lambda ...)) being a quoted list rather than a function. Nothing to do here for the bytecompiler. -- David Kastrup