unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40230: 26.3; Add (remove|delete)-if(-not) to plain Emacs
@ 2020-03-25 20:49 Drew Adams
  2020-03-26 23:37 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2020-03-25 20:49 UTC (permalink / raw)
  To: 40230

Enhancement request: Please add simple, list-only `delete-if',
`delete-if-not', `remove-if', and `remove-if-not' functions to Emacs.

Simple list-only versions are fine.  It seems silly to load cl-seq.el,
which in turn requires cl-lib.el, just for such mundane, simple
workhorses.  In my libraries I redefine one or more of these (for
lists only) for individual libraries, to avoid users having to load
another library just for such a function.

This has been requested several times before, I believe.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40230: 26.3; Add (remove|delete)-if(-not) to plain Emacs
  2020-03-25 20:49 bug#40230: 26.3; Add (remove|delete)-if(-not) to plain Emacs Drew Adams
@ 2020-03-26 23:37 ` Juri Linkov
  2021-01-28  8:38   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2020-03-26 23:37 UTC (permalink / raw)
  To: Drew Adams; +Cc: 40230

> Enhancement request: Please add simple, list-only `delete-if',
> `delete-if-not', `remove-if', and `remove-if-not' functions to Emacs.
>
> Simple list-only versions are fine.  It seems silly to load cl-seq.el,

cl-seq.el?  I thought that everyone uses seq.el nowadays
where seq-filter and seq-remove are autoloaded.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40230: 26.3; Add (remove|delete)-if(-not) to plain Emacs
  2020-03-26 23:37 ` Juri Linkov
@ 2021-01-28  8:38   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-28  8:38 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 40230

Juri Linkov <juri@linkov.net> writes:

>> Enhancement request: Please add simple, list-only `delete-if',
>> `delete-if-not', `remove-if', and `remove-if-not' functions to Emacs.
>>
>> Simple list-only versions are fine.  It seems silly to load cl-seq.el,
>
> cl-seq.el?  I thought that everyone uses seq.el nowadays
> where seq-filter and seq-remove are autoloaded.

Yup; seq is the recommended interface, so adding functions like these
would just be confusing.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-28  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-25 20:49 bug#40230: 26.3; Add (remove|delete)-if(-not) to plain Emacs Drew Adams
2020-03-26 23:37 ` Juri Linkov
2021-01-28  8:38   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).