Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
594f37aa
Commit
594f37aa
authored
Dec 21, 2012
by
Chong Yidong
Browse files
* sort.el (sort-subr): Doc fix.
Fixes: debbugs:13056
parent
1b947faa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/sort.el
lisp/sort.el
+7
-2
No files found.
lisp/ChangeLog
View file @
594f37aa
2012-12-21 Chong Yidong <cyd@gnu.org>
* sort.el (sort-subr): Doc fix (Bug#13056).
2012-12-20 Bastien Guerry <bzg@gnu.org>
* ldefs-boot.el (tags-search): Fix typo.
...
...
lisp/sort.el
View file @
594f37aa
...
...
@@ -77,8 +77,13 @@ ENDKEYFUN moves from the start of the sort key to the end of the sort key.
ENDKEYFUN may be nil if STARTKEYFUN returns a value or if it would be the
same as ENDRECFUN.
PREDICATE is the function to use to compare keys. If keys are numbers,
it defaults to `<', otherwise it defaults to `string<'."
PREDICATE, if non-nil, is the predicate function for comparing
keys; it is called with two arguments, the keys to compare, and
should return non-nil if the first key should sort before the
second key. If PREDICATE is nil, comparison is done with `<' if
the keys are numbers, with `compare-buffer-substrings' if the
keys are cons cells (the car and cdr of each cons cell are taken
as start and end positions), and with `string<' otherwise."
;; Heuristically try to avoid messages if sorting a small amt of text.
(
let
((
messages
(
>
(
-
(
point-max
)
(
point-min
))
50000
)))
(
save-excursion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment