* sortcar and sort-subr
@ 2003-05-24 16:25 Stefan Monnier
2003-05-24 17:11 ` David Kastrup
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2003-05-24 16:25 UTC (permalink / raw)
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.
Any objection to removing it (and adding a `predicate' argument
for when your keys can't conveniently be numbers or strings) ?
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sortcar and sort-subr
2003-05-24 16:25 sortcar and sort-subr Stefan Monnier
@ 2003-05-24 17:11 ` David Kastrup
0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2003-05-24 17:11 UTC (permalink / raw)
Cc: emacs-devel
"Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-24 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-24 16:25 sortcar and sort-subr Stefan Monnier
2003-05-24 17:11 ` David Kastrup
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.