From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: seq-mapn and circular lists Date: Wed, 14 Dec 2016 15:32:44 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1481758506 28977 195.159.176.226 (14 Dec 2016 23:35:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2016 23:35:06 +0000 (UTC) Cc: Plamen Tanovski To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 00:35:01 2016 Return-path: Envelope-to: geh-help-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 1cHJ4c-0006bH-9g for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2016 00:34:58 +0100 Original-Received: from localhost ([::1]:50853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHJ4g-000795-JR for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 18:35:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHJ4D-00075L-P1 for help-gnu-emacs@gnu.org; Wed, 14 Dec 2016 18:34:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHJ49-0007wa-Rf for help-gnu-emacs@gnu.org; Wed, 14 Dec 2016 18:34:33 -0500 Original-Received: from mail-qk0-f175.google.com ([209.85.220.175]:36015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHJ49-0007fl-KK for help-gnu-emacs@gnu.org; Wed, 14 Dec 2016 18:34:29 -0500 Original-Received: by mail-qk0-f175.google.com with SMTP id n21so38928472qka.3 for ; Wed, 14 Dec 2016 15:34:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=V03LU26UppZ6rXDLP1lL8JwCxs7rQoum1gxTlNG3ycc=; b=QfOk9pOzNZqdchiZUrrxrB9t80Mmufo5dsajyZN0D9qmaMvdcN30ENsUtIR5EfmPeC axVHgnpkPxvFUxCn4tWBGm1f4BM3e0W+KRJz+PvZt9KFGIJIrgMkC51aQG9rUA/pgOXe EYwzqdzwEVe0jkma2tkvUvGEG/UNwKSRaDkx9aVWM42IkS8fpG+zQZgopjsDNuIKTRFl obLZWwNviTfphecOHh23Ef64+eb4UKIdrBRpqxczlH9ew+12rexpr0MLnUy6E5En/s65 wSeydtKjsWaBnujef9lrsMHTzHJbBaA4yPiJmNxTQRmXoPNP0FYT0rgTkOki/+CGxjlK nnKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=V03LU26UppZ6rXDLP1lL8JwCxs7rQoum1gxTlNG3ycc=; b=q+G1YzY3efLY8cJN1WFA/BmGHezjQ9yyR/LP64P7v+DR5pYybijggU+HKPzq6XPOtJ 9yym/Bo7SkHVwzI+dXM/yYoj3vvZw8UnwuFPXw3vICLSvPnw6Is33wifB/QSb57CxiFc 3utIwADo5ayP1+0/e1RjyjyM/7PS7psJ3eYPyvBwJj57u+E7O3i0SaLOaM36qxJN7Oud XSQCP2s9ZwTcxug9cO0EheIMmGLJehb7+cukgPI4vPKFioC1uXvdIYzfLhMCS/lU8Te0 KA38D4NToYjKJ8Zr+JLTET+lStXNMurwPb2pvTrDSrsPsInQdeyVzayZblnvv0JkiZqi 3vJg== X-Gm-Message-State: AKaTC02Gu67LCLyFcP6C9DhqoAo9qMOMS2msY4+BMuQ+mj8LIpp9PFrF5PDfWFHzoaQo2TvHD13LduBAdn0A6Q== X-Received: by 10.55.168.139 with SMTP id r133mr99554547qke.160.1481758384531; Wed, 14 Dec 2016 15:33:04 -0800 (PST) Original-Received: by 10.200.61.130 with HTTP; Wed, 14 Dec 2016 15:32:44 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111957 Archived-At: Plamen Tanovski wrote: > Hi, > > while cl-map works fine on circular lists, seq-mapn just freezes > > (let ((l1 '#1=(1 . #1#))) > ; (map 'list #'+ '(3 4 5 7) l1) > (seq-mapn #'+ '(3 4 5 7) l1)) > > Making the circular list with setcdr or nconc doesn't help. Any > suggestions? Indeed, seq-map and seq-mapn do not attempt to identify or handle circular lists. My advice would be to avoid circular lists, or stick to `cl-map' if you must accommodate them :) Since seq.el is developed as part of Emacs, you can use `M-x report-emacs-bug' to submit a feature request. John