From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Omar Polo <op@omarpolo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: cl-delete-if vs list of overlays
Date: Wed, 09 Dec 2020 05:17:57 -0500 [thread overview]
Message-ID: <874kkv706i.fsf@gnuvola.org> (raw)
In-Reply-To: <87zh2nfgq1.fsf@omarpolo.com> (Omar Polo's message of "Wed, 09 Dec 2020 10:53:26 +0100")
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
() Omar Polo <op@omarpolo.com>
() Wed, 09 Dec 2020 10:53:26 +0100
Why is cl-delete-if not removing items from the list? (setq
delp t) evaluates to t, so it should delete. cl-delete-if a
destructive function. This is what I'm not getting.
On my system, ‘C-h f cl-delete-if RET’ sez:
This is a destructive function; it reuses the storage of SEQ
whenever possible.
So, your question becomes: When is it NOT possible to reuse the
storage of SEQ in the process of deleting an item?
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query) ; (2020) Software Libero
(pcase (context query) ; = Dissenso Etico
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 219 bytes --]
next prev parent reply other threads:[~2020-12-09 10:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 9:53 cl-delete-if vs list of overlays Omar Polo
2020-12-09 10:17 ` Thien-Thi Nguyen [this message]
2020-12-09 11:05 ` Omar Polo
2020-12-09 16:14 ` Drew Adams
2020-12-09 18:16 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kkv706i.fsf@gnuvola.org \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@gnu.org \
--cc=op@omarpolo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).