Nicolas Richard <[email protected]> writes:

>> A function `assoc-delete-all' would be nice.
>
> I think this is it :
>
> (defun assoc-delete-all (key alist)
>   (cl-remove-if
>    (lambda (x)
>      (equal key
>             (car x)))
>    alist))

To be equivalent with `assq-delete-all' which ignores non-cons elements,
you need something like

  (lambda (x)
    (and (consp x)
         (equal key (car x))))

as predicate.

Bye,
Tassilo

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to