aboutsummaryrefslogtreecommitdiff
path: root/compat.texi
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-03-23 18:49:01 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-03-23 18:49:01 +0100
commitc298296454d13fd7741633bbb9f55e0f0bccf7fd (patch)
tree30daada5cbca39f0a7491da8e4a50be4a8990093 /compat.texi
parent7d116d87934f948ad2556d5443358a55e465bc4d (diff)
Revert "compat-30: Add sort-on"
This reverts commit 31899a2a4d04335512a52f120087f699c00da693.
Diffstat (limited to 'compat.texi')
-rw-r--r--compat.texi20
1 files changed, 0 insertions, 20 deletions
diff --git a/compat.texi b/compat.texi
index 7cae51f..68ae876 100644
--- a/compat.texi
+++ b/compat.texi
@@ -3350,26 +3350,6 @@ older than 30.1. Note that due to upstream changes, it might happen
that there will be the need for changes, so use these functions with
care.
-@c copied from lispref/sequences.texi
-@defun sort-on sequence predicate accessor
-This function stably sorts the list @var{sequence}, comparing the sort
-keys of the elements using @var{predicate}. The comparison function
-@var{predicate} accepts two arguments, the sort keys to compare, and
-should return non-@code{nil} if the element corresponding to the first
-key should sort before the element corresponding to the second key.
-The function computes a sort key of each element by calling the
-@var{accessor} function on that element; it does so exactly once for
-each element of @var{sequence}. The @var{accessor} function is called
-with a single argument, an element of @var{sequence}.
-
-This function implements what is known as
-@dfn{decorate-sort-undecorate} paradigm, of the Schwartzian transform.
-It basically trades CPU for memory, creating a temporary list with the
-computed sport keys, then mapping @code{car} over the result of
-sorting that temporary list. Unlike with @code{sort}, the return list
-is a copy; the original list is left intact.
-@end defun
-
@defun get-truename-buffer filename
Return the buffer with @code{file-truename} equal to @var{filename} (a string).
If there is no such live buffer, return nil.