From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: cl-delete-if vs list of overlays Date: Wed, 09 Dec 2020 13:16:26 -0500 Message-ID: <87wnxqhmkl.fsf@gnuvola.org> References: <87zh2nfgq1.fsf@omarpolo.com> <874kkv706i.fsf@gnuvola.org> <87wnxrfdea.fsf@omarpolo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25271"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 09 20:38:35 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kn5II-0006TD-OH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 20:38:34 +0100 Original-Received: from localhost ([::1]:58090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kn5IH-0003w4-Oq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 14:38:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn42b-0001dI-SM for help-gnu-emacs@gnu.org; Wed, 09 Dec 2020 13:18:17 -0500 Original-Received: from delivery.mailspamprotection.com ([146.66.121.64]:53123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn42Y-0002mF-Up for help-gnu-emacs@gnu.org; Wed, 09 Dec 2020 13:18:17 -0500 Original-Received: from 241.110.209.35.bc.googleusercontent.com ([35.209.110.241] helo=giow1035.siteground.us) by se20.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1kn42D-0005pb-Vc for help-gnu-emacs@gnu.org; Wed, 09 Dec 2020 12:18:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnuvola.org ; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc: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=RUKB4eNGBBDlYTFANBb09PjMnrMCNscVXKMkq2ihFW4=; b=l4LYjHKMpret0FF9l081qOos7x /UIBCntpRVx+Zeax5PGFy6VG5s5ACa8dDaY1TNoHlAR1vnnqQQ4JarrKR68fLtpnXioJ4pN/ply3L g328T3zz0CyImPSob4WClmCn6bHLY6uPwFWIEq2y4shDKecfDidjMfwBViL+rexjwkbA=; Original-Received: from [50.89.166.226] (port=45880 helo=miasma) by giow1035.siteground.us with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90.1) (envelope-from ) id 1kn428-000Jsu-KL for help-gnu-emacs@gnu.org; Wed, 09 Dec 2020 18:17:48 +0000 In-Reply-To: <87wnxrfdea.fsf@omarpolo.com> (Omar Polo's message of "Wed, 09 Dec 2020 12:05:17 +0100") X-Originating-IP: 35.209.110.241 X-SpamExperts-Domain: giow1035.siteground.us X-SpamExperts-Username: 35.209.110.241 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.209.110.241@giow1035.siteground.us X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.22) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+K0I954zZGQ+s8h/Uf5zf7PUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5ztkw0Sp1bKbDyWds9ioHWR9V7VV/MfM8W1KAr4lekKT4JL M0i5ZAms0EHrvcCaVIPX06Ttbkx2OYjwl9SLW12+zIXV52OyeiH3YVVX92r9x6alwDCnxukAFH0a kDmPvhLH52tgB3BXKkoS7IwvPAuQj4tANry8HDRI8Ro4ghK3frL1zVmPfEJqNwUdJH+0MQKMyGnD IpSchlco6RIDoNg/c+4l84gBClgS15jvOaQcD2hfj9whi8KpGkNMaaLS9DIcqbdy+7WYS7ujrPXH qhox0HpT3S2SFmqVvJUoDpLg17fDQD9rTYKpWUjzugBu3bSZMNCdTf3VhQ5Kwn7v2Ln9pLzJ+tKH 5sEcYC081STUFBUdFqkFA+YKkUlydLh5cSaHt73jJKU44zPi+Pzpc9G5DMXe7HNAN2+ce9dIwwYz hLSJjzN5e8VFlEjmqR4rzvUXKu1VbgppFJRGoXLED7mHbbgVl4iunqFoEGZzSy+km6VHO6XhXqN3 g0DWG4Tioc84Kpmg5+UpQ2PZprb+nvdWlgS6K9aAlnrXFI3hveFdl/UJCAOD6VE1Ts/UEE6F26+K am285KVdKsRM4xt1Bi8xHVlqnd/ufsNFPOazKpSwIV9e17V7WvBKRDPihsQRMgWKum9sC/+QkKLq f7xDcOa+1P3k2kPy9wmDetZJiaD6+Tx0GuEAJqQ00Zpp957SE4wCVh4ANifEKBwT68iJgrzNd5Xd G63CgJuXpt48NSiQMYLUAj1reKtuJ X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Received-SPF: pass client-ip=146.66.121.64; envelope-from=ttn@gnuvola.org; helo=delivery.mailspamprotection.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126190 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable () Omar Polo () Wed, 09 Dec 2020 12:05:17 +0100 Oh my, I feel so stupid now... No worries. I was under the (wrong) assumption that a destructive function will always modify the list, when it's not the case. I needed to setq the result of cl-delete-if to the list itself to cover all the cases. But then you wouldn't have had the opportunity to read the docstring (again?). :-D Thanks! Emacs is self-documenting but unfortunately not self-explanatory (yet). Thanks go to the Emacs hackers who write docstrings. =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) ; (2020) Software Libero (pcase (context query) ; =3D Dissenso Etico (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA =2D-------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iG4EARECAC4WIQR0jqDoHLinSJv6bORnAyIkTIB1AgUCX9EUfBAcdHRuQGdudXZv bGEub3JnAAoJEGcDIiRMgHUClWMAoKcWF8i6GNzum1LD6Z+zRuKuYlWpAJ4p3Dzp OcWxi4Xo097DKpOhwt/VPA== =yYMw -----END PGP SIGNATURE----- --=-=-=--