From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: I'd like to marry while and mapcar... Date: Fri, 06 Feb 2015 15:36:10 +0200 Message-ID: <83386jduwl.fsf@gnu.org> References: <87vbjfdwq7.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423229798 21132 80.91.229.3 (6 Feb 2015 13:36:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 13:36:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 06 14:36:37 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YJj5G-0007dk-3l for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 14:36:34 +0100 Original-Received: from localhost ([::1]:48315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJj5A-0002E0-Iz for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 08:36:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJj4z-0002Dt-Km for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:36:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJj4w-0001HS-Fa for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:36:17 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:42359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJj4w-0001HL-7U for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:36:14 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NJC00F00QUN7800@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 15:31:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJC007GNQVZRW60@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 15:31:11 +0200 (IST) In-reply-to: <87vbjfdwq7.fsf@wmi.amu.edu.pl> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102531 Archived-At: > From: Marcin Borkowski > Date: Fri, 06 Feb 2015 13:56:48 +0100 > > What I'd need is kind of a marriage of while and mapcar: I'd like to run > some function until it returns nil and make a list of all results it > gives back until then. Can't you use 'throw' from within the function called by mapcar?