From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 17:30:28 2022 Received: (at submit) by debbugs.gnu.org; 3 Oct 2022 21:30:28 +0000 Received: from localhost ([127.0.0.1]:51823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofT1A-0004MR-00 for submit@debbugs.gnu.org; Mon, 03 Oct 2022 17:30:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:59756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofT18-0004MF-0a for submit@debbugs.gnu.org; Mon, 03 Oct 2022 17:30:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofT17-0006oZ-K7 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 17:30:25 -0400 Received: from mail.hostpark.net ([212.243.197.30]:46498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofT0z-0005pw-Vi for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 17:30:23 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id A1C2116586 for ; Mon, 3 Oct 2022 23:30:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received; s=sel2011a; t= 1664832613; bh=SC27abI5fW/XckMwRK1NiyrhiJ7/5kVEJ1xzCprwYIc=; b=X I9K+zrZ7uoPC+E+BolWvmWVkh/+8rmI/86ATuCvIDl2MJQE5866aSGzngB3pQMNc f3UH3bLPBLRBq/RZJ/7BOrAYrSoXzGX1qmOt26QQaq7Ti3jknRYiKpY4vjrsNdli dYyCPlGW+50GCP5PcUw831OWu4S2qkzvgcK2FvOLZk= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id tbUb8xIAv3co for ; Mon, 3 Oct 2022 23:30:13 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 76FE4165FF for ; Mon, 3 Oct 2022 23:30:13 +0200 (CEST) From: Jonas Bernoulli To: bug-gnu-emacs@gnu.org Subject: Add new function seq-keep Date: Mon, 03 Oct 2022 23:30:13 +0200 Message-ID: <87y1twtx22.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) While I still appreciate the `dash' package, I try to avoid it in a package when all or most of its used `dash' functions and macros, can be replaced with equivalent functions/macros from `seq', `cl-lib' or other parts of Emacs. Unfortunately I cannot find a replacement for `-keep', which I have been using a lot. I propose that we add something like: (cl-defgeneric seq-keep (pred sequence) "Return a list of all non-nil results of (PRED element) for elements in SEQUENCE." (delq nil (seq-map (lambda (elt) (funcall pred elt)) sequence))) Cheers, Jonas From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 19:48:20 2022 Received: (at 58278) by debbugs.gnu.org; 3 Oct 2022 23:48:20 +0000 Received: from localhost ([127.0.0.1]:51907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofVAZ-0007jj-Mg for submit@debbugs.gnu.org; Mon, 03 Oct 2022 19:48:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofVAU-0007jQ-NB for 58278@debbugs.gnu.org; Mon, 03 Oct 2022 19:48:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=x71eIWstxX4fpTauurbxlXi9GW0q285SdBkB82CDNzA=; b=cdxU3MbM4cX8Qt19xSM1DKZwqd Gbp6qn+ab7Sa9T9GfdNzDB5qXJQbqDW1sfsWJJ9nOTY1CvKJ5FTtzDV3RYAQJNnkw7kMOoHW7f2QX 5Zkca6AVaG8z1oCrMa8XuhjmHcaP/DKzRqu+d/VkKO/Ymy6sM8qLSdjcL4iYBfeCbuQQ=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofVAG-0005sY-Ea; Tue, 04 Oct 2022 01:48:02 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87y1twtx22.fsf@bernoul.li> (Jonas Bernoulli's message of "Mon, 03 Oct 2022 23:30:13 +0200") References: <87y1twtx22.fsf@bernoul.li> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWwjWtxQT+fUEzR saT49O3///+dfHtVAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKAxceMlEzPtoAAAGRSURBVDjLfZIB YsMgCEUVcwDjLqCYAzjJAbra+59pH026dHWjasUX+BFizNzs5Cz+CcIUUB8TYEeyWao/xKPxhjtI 66t1/wrC9YmowNvoiWMki10ICe4AkZA4es82Ugwp2XQCNjjpgA2nlNgPDZ+sPwAZZmtPECydIJg4 wKnBAIGtD0j1AsyIQApP11Ts8VZhTWHlAHUOIwJ30xbQccFQjwtCT2tUMB3DPghhAK4smOIUiC7L Ud3FCKzgZ5w0pw6eEgVwdjhiFvzvpWHfToABkR5cMOBCQ4aw6TtXXjpYZq0dYuUdPNTktIfsD9GT rwEu1nZxUyCtIWoCbjidgdaPO3gK672xtNykA+JXs8wr728g6Vx5+TKNcl3yPW+u1lxdZKoun2B3 krdM91wkW1vNAJxZsuScuWZUhy6Aar4BUN3QSbpXOUCstx4BwAD1AA/Sjg+Qn6C/LsSlg09Vq/Ve tg4YX+LWXI5cI0sspOIKbOKohS7jpqGvPZUxWjpFPwXYf1VXK4mOYH3vx2H/AJnb5zdoRIS3tuUh TAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wM1QyMzozMDo0OSswMDowMLr3pY0AAAAldEVY dGRhdGU6bW9kaWZ5ADIwMjItMTAtMDNUMjM6MzA6NDkrMDA6MDDLqh0xAAAAAElFTkSuQmCC X-Now-Playing: Scritti Politti's _Cupid & Psyche 85_: "Hypnotyze" Date: Tue, 04 Oct 2022 01:47:59 +0200 Message-ID: <87pmf84ggg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jonas Bernoulli writes: > Unfortunately I cannot find a replacement for `-keep', which I have been > using a lot. I propose that we add something like: > > (cl-defgeneric seq-keep (pred sequence) > "Return a list of all non- [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jonas Bernoulli writes: > Unfortunately I cannot find a replacement for `-keep', which I have been > using a lot. I propose that we add something like: > > (cl-defgeneric seq-keep (pred sequence) > "Return a list of all non-nil results of (PRED element) for elements in SEQUENCE." > (delq nil (seq-map (lambda (elt) (funcall pred elt)) > sequence))) Hm... well, here PRED isn't a predicate, really, but a transforming function? But you wish to filter out the nil results of that transforming function. That sounds useful -- there's more than a 100 matches for "delq nil.*map" in-tree only -- but it's slightly confusing that the function isn't altogether a predicate, but only kinda. Would a function signature like (cl-defgeneric seq-keep (function sequence &optional pred) ...) make more sense for this combination of map/filter? (The default predicate would, of course, be "not null".) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 06:06:01 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 10:06:01 +0000 Received: from localhost ([127.0.0.1]:52533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofeoL-0000Nd-Bq for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:06:01 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:33681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofeoJ-0000NN-Tk for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 06:06:00 -0400 Received: by mail-wr1-f47.google.com with SMTP id a3so8268201wrt.0 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 03:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=B16JEtG10FuyYm3vFM/MV795xztsMbvqtcU8tnI84Xc=; b=RP9ujZWocZwuPZ1VhABaiDuQa5r+ldocsNTRGKi+xyJRozIuobPRMSXf4ZclgMQW8u BUMgyVdFMxZRpci903i17+/6LrAfCi+Q/E3nHBbEKTolDCy4Fqax4l++yiwOQY+NO9cZ jGLz0fGFl6mt7bF2AZNFwEs9Wt6ERhkK2Ae4vMQmwtRNcHWiPma2lb4axY9GHvIGcrgq Q+Y88CuAQjF3YApx5+Fdt4B46zxY+y0duu0qacVA7OQvWolHJrAnpWw4efGczQMRbyB+ Ldbd/2eCs8wdD+Q6Gbg5cpbucqD0ktV1HLS6H9E8xpm258npEDF7W1YgGRqsdwaL9Hb3 9YMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B16JEtG10FuyYm3vFM/MV795xztsMbvqtcU8tnI84Xc=; b=ey8Fj9kIzhegwlb246IBgYH4HHqv1pffdH7GTi2OV0PmjjMNLJp+JMUKzQlJ2kzL1E Na3t5qABx6rXGkbQpPObuWRW+6maLbMKdJ5CGpQ8N0mvzQBOedJxuHpsO2mhW1bPTmLp CxGhlMejUun9hrZ6g7VGq7lCNqNc4cdKlFQFcM4e4v44krCq1GmxdkBkZTWpDgkV93GW Bd2lGxGQ1xCBpWM+GVzCHlJZJl9aGXoc5czu/rlUXMh60Igd+hQtjb4jxSz0WhYd0oFb HNr1pCkRTTfJnsgAd04WMi36cA8AoYmB7/wQ0fdB1MKaBo5HWFcC0st1cMPrMFtJUj6i mpCw== X-Gm-Message-State: ACrzQf0injGwC8ld7F5l/V++DVUDpSD4co3VSZvF3P/bT7BoXoVQewxP ETjYH9OvYPpYSzPEaDrLhPwU3DWJtxE= X-Google-Smtp-Source: AMsMyM4kqermPEJFw/uJVJHvVUu8DBETk4IgLIeVSWdaKJRf1EZRd/+1e4PMhcqL5VS9CTans+V07w== X-Received: by 2002:a5d:4581:0:b0:228:a8e5:253c with SMTP id p1-20020a5d4581000000b00228a8e5253cmr14716708wrq.506.1664877953587; Tue, 04 Oct 2022 03:05:53 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b003b4931eb435sm20788044wmq.26.2022.10.04.03.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 03:05:52 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87pmf84ggg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 01:47:59 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> Date: Tue, 04 Oct 2022 12:05:51 +0200 Message-ID: <87lepvaoow.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 04 Oct 2022 01:47:59 +0200, Lars Ingebrigtsen said: Lars> Jonas Bernoulli writes: >> Unfortunately I cannot find a replacement for `-keep', which I have been >> using a lot. I propose that we add something like: >> >> (cl-defgeneric seq-keep (pred sequence) >> "Return a list of all non-nil results of (PRED element) for elements in SEQUENCE." >> (delq nil (seq-map (lambda (elt) (funcall pred elt)) >> sequence))) Lars> Hm... well, here PRED isn't a predicate, really, but a transforming Lars> function? But you wish to filter out the nil results of that Lars> transforming function. Lars> That sounds useful -- there's more than a 100 matches for "delq Lars> nil.*map" in-tree only -- but it's slightly confusing that the function Lars> isn't altogether a predicate, but only kinda. Would a function Lars> signature like Lars> (cl-defgeneric seq-keep (function sequence &optional pred) Lars> ...) Lars> make more sense for this combination of map/filter? (The default Lars> predicate would, of course, be "not null".) How is this different from 'cl-mapcan'? (apart from the syntactic sugar) Robert -- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 06:14:08 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 10:14:08 +0000 Received: from localhost ([127.0.0.1]:52546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofewC-0000aC-2y for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:14:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofew9-0000ZZ-IM for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 06:14:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=D76XNZJb1TkZTNIoZklh/X50VqaARtzd+WDMSwj/qJo=; b=BL+i8ixQiEjT4vLt8dr7fPGwi1 oQkVn4g5xSsZlwHXvK0b6kWWuW3sAhOwV634p3WQDVe7UslnTxY4McUtgQhrr/I1fUTJZ9HvhBOWW Gj7PVBW9Z7aEio3jBU3O/joUmp72nEdRkXbEQJvHzjZuDkhXr3TWXA+kHzN8nQ+3Y9b0=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofew0-0002l4-Bo; Tue, 04 Oct 2022 12:13:58 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87lepvaoow.fsf@gmail.com> (Robert Pluim's message of "Tue, 04 Oct 2022 12:05:51 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUUEiPbyLWEfYs7 RXEoL1dCWIr////HdMvYAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YKBAoMBoFasiYAAAGuSURBVDjL rZNdbuMwDITVRgdostsDtIHfjVB8J8rxBSLz/lfpUHb6gxYLBFjFsGx9JGdII6U8HH9d5Z/gdLo3 43h8uTvjPnB6/W0R/BFpEBHtzUUDC7eQDWgnCF4a4hGikuAvAB4k04h+IZAdiPDqEuModGKEJuBJ j85o7ozwoUjw3Lhfp8TXSXvoupd67oAwherX7tK8Uzuy1HgJZxEhgA+1tEtXfOTdlmBLy1mouPUB v74i+crb0lU19j6gDGURArbNCN37aHVQ51RoNhvLUukbtUk3qqNBmeFDw5k6SkXDWPtIcrr0SKAz rRllBnhCBqsmYjAOzdnthyuledFRD3LLMM/ydBDe2pK9eBsZVTZdD/rVzcDIqM7afF/O7srRQ1fc NNYM1ClHwJBY9ww7tE3XIHZxREuNp1Kqz95ZD7OvdS0cCzaAt9Y4ca9NbQE6fAOofFI900WrrdKg lS2jFC++OodhsEM3Rt4ACKohx6/5Gb+Ax5lwJph64huw8jZTghHoVvAJSjmYVdQClsQ3UItVKxUC fAelJuBR/QH4y5MfGcMcrH6A//ivvRO8AzElsQhPa8DnAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTEwLTA0VDEwOjEyOjA2KzAwOjAwqD4DAgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0wNFQx MDoxMjowNiswMDowMNlju74AAAAASUVORK5CYII= X-Now-Playing: The Mystery of the Bulgarian Voices feat. Lisa Gerrard's _BooCheeMish (1)_: "Shandai ya" Date: Tue, 04 Oct 2022 12:13:55 +0200 Message-ID: <87czb7521o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > How is this different from 'cl-mapcan'? (apart from the syntactic sugar) I don't see how seq-keep would resemble cl-mapcan much? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > How is this different from 'cl-mapcan'? (apart from the syntactic sugar) I don't see how seq-keep would resemble cl-mapcan much? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 06:27:11 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 10:27:11 +0000 Received: from localhost ([127.0.0.1]:52552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1off8o-00012i-Or for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:27:10 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:46031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1off8l-00012M-Ry for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 06:27:09 -0400 Received: by mail-wr1-f49.google.com with SMTP id a10so8269472wrm.12 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 03:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=n9E73ZqSukNnK221amS+UO3nQQgVQ3qY0BWhW0bB97Y=; b=LP95FJc/Mny/07OdQFbG3DrpxPVTwQLb+zwuSN5V7B5JOuUjb6c5wVLMvYJ895cfba ERgx7d/4UQS+5pcovcOGPgvblUNiLvcdqByXmVxx4GoGx+h9Gn1avA81b9xT9V/ijvnj SVdm+FZt4c8XJ/xOpAae2y3eIpO9YcxM1nSs56TNagtLnEHEKhClazCnYkQisr/elZ7S SoeNvwaX3wfNlsy9eF1gBK9oF0uGuzp4VAT1c8S4a1H+fJffVaquJe362eEqLZpjwJOm WPOQ7PGQ4dCGIQUvfUxlYoZBpwIRqv0JWvTn4cg+BreIQbulpoPGBP7952FgZlxeGHn4 dEtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n9E73ZqSukNnK221amS+UO3nQQgVQ3qY0BWhW0bB97Y=; b=CET0kc3CXQEBj3garK1JJ8Xx6ijJrvMpSRxMBJrYFab344IDzmxDBB46D0FlOgi/pD vzbTc+VqMvIWsO8leLSU4Fy8qMjfk3EsxJEn5PNRB0W7bS5zMVqHGq6+QbWUlrjG0JcX ZqRhmYDnhrZO1jlyZm6eiXXs8ZK03VctRc5lxIonyBoYI4YRaMHAUM9VK5VgSybuGukm dIAnp4yhW9NrIHhecyugpv1QIFGf1soxDarP7nOQm2AhKuGrMuKUMqG9NC62fCtPGOn2 zosoX4s5EW1dtgbtl6CxipI+Y1oopsg1h4RRoc4aSv4EoQa5onD1xevjgtrT+eWh9o8p 0+fw== X-Gm-Message-State: ACrzQf3qTpaxiSgYhlZfNTB1Qwtxs3VNOowWfc4apBnMrQVU/Md5kZTn adZ8QwNggLf2lPtoWXaMdGE= X-Google-Smtp-Source: AMsMyM4AssaH/MWpDHk84cVBrKv0ijCkdX27+E/hzr9YTw6rvPUPtuAFJAzF+KpuivtjdvAYlu4yPQ== X-Received: by 2002:adf:ed91:0:b0:22e:4f88:a9fc with SMTP id c17-20020adfed91000000b0022e4f88a9fcmr1464136wro.669.1664879221766; Tue, 04 Oct 2022 03:27:01 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id o11-20020a05600c510b00b003a319b67f64sm3647216wms.0.2022.10.04.03.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 03:27:01 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87czb7521o.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 12:13:55 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> Date: Tue, 04 Oct 2022 12:27:00 +0200 Message-ID: <87h70janpn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 04 Oct 2022 12:13:55 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> How is this different from 'cl-mapcan'? (apart from the syntactic sugar) Lars> I don't see how seq-keep would resemble cl-mapcan much? Well, cl-mapcan applies a function to the elements of a sequence and discards 'nil' results. Looks pretty similar to me. Robert -- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 06:43:00 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 10:43:00 +0000 Received: from localhost ([127.0.0.1]:52572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offO8-0001RS-Fx for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:43:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offO7-0001RF-KD for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 06:43:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5eLZugKOHPvuyOqa1ZZSFznaxDuMNoTXRVQ4Gas49rY=; b=SelcLaOIPXJmIZV0rMkvBzMIGy HOYQxCmWObJg1LksDCwT9tGmF3Nrz63PDU/q8iwqsZKjAFbfbt6whiTv/PPiJqqdqtAzy5JVeySgC Zl547Uk9AOkW7Yg6erki7xiE+UvidJJOEAHvJ3zIcZhVa532srroaocNM3hkiGZKfDFc=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1offNy-0002y3-MC; Tue, 04 Oct 2022 12:42:52 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87h70janpn.fsf@gmail.com> (Robert Pluim's message of "Tue, 04 Oct 2022 12:27:00 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVzh4uuvrxBUFX/ //8ut8HHAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKBAopMkgdlnQAAAF9SURBVCjPPdJBa4MwFAfw tJhSPHWl2WEnHStUv4VlHc6TSp4MT9vYofRT2GJ28DjWnasQiO9TLia2gpAf/5eX8JQQWjAYniJd EQ2hlx9Q3sDaEVwA/w5YbgA0S7y54BZ+/qNmEiyivEQ8Q+oMgDSc4jmzCZStF8q3dGFwOAlXZimx cNhWXsuSih36aGyAE0j6V7unQP32WcoHrFAYOBYMCpXZMtcAbOtQ36VQOwPmnijkY0KTTtzK6OFL wsMIP3458qS3CF4/q2wbjNiHRz8cE7qfV/7UYsXiqG7vLO5ZOZdy0lrQsiPtY1/oqxGHlsT5fWxz A8Enu/NUlKabKJRXd1fkuD+hHtUAmSpnicKMiq0BvxYNs/jg6P00zJzDIo6X2TB4vdbf0PNyDeDE VQze3/8almBFEHs4+Pd4RlQW8g8FXhRRJlk0EpXF/qluxAWvyfO87oY9KoDNmm47ZRpsAL1qurFQ gN0yDlRosFJ+QoLhHP3vLI/r+FnxmPwDfgizGO14aqQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt MTAtMDRUMTA6NDE6NDkrMDA6MDBAXGpQAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTEwLTA0VDEw OjQxOjQ5KzAwOjAwMQHS7AAAAABJRU5ErkJggg== X-Now-Playing: Propaganda's _A Secret Wish_: "p:Machinery" Date: Tue, 04 Oct 2022 12:42:50 +0200 Message-ID: <878rlv50ph.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > Well, cl-mapcan applies a function to the elements of a sequence and > discards 'nil' results. Looks pretty similar to me. No, it concatenates the results, so the values returned by the function has to be lists. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > Well, cl-mapcan applies a function to the elements of a sequence and > discards 'nil' results. Looks pretty similar to me. No, it concatenates the results, so the values returned by the function has to be lists. But, yes, if you return lists, then nil return values will "disappear". From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 06:50:20 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 10:50:20 +0000 Received: from localhost ([127.0.0.1]:52607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offVD-0001jn-RH for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:50:20 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:40649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offVB-0001j6-VZ for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 06:50:18 -0400 Received: by mail-wr1-f42.google.com with SMTP id w18so11971508wro.7 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 03:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=qTHsP5VgJmqxgmjEHrEGCNotKqI5CfUMmjyHlAt0Gqk=; b=f98FX594BE9zgPRhaYQvAVOg/4gDyCAD9N2k0N985HD300irM31tParRqvgt9ytW0f yFcWkfI3hhqpekjss0LMYbzHOR+g3ZF5bUx7CYohs/Tl/U6qqYU9X5FIv/qoXXc3dYuN RcvaaaTkWeUl6pngT4RiayG19SSxE9lrLihocNRPNLHBh7/Yu3YLYUI55q5ebyjrdGdV xOMN2fA1LgrR7ga1kDJCY0aUvczCVC4FgX1uFqBtbj32hElg0tjC6LfG3ajpwt6t7y1Y cO7ShzjX1mFmDem3IVYsiSNJHtsYy1INfklTSGDdE6MmvOyPVjw4K3KjM+UPsNyDzHBv XtEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qTHsP5VgJmqxgmjEHrEGCNotKqI5CfUMmjyHlAt0Gqk=; b=eb6lVTOGtUBvGbsmoMAXjCJldrwcj3BygLV5DUdMu7J1ibsmYZsPuXSP8tCzO0rTNB 9TFrI3wBD1Xwqn9lny7TgpX8vrS7inkRMaYOGcmqzhGxRqqa4E2FyFSoEixb6Szw2Zwr 41wVjq+LJXNreo58kLb3N7iTR/Fpk3YZWWa/GqjD21sEgeReMXqit4vg803yF89j+eeP DtJGIFpAvJwYupxsIYXHvi9p7gx7SBfozLGdG8VIP8SknSnMxj2q4srD7j16gJag8i/j jOOl+2StpIDqzDu2/eOl5uG7KaGiQ6ypdfp7+Di1COwlJFT2c69Erjqv2EqRWFhk9afp Owuw== X-Gm-Message-State: ACrzQf35KUchPP3ijSDFsJI91ILMeYSYsaf45LEFu7/yeICkiHV8KQv3 osslz/zGqak6bhj7vP9eFjI= X-Google-Smtp-Source: AMsMyM6gFRNvkxmxxOY/zGy9EEQqYStlK4k/gRK0M6ov5SJCflKVmC73NxR/2HHj2ar3NQjGC03zOg== X-Received: by 2002:a05:6000:15c6:b0:22b:1ffd:a67a with SMTP id y6-20020a05600015c600b0022b1ffda67amr16785087wry.538.1664880612134; Tue, 04 Oct 2022 03:50:12 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id o14-20020a05600c4fce00b003b497138093sm15092198wmq.47.2022.10.04.03.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 03:50:11 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <878rlv50ph.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 12:42:50 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> Date: Tue, 04 Oct 2022 12:50:10 +0200 Message-ID: <87czb7amn1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 04 Oct 2022 12:42:50 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> Well, cl-mapcan applies a function to the elements of a sequence and >> discards 'nil' results. Looks pretty similar to me. Lars> No, it concatenates the results, so the values returned by the fu= nction Lars> has to be lists. That=CA=BCs why I said "apart from the syntactic sugar" =F0=9F=98=80 Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 07:10:51 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 11:10:52 +0000 Received: from localhost ([127.0.0.1]:52685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offp5-0004VT-MN for submit@debbugs.gnu.org; Tue, 04 Oct 2022 07:10:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offp3-0004VG-Tu for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 07:10:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5+I6gR8y/yFRGiaSUUnEOJ6DIwYolsGN/Y6rua8KxGI=; b=NAyUHzZG8AV5of2VOy8iIGqAqn lm+JZn2KPF1MkYiyx0E0Pp3cns/xUMIPqp/mJZtOP9VKSYVyCfjA727jpWYf/zTb9sUFTXTU2AMwG j/T8XnqYvS6/iunZBJjBHodyq0EGJxUByRXber89w8GX8krWTZAJ9CpAu1ZF7YOE7xG4=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1offou-0003C1-A4; Tue, 04 Oct 2022 13:10:43 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87czb7amn1.fsf@gmail.com> (Robert Pluim's message of "Tue, 04 Oct 2022 12:50:10 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> <87czb7amn1.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWEfIC6u78+ZphW S0b///8R7sS6AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YKBAsFJIQ6IrwAAAGpSURBVDjLjZTtlesg DEQHaAA2DWBoAFv99/ZmBNjOO/tjlThgXST0AQFKDvrGRgm5NU1KKVhP+Wnt0DhXtEplRpCiVR9K qU5Qbsl8iQ3S/twgy9WWPoIJxEM+2wtcZ49oBYrlLWkEgf/lyGZIw8HaknkoBwKDgxUVZ5nhZ4Fx 4dYz3FY52CC4BuIDaMTkcQOvBSJqAViEhAcwz6rRa4Ji2oSLPLsaApgsn4GUBOQcWPXTUqaXmcas 1a6YnORMgyNvVasVrvdoTV7YPez3LeypLGIXGH1irYJLbAq8RzuTe1nA0KbnqzOYBYIANd0dw/YQ UASsD+v3vinQ6MPN5+sfwICNCa4+weX662i3xbNacvQvV49UxnPiF6ACneEBaVcrfAYh8/gqHrvG j6kR365GtKsmKyG/wUg6BFFdzaM8II0xk2FXQYB0++fUwVkSzXTnuu3mREKeW2MqKfqNw+4O1fxl 5f2WNrijMVsqk7KAE22ngf0TwLq+i+iocaLD3F7EofYK2+JFuIeafoP2AD+1D3iI/lvwuuHbWSh+ 3F5XfwMafL7AIkEt/wcFRn+kRWTuRAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wNFQxMTow NTozNiswMDowMNh1Gd0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMDRUMTE6MDU6MzYrMDA6 MDCpKKFhAAAAAElFTkSuQmCC X-Now-Playing: Prince's _Around The World In A Day_: "Paisley Park" Date: Tue, 04 Oct 2022 13:10:38 +0200 Message-ID: <87bkqr3kup.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > Thatʼs why I said "apart from the syntactic sugar" 😀 Having to rewrite Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > That=CA=BCs why I said "apart from the syntactic sugar" =F0=9F=98=80 Having to rewrite (seq-keep #'cl-digit-char-p '(?6 ?a)) =3D> (6) to (cl-mapcan (lambda (c) (let ((res (cl-digit-char-p c))) (and res (list res)))) '(?6 ?a)) =3D> (6) is more than "syntactic sugar" in my book. Nobody would want to write code like the latter. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 07:21:21 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 11:21:21 +0000 Received: from localhost ([127.0.0.1]:52702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offzF-0006y7-0e for submit@debbugs.gnu.org; Tue, 04 Oct 2022 07:21:21 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:41615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offz8-0006xn-MD for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 07:21:19 -0400 Received: by mail-wr1-f44.google.com with SMTP id bu30so928120wrb.8 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 04:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=WfpYeouMzR99RKnPeo8x/V+ASBIHymlFqsiTAflReEo=; b=krwPuNuq1qqisaSMR8Kb6sc4hC+GOn3H7V7MM/y1F6jmivUQShdBSBFaGbBjC1eTU3 8rBvDX2Y2hqvASLwW6tG6muCFEghpmcFu2WGgreX0mRBXv0oJG9A5eO4O1YrdgsEN5fK SfLjnBCm4PHa56kmLnV95E80JQoblFpTJdgEyNDEZ95rX/wTlNYMPkJd2XJMM4N45IK9 UVxZ/9mhbNtysXyubS4vXLRXMeTuQI+MKwRJWa5Li9G3l2mIYYS1b/W1IHHBb17mx9Ku vGF1vOOvMD3Ly9tryWetxNPdMCjnCnXpRGD8s2kP9amZepGLm/uoIF6EdyvXpSdG4UU5 F1pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WfpYeouMzR99RKnPeo8x/V+ASBIHymlFqsiTAflReEo=; b=AVX5nKhtpTaYVfaXy+x/yDXCw+ZwRk3d/xFKBrdQw0FmD3hNaJsBEUj3LpR9nd0wRb A9+kee1n3Wp87ry40EbltaBiFP83LvG6d99k/U9MtRUpCv/fzDwJzehs47YWd86yP3IB lmtTlJvYC2cmnf3hmvM7FizgJw+QndA8FalBYu0tvF/hf37fT7K1u9hDdYK27FmOFEzx lJfFkBWZQAYLiUJYxVW4Z+Fc6HjijOJtkSpgO4JXQ8JiYyGRTlH3HRTKTMzC88c1Yz06 j5jVnsnGFyft8wXpr5vGphvQxp+cw4GveFyQb6hT9L0KFxEUket68gBcYHN0hX5LobM6 ps+A== X-Gm-Message-State: ACrzQf0+lY76IC3ny7dv4Y1wXehrcCrU3KiAFr+FmY2uFGxkfm6txj+m efbKmebm4eF/TAAKR0Tr5oo= X-Google-Smtp-Source: AMsMyM59DkSdfaZxswyFt0kEu5e9Ajwdr9BPm8t/0iRa3xX2gCKnOEnVF9vQIb1WGc8MHfvXAtb2iQ== X-Received: by 2002:a5d:452b:0:b0:22e:3d4a:2ea3 with SMTP id j11-20020a5d452b000000b0022e3d4a2ea3mr5832361wra.309.1664882468861; Tue, 04 Oct 2022 04:21:08 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id c63-20020a1c3542000000b003a6a3595edasm14498125wma.27.2022.10.04.04.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:21:07 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87bkqr3kup.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 13:10:38 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> <87czb7amn1.fsf@gmail.com> <87bkqr3kup.fsf@gnus.org> Date: Tue, 04 Oct 2022 13:21:06 +0200 Message-ID: <878rlval7h.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 04 Oct 2022 13:10:38 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> That=CA=BCs why I said "apart from the syntactic sugar" =F0=9F=98=80 Lars> Having to rewrite Lars> (seq-keep #'cl-digit-char-p '(?6 ?a)) Lars> =3D> (6) Lars> to Lars> (cl-mapcan (lambda (c) Lars> (let ((res (cl-digit-char-p c))) Lars> (and res (list res)))) Lars> '(?6 ?a)) Lars> =3D> (6) Lars> is more than "syntactic sugar" in my book. Nobody would want to = write Lars> code like the latter. I never meant that. I meant defining `seq-keep' in terms of `'cl-mapcan', with the appropriate converting elements to lists done for you (or even using `mapcan' if you=CA=BCre willing to give up the &rest behaviour of `cl-mapcan') Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 07:23:14 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 11:23:14 +0000 Received: from localhost ([127.0.0.1]:52706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofg14-000718-HQ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 07:23:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofg12-00070u-5k for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 07:23:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=prQNOi9Fd9qx2ZgirW20iI29vPEqzCED0SVbpOfiuQk=; b=fiDz+avr/rv2rmV/czffvRkuhX LcASjXxBpb9KC103YNY4MQwm/KTcqZG+fd0im57Kpt64k36eyQJmzD5udcYcysUpz5L7/h230f0D3 aybQ39RjE60U6Gwr3nDbN2jqOhtygiOVtMRbuRrV9EX+8Apf3YzGSprO9MC+5DYG4qA4=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofg0s-0003GM-KS; Tue, 04 Oct 2022 13:23:04 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <878rlval7h.fsf@gmail.com> (Robert Pluim's message of "Tue, 04 Oct 2022 13:21:06 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> <87czb7amn1.fsf@gmail.com> <87bkqr3kup.fsf@gnus.org> <878rlval7h.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWEfIC6u78+ZphW S0b///8R7sS6AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YKBAsFJIQ6IrwAAAGpSURBVDjLjZTtlesg DEQHaAA2DWBoAFv99/ZmBNjOO/tjlThgXST0AQFKDvrGRgm5NU1KKVhP+Wnt0DhXtEplRpCiVR9K qU5Qbsl8iQ3S/twgy9WWPoIJxEM+2wtcZ49oBYrlLWkEgf/lyGZIw8HaknkoBwKDgxUVZ5nhZ4Fx 4dYz3FY52CC4BuIDaMTkcQOvBSJqAViEhAcwz6rRa4Ji2oSLPLsaApgsn4GUBOQcWPXTUqaXmcas 1a6YnORMgyNvVasVrvdoTV7YPez3LeypLGIXGH1irYJLbAq8RzuTe1nA0KbnqzOYBYIANd0dw/YQ UASsD+v3vinQ6MPN5+sfwICNCa4+weX662i3xbNacvQvV49UxnPiF6ACneEBaVcrfAYh8/gqHrvG j6kR365GtKsmKyG/wUg6BFFdzaM8II0xk2FXQYB0++fUwVkSzXTnuu3mREKeW2MqKfqNw+4O1fxl 5f2WNrijMVsqk7KAE22ngf0TwLq+i+iocaLD3F7EofYK2+JFuIeafoP2AD+1D3iI/lvwuuHbWSh+ 3F5XfwMafL7AIkEt/wcFRn+kRWTuRAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wNFQxMTow NTozNiswMDowMNh1Gd0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMDRUMTE6MDU6MzYrMDA6 MDCpKKFhAAAAAElFTkSuQmCC X-Now-Playing: Prince's _Around The World In A Day_: "America" Date: Tue, 04 Oct 2022 13:23:02 +0200 Message-ID: <8735c33ka1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > I never meant that. I meant defining `seq-keep' in terms of `'cl-mapcan', > with the appropriate converting elements to lists done for you (or > even using `mapcan' if youʼre willing to give up the [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > I never meant that. I meant defining `seq-keep' in terms of `'cl-mapcan', > with the appropriate converting elements to lists done for you (or > even using `mapcan' if you=CA=BCre willing to give up the &rest behaviour > of `cl-mapcan') Oh, OK. I don't think that would be particularly efficient, though. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 07:37:18 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 11:37:18 +0000 Received: from localhost ([127.0.0.1]:52729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofgEg-00019B-2b for submit@debbugs.gnu.org; Tue, 04 Oct 2022 07:37:18 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:41867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofgEa-00018v-MT for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 07:37:16 -0400 Received: by mail-wr1-f44.google.com with SMTP id bu30so987100wrb.8 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 04:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ci1oxEQYNBoecqIXJtYNcTFQGGn6bSLYpwxSPmGSE5g=; b=n8xYhvQIbYjZBxC190bUadqyTa5YcAI6fcmWCQkKApkHu+fCEvkL7qHA31PbYsHtkC KTF2PEoy3EVKBANjUgRKajy0/ADlG9xpmpBsMkOKZTdB28AxjsA5zdZLbGBcxoYBMS2D 9pb+lck1D+JtBB2bXepGMeTfzh4SYvbCHq7XkgJX/Hz9T+b+IiKwbX9rBLqfeEi2ZL4C WMPqRchLrYNzauUtT9W8uR1W7XA9xY5m1PiW1pCm4+kF2v+MrgkstfJcX9EV9oG1CTpy bV/q5esx8f9LuZfYc6CS2NnCwkDmj6fJshw22unR+Bozy6ZWeKAo6A11R56d/+eaH3kx P9FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ci1oxEQYNBoecqIXJtYNcTFQGGn6bSLYpwxSPmGSE5g=; b=aH8eFBRqcg32obVI7XzA3r2Q2sW6BA091kWEEIbyCMK5coMzqnXIpWNUlfb1Pwabus GYnbgzsLr3NvnmRnTU+viUfpupVnCVt5NMhqLSiW8s/NcavjwSOARGCLWhGYUqwcsIOX yMucEYjJkTV6pVnqnSEWconiUGFRw2RWbuRhMHwAyfC6jSiBUOQPieaT5DZzyV31B2Vp 7P/volLDQdzuR1V4TQtoKLz+8rBGABHip6NZztJe5zSCft2YP3azIhbMVvgW9bMFF69b Fr+Si3gQMNcyQqY+p4QyQjkrYje9Tv7WlsbqiSN+nFRtD3OG4RFTfXIf1Tu7oIhE83oZ KyPg== X-Gm-Message-State: ACrzQf05nO6Y1RFID8wmL+K9ik90fIWNfkgtSIOxY6ueXrE0flMqvyDB kHHSN8Dj221SzPt+nGj5dpM= X-Google-Smtp-Source: AMsMyM5REVGJUiwRlepjOncc6AE/J2SL5IObTJlG/fPTZBAl1qeKnwglfsbW6Lme22JlqevNd/smOg== X-Received: by 2002:a5d:530b:0:b0:22e:3e8c:45aa with SMTP id e11-20020a5d530b000000b0022e3e8c45aamr5839943wrv.321.1664883426663; Tue, 04 Oct 2022 04:37:06 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id az26-20020adfe19a000000b0022cd59331b2sm12329670wrb.95.2022.10.04.04.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:37:05 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <8735c33ka1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 13:23:02 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> <87czb7amn1.fsf@gmail.com> <87bkqr3kup.fsf@gnus.org> <878rlval7h.fsf@gmail.com> <8735c33ka1.fsf@gnus.org> Date: Tue, 04 Oct 2022 13:37:05 +0200 Message-ID: <874jwjakgu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org, Jonas Bernoulli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 04 Oct 2022 13:23:02 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> I never meant that. I meant defining `seq-keep' in terms of `'cl-map= can', >> with the appropriate converting elements to lists done for you (or >> even using `mapcan' if you=CA=BCre willing to give up the &rest beha= viour >> of `cl-mapcan') Lars> Oh, OK. I don't think that would be particularly efficient, thou= gh. I=CA=BCve measured it: it=CA=BCs not (even when using mapcan) :-) Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 08:50:34 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 12:50:34 +0000 Received: from localhost ([127.0.0.1]:52878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofhNa-0003Qh-BZ for submit@debbugs.gnu.org; Tue, 04 Oct 2022 08:50:34 -0400 Received: from mail.hostpark.net ([212.243.197.30]:57612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofhNX-0003QW-3e for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 08:50:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id AD853169E4; Tue, 4 Oct 2022 14:50:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1664887828; bh=M9HiS5RDG7if4bliQZnv6TE5 BfqajnC+GXstWR8Gibk=; b=e+Ryyc0LdX59quNN8dylP00G1Fb8YlSpr/teIpS3 brZ5DyI6L4FWD65CBuLrdeuOHSNqgN7sGj/EVmXXiOctdLYokIb7aInh1WVr2mfV Tui5E3/iOaBWgUJi5Ta66MWQCljihVUY9c7Dtu9yTCREtwZiFWx4m1UeXwc1Fecn v58= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id nnIGFli9DYH9; Tue, 4 Oct 2022 14:50:28 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 7F11416916; Tue, 4 Oct 2022 14:50:28 +0200 (CEST) From: Jonas Bernoulli To: Lars Ingebrigtsen Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87pmf84ggg.fsf@gnus.org> References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> Date: Tue, 04 Oct 2022 14:50:28 +0200 Message-ID: <87v8ozu50r.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Lars Ingebrigtsen writes: > Would a function signature like > > (cl-defgeneric seq-keep (function sequence &optional pred) > ...) > > make more sense for this combination of map/filter? (The default > predicate would, of course, be "not null".) Yes, that would be an improvement. Some (but certainly not all) uses of dash's `-keep' look something like (-keep (lambda (elt) (and (symbolp elt) (symbol-name elt))) sequence) and (seq-keep #'symbol-name sequence #'symbolp) would be much nicer in those situations. In at least some of those cases `mapcan' would work just as well as `-keep', so after adding &optional PRED, `seq-keep' could also be used in many places one would have reached for `mapcan' before, making it even more useful. I am unsure how I feel about it myself, but we should also consider (function pred sequence) PRED wouldn't be optional then, but we should of course allow it to be nil. (Forcing the use of #'identity would not make sense, since we want FUNCTION to serve both as a predicate and a transforming function in that case.) Concerning the argument order, in my opinion (seq-keep (lambda (elt) ...) (lambda (elt) ...) sequence) looks better than (seq-keep (lambda (elt) ...) sequence (lambda (elt) ...)) because the variable named "sequence" looks out of place in the second instance. But of course all of FUNCTION, PRED and SEQUENCE can be just a symbol or a more complex expression. For instance if only PRED is complex, then (seq-keep #'symbol-name sequence (lambda (elt) ...)) looks better than (seq-keep #'symbol-name (lambda (elt) ...) sequence) So there is no order that is always best, from an aesthetic point of view. In my own use at least, most of the time either all three arguments would be moderately complex expressions or only the two functions arguments would complex and the sequence argument would be just a variable. For that reason I would favor the two functions to be placed next to each other, I think. The (function pred sequence) argument list has the advantage that it is in (reverse) "chronological" order. First we have a sequence, then we filter the elements, and finally we transform the elements that we kept, at least conceptually. Using actual chronological order (sequence pred function) is out of question as that would conflict with all(?) other mapping functions; as is (sequence [pred] function), I presume. Just some food for thought; as of yet, I am unsure what order I prefer myself -- though I lean towards (function pred sequence). But if that is deemed unusual and thus undesirable, (function sequence &optional pred) also works for me. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 09:47:28 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 13:47:29 +0000 Received: from localhost ([127.0.0.1]:52952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiGe-0004oH-Kd for submit@debbugs.gnu.org; Tue, 04 Oct 2022 09:47:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiGc-0004o3-99 for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 09:47:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cHEPhHKba2SsJTJTsH5RmFkZigibQtwLwpqBRqHy3AU=; b=RMSywVeDGUc+bNOnTdRu/+8Qxa pfykaoZ0QYIne0sHERdTK2nyOZ+ehlJgo2ke4+TgdNF9ab4FkhnOEx9lCB3X94vCkJekKSRZPTVhI IaMeQ4Eit7aGSbqXHTuncvWyofnck1+1ovuIgni8FuIy7n0POLzJnXDqmUpkWJY/udA0=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofiGT-0004NH-Ca; Tue, 04 Oct 2022 15:47:19 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87v8ozu50r.fsf@bernoul.li> (Jonas Bernoulli's message of "Tue, 04 Oct 2022 14:50:28 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87v8ozu50r.fsf@bernoul.li> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWdkXFgYltBNSxv gX6urpL////1g5C3AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKBA0qBkfLJ4cAAAGISURBVDjLdZPh kYQgDIXhoAACV4BQAcgWwI70X9O9BHTVc/PDGfKRl5BEpa5GbAn2zT+B/sEZXv8AioB4A1eprzn8 HdBufgJTqLIRhVpD7/09gaYTeF1AGCCAnYEJNbzs9h9o3M6qllCRrB/AKgOgACBW6QDNtgFMgFLN B+i9aZIIgCJFTdAkh6r8naBMYPrGUgBBlDYBrXcGmkYm+BE4cwCQDiajQlwrs1eWQXf8nmb10nUa fUcwcvRsM3RKWt4+0ZAaYHPZKEgsKUUKEmG5qt7IKi8DinGXQqEvPNLhxI7Ic/8AYxw2QULSBSDx mhh4BuUETGBpdt9BphX3JcsH1K6ckWP6Byx6PHLz/sR9tI03hR3k0Ftp1ogA4KctRL8dW/aRyuot b9ZRnkGobYKApoY17T1B3SNHFv4BR47sXMh63TuyV6UwCl6vZ6BOYP8NMDxXz0C6i2kTRyD/FcBB bvxRZW+JSHEnNJ1stlIRPXjvwMdH4GnsyQRjAHL5JCQgzZFeTaUv9gchl3huqTRFngAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wNFQxMzo0MjowNiswMDowMGSjw44AAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMTAtMDRUMTM6NDI6MDYrMDA6MDAV/nsyAAAAAElFTkSuQmCC X-Now-Playing: Latin Quarter's _Modern Times_: "Radio Africa" Date: Tue, 04 Oct 2022 15:47:16 +0200 Message-ID: <87h70j7laz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jonas Bernoulli writes: > Yes, that would be an improvement. Some (but certainly not all) > uses of dash's `-keep' look something like > > (-keep (lambda (elt) > (and (symbolp elt) > (symbol-name elt))) > sequence) > > and > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jonas Bernoulli writes: > Yes, that would be an improvement. Some (but certainly not all) > uses of dash's `-keep' look something like > > (-keep (lambda (elt) > (and (symbolp elt) > (symbol-name elt))) > sequence) > > and > > (seq-keep #'symbol-name sequence #'symbolp) > > would be much nicer in those situations. Hm... That's not exactly what I was thinking here. I was thinking (cl-defgeneric seq-keep (func sequence &optional pred) (if pred (seq-filter pred (seq-mapcar func sequence)) (delq nil (seq-mapcar func sequence)))) which is the traditional "keep" semantics, but allows extending the concept of "keep" to more than "is non-nil". But that may well be an overcomplication -- in the unusual cases where it's not nil that people want to keep, they can just type (seq-filter pred (seq-mapcar func sequence)) themselves, which has very clear semantics. So I think, on second consideration, I'd rather just go with (cl-defgeneric seq-keep (func sequence) (delq nil (seq-mapcar func sequence))) like you originally suggested (but with just an argument name change). From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 09:56:21 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 13:56:22 +0000 Received: from localhost ([127.0.0.1]:54858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiPF-0005Wm-LD for submit@debbugs.gnu.org; Tue, 04 Oct 2022 09:56:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiPD-0005Wd-UK for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 09:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OnKWvglAvGgDQAU31swHFu+uBzosQ8slPmBHVo0GBCE=; b=NQLkztmcdGVgSr8xuwdEbkuOKr u7btnMa0L6N4MBThkda8DJ1qpLCSRaS02Kr53nIVg7qjZCDYTX9fVgIVyQLQAYAO8AGemUt4v/EC+ kOGaFLqr+vwr5tY8eIBbyczhvLwaMst1QzBMj5ugi2K11cIPAlYnZMu21u1DvEaGNdrQ=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofiP5-0004OZ-4a; Tue, 04 Oct 2022 15:56:13 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87h70j7laz.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 15:47:16 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87v8ozu50r.fsf@bernoul.li> <87h70j7laz.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWdkXFgYltBNSxv gX6urpL////1g5C3AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKBA0qBkfLJ4cAAAGISURBVDjLdZPh kYQgDIXhoAACV4BQAcgWwI70X9O9BHTVc/PDGfKRl5BEpa5GbAn2zT+B/sEZXv8AioB4A1eprzn8 HdBufgJTqLIRhVpD7/09gaYTeF1AGCCAnYEJNbzs9h9o3M6qllCRrB/AKgOgACBW6QDNtgFMgFLN B+i9aZIIgCJFTdAkh6r8naBMYPrGUgBBlDYBrXcGmkYm+BE4cwCQDiajQlwrs1eWQXf8nmb10nUa fUcwcvRsM3RKWt4+0ZAaYHPZKEgsKUUKEmG5qt7IKi8DinGXQqEvPNLhxI7Ic/8AYxw2QULSBSDx mhh4BuUETGBpdt9BphX3JcsH1K6ckWP6Byx6PHLz/sR9tI03hR3k0Ftp1ogA4KctRL8dW/aRyuot b9ZRnkGobYKApoY17T1B3SNHFv4BR47sXMh63TuyV6UwCl6vZ6BOYP8NMDxXz0C6i2kTRyD/FcBB bvxRZW+JSHEnNJ1stlIRPXjvwMdH4GnsyQRjAHL5JCQgzZFeTaUv9gchl3huqTRFngAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wNFQxMzo0MjowNiswMDowMGSjw44AAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMTAtMDRUMTM6NDI6MDYrMDA6MDAV/nsyAAAAAElFTkSuQmCC X-Now-Playing: Latin Quarter's _Modern Times_: "No Ordinary Return" Date: Tue, 04 Oct 2022 15:56:08 +0200 Message-ID: <87a66b7kw7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Just for kicks, here's some random "del.*map" instances from the Emacs sources: (delq nil (mapcar (lambda (n) (and (>= n 0) n)) articles)) This should be (seq-filter #'cl-plusp articles). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Just for kicks, here's some random "del.*map" instances from the Emacs sources: (delq nil (mapcar (lambda (n) (and (>= n 0) n)) articles)) This should be (seq-filter #'cl-plusp articles). (delq nil (mapcar #'gnus-server-to-method gnus-agent-covered-methods)) This would be nice as seq-keep. (delq nil (mapcar (lambda (c) (when (string-prefix-p base c) (substring c base-size))) hist))))) Ditto. (delq nil (mapcar (lambda (action) (cond ((eq action 'create) 'created) ((eq action 'modify) 'changed) ((eq action 'attrib) 'attribute-changed) ((memq action '(delete delete-self move-self)) 'deleted) ((eq action 'moved-from) 'renamed-from) ((eq action 'moved-to) 'renamed-to) ((eq action 'ignored) 'stopped))) actions)) Ditto. (delq nil (mapcar (lambda (x) (if (string-match "\\`\\." x) x)) ido-temp-list))) This should be seq-filter. (cookies (delq nil (mapcar (lambda (e) (org-list-get-checkbox e s)) items)))) seq-keep. (let* ((have (delq nil (mapcar (lambda (x) (get-text-property 1 'time-of-day x)) list))) seq-keep. (string-join (delq nil (mapcar (lambda (item) (when (cdr item) (format "%s='%s'" (car item) (cdr item)))) `(("type" . ,type) ("sender" . ,sender) ("destination" . ,destination) ("path" . ,path) ("interface" . ,interface) ("member" . ,member)))) ",") seq-keep. (reverse (delete "" (mapcar (lambda (r) (replace-regexp-in-string "nil" "" r)) result0))))))) This suggest that the signature should be (func sequence &optional delete-element) which defaults to nil, but could be "" here, and use seq-keep. (delq 'type (mapcar #'car (haiku-selection-data clipboard nil)))) Ditto. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 09:59:56 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 13:59:56 +0000 Received: from localhost ([127.0.0.1]:54862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiSi-0005bB-8d for submit@debbugs.gnu.org; Tue, 04 Oct 2022 09:59:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofiSh-0005ax-2i for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 09:59:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=b5dbH7Tr8uPebo7NW47qlXps3lZaPVN+SF/Ca5um4kc=; b=A2l8kETNsa9wpTYqe1hE1ub6ct kyt/Zq2F4NW9MDSWdk9qNDD5Pq+DRTk7KASlBkBR2xRi0Wy8VAzmiuaXph0rrZ8HXacgoR01xuhDK OX9GXIjvD4qUbdWFtiJGEnUqAz5feBzSk56STfTNoTXt4EdL1pXFdMhcMVLXseO3DTN8=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofiSY-0004RN-T5; Tue, 04 Oct 2022 15:59:48 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <87a66b7kw7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 15:56:08 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87v8ozu50r.fsf@bernoul.li> <87h70j7laz.fsf@gnus.org> <87a66b7kw7.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWdkXFgYltBNSxv gX6urpL////1g5C3AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKBA0qBkfLJ4cAAAGISURBVDjLdZPh kYQgDIXhoAACV4BQAcgWwI70X9O9BHTVc/PDGfKRl5BEpa5GbAn2zT+B/sEZXv8AioB4A1eprzn8 HdBufgJTqLIRhVpD7/09gaYTeF1AGCCAnYEJNbzs9h9o3M6qllCRrB/AKgOgACBW6QDNtgFMgFLN B+i9aZIIgCJFTdAkh6r8naBMYPrGUgBBlDYBrXcGmkYm+BE4cwCQDiajQlwrs1eWQXf8nmb10nUa fUcwcvRsM3RKWt4+0ZAaYHPZKEgsKUUKEmG5qt7IKi8DinGXQqEvPNLhxI7Ic/8AYxw2QULSBSDx mhh4BuUETGBpdt9BphX3JcsH1K6ckWP6Byx6PHLz/sR9tI03hR3k0Ftp1ogA4KctRL8dW/aRyuot b9ZRnkGobYKApoY17T1B3SNHFv4BR47sXMh63TuyV6UwCl6vZ6BOYP8NMDxXz0C6i2kTRyD/FcBB bvxRZW+JSHEnNJ1stlIRPXjvwMdH4GnsyQRjAHL5JCQgzZFeTaUv9gchl3huqTRFngAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wNFQxMzo0MjowNiswMDowMGSjw44AAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMTAtMDRUMTM6NDI6MDYrMDA6MDAV/nsyAAAAAElFTkSuQmCC X-Now-Playing: Latin Quarter's _Modern Times_: "The New Millionaires" Date: Tue, 04 Oct 2022 15:59:46 +0200 Message-ID: <875ygz7kq5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > This suggest that the signature should be > > (func sequence &optional delete-element) > > which defaults to nil, but could be "" here, and use seq-keep. But that gets us into problems w.r.t. the comparison function -- we can use delq here for "", but not for "foo", which seems inconsistent. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > This suggest that the signature should be > > (func sequence &optional delete-element) > > which defaults to nil, but could be "" here, and use seq-keep. But that gets us into problems w.r.t. the comparison function -- we can use delq here for "", but not for "foo", which seems inconsistent. So... we're back to the (func sequence) as the signature. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 15:46:47 2022 Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 19:46:48 +0000 Received: from localhost ([127.0.0.1]:55275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnsN-0001vL-Lj for submit@debbugs.gnu.org; Tue, 04 Oct 2022 15:46:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnsL-0001v4-OB for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 15:46:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LsdR8GPQm2wTA/REUwQnEXIX8yhTYTCh2N9fLgjhPk0=; b=O3vDBVNi1ubkO6BV6+4WIXNtcS 1vq5rU551PKvyhOWvmXTM5VmCSetKwY7dTNwCmD2AD8N1hYPKr+CoGFuUJz2zGi9gyKXJvvjGXOIY ROaTHjEh5DQaeQvmP+Dg+3ZsYMcAFMFUuyReVZ8tWg7l1sIO5B8CfrN7SPcRSQU1lB8U=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofnsC-00084D-HO; Tue, 04 Oct 2022 21:46:38 +0200 From: Lars Ingebrigtsen To: Jonas Bernoulli Subject: Re: bug#58278: Add new function seq-keep In-Reply-To: <875ygz7kq5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 15:59:46 +0200") References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87v8ozu50r.fsf@bernoul.li> <87h70j7laz.fsf@gnus.org> <87a66b7kw7.fsf@gnus.org> <875ygz7kq5.fsf@gnus.org> X-Now-Playing: Howard Jones's _Dream Into Action_: "Look Mama" Date: Tue, 04 Oct 2022 21:46:35 +0200 Message-ID: <87h70j5q3o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > So... we're back to the (func sequence) as the signature. So I've now added this to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58278 Cc: 58278@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > So... we're back to the (func sequence) as the signature. So I've now added this to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 15:46:51 2022 Received: (at control) by debbugs.gnu.org; 4 Oct 2022 19:46:51 +0000 Received: from localhost ([127.0.0.1]:55278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnsQ-0001va-TI for submit@debbugs.gnu.org; Tue, 04 Oct 2022 15:46:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnsP-0001vA-1W for control@debbugs.gnu.org; Tue, 04 Oct 2022 15:46:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1GRnIygjXn8KEDt6ws8W9bOOYxrV2Glm/g+0Wn5+RNQ=; b=aHgtOKjWu3azfazrx6yLZ+36FM TxpAo5c+yZE7fxVhD4tUfqHCveMaQF3NM2XMb2lHXCTIFyBpIP/mg0Ff9i8hsiihSQth/Y/GngkrH Y0wQGTdxbCYaddUx/wOreTeQvSOjoVuYgAEtNW9HPuO+m4hU4m94x/SgL8M+2yLh5/vI=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofnsH-00084K-3K for control@debbugs.gnu.org; Tue, 04 Oct 2022 21:46:43 +0200 Date: Tue, 04 Oct 2022 21:46:40 +0200 Message-Id: <87fsg35q3j.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58278 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 58278 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 58278 29.1 quit From unknown Sun Jun 22 11:44:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 02 Nov 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From unknown Sun Jun 22 11:44:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug No longer marked as fixed in versions 29.1 and reopened. Date: Thu, 17 Nov 2022 02:03:01 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug No longer marked as fixed in versions 29.1 and reopened. thanks # This fakemail brought to you by your local debbugs # administrator