From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.devel Subject: Re: master 92df7cd923 1/2: Add 'seq-keep' Date: Thu, 06 Oct 2022 14:48:22 +0200 Message-ID: <86fsg1i0dl.fsf@gnu.org> References: <166491278711.16632.4424287381002829720@vcs2.savannah.gnu.org> <20221004194628.0CB36C0CD98@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35573"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: Lars Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 06 15:11:26 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogQer-00094h-9i for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 15:11:25 +0200 Original-Received: from localhost ([::1]:48606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogQeq-0000jQ-2t for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 09:11:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogQIv-0001Uz-K6 for emacs-devel@gnu.org; Thu, 06 Oct 2022 08:48:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogQIv-00053B-BZ; Thu, 06 Oct 2022 08:48:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=7vdwmlJRYxhTSMEI7tSPzKuIuz36Dk+txVA33Nxo6iA=; b=PhtBsNekWaHOeFJ8eFvN +kWsVTv0OzmJbvsq77gy2lH7eYbIdX5e0A4n4eEX3AdUkm5E1NwGZGXsaqMphQE7A33TVrS282Tdj ra+uGuDtwNw7SXOA4nqtQnjxWD1R/C6iIYizf8GJ8wccMTxWPPxR78e83yIGQOufmQkkhcQBzaBZn Wov4KWM8xYPckH6HwbaeP8wUlpBwvAdPkgtHURW/WA1EJy5I4b8ongmj9EClIcAFgjI/zdPPn/PPc yNA2cOuhyWs6q2vLoTBHUjgA5eCEt4Qa6PUqtNYCmiloWu+hA1nYQNb86VgoXdN1zOY/138bQclUR tezfcX4+j7BknA==; Original-Received: from pd9fb7965.dip0.t-ipconnect.de ([217.251.121.101]:53662 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogQIr-0006zQ-Eq; Thu, 06 Oct 2022 08:48:41 -0400 In-Reply-To: <20221004194628.0CB36C0CD98@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Tue, 4 Oct 2022 15:46:27 -0400 (EDT)") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297099 Archived-At: Lars Ingebrigtsen writes: > branch: master > commit 92df7cd923d0e870f08484cec06c2726be30882b > Author: Lars Ingebrigtsen > Commit: Lars Ingebrigtsen > > Add 'seq-keep' > > * doc/lispref/sequences.texi (Sequence Functions): Document it. > * lisp/emacs-lisp/seq.el (seq-keep): New function (bug#58278). > > diff --git a/etc/NEWS b/etc/NEWS > index eb5d3afbd8..06e91f5d71 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -3150,6 +3150,11 @@ These can be used for buttons in buffers and the like. See the > This returns a list of the (zero-based) indices of elements matching a > given predicate in the specified sequence. > > ++++ > +** New function 'seq-keep'. > +This is like 'seq-map', but removes all non-nil results from the ^^^ Is this possibly a typo? > +returned list. Best, Arash