From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] sequence manipulation functions Date: Fri, 21 Nov 2014 14:28:34 +0100 Message-ID: <87sihcwum5.fsf@gmail.com> References: <87oasmmwzt.fsf@gmail.com> <87bnolslph.fsf@gmail.com> <87zjc2dic0.fsf@gmail.com> <87ioimtzu0.fsf@gmail.com> <87lhngcnrc.fsf@gmail.com> <87k330cj3u.fsf@gmail.com> <87ioikcf39.fsf@gmail.com> <87h9y4c93e.fsf@gmail.com> <87y4r4wwtx.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416577026 12315 80.91.229.3 (21 Nov 2014 13:37:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 13:37:06 +0000 (UTC) Cc: Bozhidar Batsov , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 21 14:37:00 2014 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 1XroOR-0002nN-OT for ged-emacs-devel@m.gmane.org; Fri, 21 Nov 2014 14:36:59 +0100 Original-Received: from localhost ([::1]:40650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XroOR-0000ud-9g for ged-emacs-devel@m.gmane.org; Fri, 21 Nov 2014 08:36:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XroOJ-0000uM-Iw for emacs-devel@gnu.org; Fri, 21 Nov 2014 08:36:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XroOE-0007Oc-Tn for emacs-devel@gnu.org; Fri, 21 Nov 2014 08:36:51 -0500 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:64701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XroOE-0007OW-MN for emacs-devel@gnu.org; Fri, 21 Nov 2014 08:36:46 -0500 Original-Received: by mail-la0-f46.google.com with SMTP id gd6so4290391lab.33 for ; Fri, 21 Nov 2014 05:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=Sim3bw7JQ6pdDmKCw5OVg0D4AkxvcLOe/MmrQGIrYck=; b=B78+6Tfy8XKlGenCVecgZP0n0GnDGeCl1NpmFVASACdrDBQ4Ii+ICVh98rgsDppNcQ 1pu+vEzoFmxom/3xg+7NisjJ3ekbV9Rdb4f0JE+T9D0PrnNjTiHvIg23hM3LlzoBc3B0 OZtfJ+IFIJZz9UpGYNDNdzw7k5Qx6XYGyvNMlOqbzgeT4Oc5ElJF8zzAD19TcTB9I7rY whGIeg+gbkxiOpPwwYcY7tSn8Zc1wXnH8Y/V99mo1Es/nw/NECpePyd6WzUSdH/bD5+/ ZqeN/kAIYlwnJOZ4TsJjncaCBmOu8GJaxrv1s0/RUflVN9/IUJb7gcurZnoBf8n1BH64 Yg2A== X-Received: by 10.152.20.193 with SMTP id p1mr4572391lae.35.1416576517700; Fri, 21 Nov 2014 05:28:37 -0800 (PST) Original-Received: from blueberry ([31.211.216.84]) by mx.google.com with ESMTPSA id s7sm943927lal.28.2014.11.21.05.28.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2014 05:28:36 -0800 (PST) User-agent: mu4e 0.9.9.6pre3; emacs 24.3.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e 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:177943 Archived-At: Stefan Monnier writes: >> The macro could use to "dolist" if the sequence is a list. > > But you'd then duplicate the code of the body, which could be > problematic, especially with nested seq-doseq loops. Oh, right! Another way would be to use a function, but I tried to avoid that. Do you have a better idea in mind? Nico -- Nicolas Petton http://nicolas-petton.fr