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: Can function return drop some elements from list? Bug or feature? Date: Fri, 16 Sep 2016 15:23:30 +0200 Message-ID: <87d1k4x9kd.fsf@linux-m68k.org> References: <07F05709-0C06-4841-9E3C-175C5092608A@stunpix.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1474032287 14821 195.159.176.226 (16 Sep 2016 13:24:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2016 13:24:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: emacs-devel@gnu.org To: Sasha Shashkevich Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 15:24:37 2016 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 1bkt7r-0000eM-7W for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2016 15:24:19 +0200 Original-Received: from localhost ([::1]:40526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkt7p-0004bU-Be for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2016 09:24:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkt7G-0004b0-GM for emacs-devel@gnu.org; Fri, 16 Sep 2016 09:23:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkt7A-0007Dp-GT for emacs-devel@gnu.org; Fri, 16 Sep 2016 09:23:41 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:58991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkt7A-0007Bx-9V for emacs-devel@gnu.org; Fri, 16 Sep 2016 09:23:36 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3sbGFK435Mz3hjST; Fri, 16 Sep 2016 15:23:33 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3sbGFK2qHPzvlCb; Fri, 16 Sep 2016 15:23:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id ttv5WJnvq1Oo; Fri, 16 Sep 2016 15:23:31 +0200 (CEST) X-Auth-Info: bLTiO5LMYBsMP6rT63GKKtpUAblaR0eswRUhWsPqGJRVukpAVtrMSaO1/Ii+hh0T Original-Received: from igel.home (ppp-88-217-3-62.dynamic.mnet-online.de [88.217.3.62]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 16 Sep 2016 15:23:31 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id E22C32C3F4F; Fri, 16 Sep 2016 15:23:30 +0200 (CEST) X-Yow: Someone is DROOLING on my collar!! In-Reply-To: <07F05709-0C06-4841-9E3C-175C5092608A@stunpix.com> (Sasha Shashkevich's message of "Fri, 16 Sep 2016 14:30:09 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:207463 Archived-At: On Sep 16 2016, Sasha Shashkevich wrote: > I'm not elisp expert, so question to experts: this is a elisp bug or > normal behavior (and irony-mode bug), can be list somehow cut on return > from function? You compute the return value from the loop variable e, which changes each round through the loop. 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."