all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there already an alist function which gets all matching elements,  not just the first?
@ 2022-10-05 10:00 Alan Mackenzie
  2022-10-05 10:45 ` Robert Pluim
  2022-10-05 18:16 ` Philip Kaludercic
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2022-10-05 10:00 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

I want to be able to get all matching elements from an alist (thinking
about extending imenu).  Something like

    (assoc-all key list)

which would return a list of matches.  After all, we have functions
which _delete_ all matches from an alist.

Does such a function already exist, perhaps in cl-*.el?

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2022-10-06 18:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-05 10:00 Is there already an alist function which gets all matching elements, not just the first? Alan Mackenzie
2022-10-05 10:45 ` Robert Pluim
2022-10-06 18:24   ` Alan Mackenzie
2022-10-05 18:16 ` Philip Kaludercic
2022-10-05 18:35   ` Lars Ingebrigtsen
2022-10-06 18:34   ` Alan Mackenzie

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.