[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sortcar and sort-subr

From: David Kastrup
Subject: Re: sortcar and sort-subr
Date: 24 May 2003 19:11:02 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Stefan Monnier" <monnier+gnu/address@hidden> writes:

> While adding a `predicate' argument to sort-subr, I noticed that
> it uses a `sortcar' function (if fboundp) that I've never heard
> of and that doesn't exist and seems never to have existed.

Probably some remniscent of dynamic binding: use something like
(flet ((softcar some-function)) (sort-subr ...

> Any objection to removing it (and adding a `predicate' argument for
> when your keys can't conveniently be numbers or strings) ?

Perhaps do a grep through other sources first to make sure it is
never used in that (ugly) manner.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]