From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add new lisp function length= with bytecode support Date: Tue, 28 Feb 2017 10:24:40 +0100 Message-ID: <87shmy652f.fsf@linux-m68k.org> References: <64Kl8OYdaKer-3Ey7GHVD9He6bX8yYHaS_NjEwp7Wqc4Zb7xu8IQV3ExvjCLKlBWHVVr_HNUhd55i_BVXNHnpxjnXc6hPgWvWkc3bIO8e7s=@protonmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488273896 27187 195.159.176.226 (28 Feb 2017 09:24:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2017 09:24:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: "emacs-devel@gnu.org" To: Gdobbins Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 28 10:24:51 2017 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 1cie1a-0006Si-LI for ged-emacs-devel@m.gmane.org; Tue, 28 Feb 2017 10:24:50 +0100 Original-Received: from localhost ([::1]:59658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cie1g-0002Sz-Ed for ged-emacs-devel@m.gmane.org; Tue, 28 Feb 2017 04:24:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cie1Z-0002Sh-Ri for emacs-devel@gnu.org; Tue, 28 Feb 2017 04:24:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cie1V-0007T5-St for emacs-devel@gnu.org; Tue, 28 Feb 2017 04:24:49 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:36042) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cie1V-0007Sg-MZ for emacs-devel@gnu.org; Tue, 28 Feb 2017 04:24:45 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3vXY7Z10trz3hjj0; Tue, 28 Feb 2017 10:24:41 +0100 (CET) Original-Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3vXY7Y62rjzvkVL; Tue, 28 Feb 2017 10:24:41 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id E1OGTGd4OQzG; Tue, 28 Feb 2017 10:24:41 +0100 (CET) X-Auth-Info: zeGErBoK10JHxNrqzcHjtNe3ock2j52kq3WUCRbErQpm4FuOeY/S4Bf22DhhIcJp Original-Received: from igel.home (ppp-88-217-14-192.dynamic.mnet-online.de [88.217.14.192]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 28 Feb 2017 10:24:40 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 39D8B2C0D36; Tue, 28 Feb 2017 10:24:40 +0100 (CET) X-Yow: In Newark the laundromats are open 24 hours a day! In-Reply-To: <64Kl8OYdaKer-3Ey7GHVD9He6bX8yYHaS_NjEwp7Wqc4Zb7xu8IQV3ExvjCLKlBWHVVr_HNUhd55i_BVXNHnpxjnXc6hPgWvWkc3bIO8e7s=@protonmail.com> (gdobbins@protonmail.com's message of "Sun, 26 Feb 2017 17:04:26 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 212.18.0.9 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:212641 Archived-At: On Feb 26 2017, Gdobbins wrote: > --- a/src/fns.c > +++ b/src/fns.c > @@ -137,6 +137,109 @@ which is at least the number of distinct elements. */) > return make_fixnum_or_float (len); > } > > +DEFUN ("length=", Flength_eqlsign, Slength_eqlsign, 1, MANY, 0, > + doc: /* Each element of SEQUENCES may be any type accepted by The first line of the docstring should be a full sentence, and describe the function's purpose. Also, don't refer to the function arguments as an element of the &rest variable, that could be interpreted as if the function takes a single list as argument. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."