mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(sort-fold-case): New variable.
(sort-subr): Bind case-fold-search from sort-fold-case.
This commit is contained in:
parent
b553cffa92
commit
faf603f3a3
@ -29,6 +29,9 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
(defvar sort-fold-case nil
|
||||
"*Non-nil if the buffer sort functions should ignore case.")
|
||||
|
||||
(defun sort-subr (reverse nextrecfun endrecfun &optional startkeyfun endkeyfun)
|
||||
"General text sorting routine to divide buffer into records and sort them.
|
||||
Arguments are REVERSE NEXTRECFUN ENDRECFUN &optional STARTKEYFUN ENDKEYFUN.
|
||||
@ -69,7 +72,8 @@ same as ENDRECFUN."
|
||||
(if messages (message "Finding sort keys..."))
|
||||
(let* ((sort-lists (sort-build-lists nextrecfun endrecfun
|
||||
startkeyfun endkeyfun))
|
||||
(old (reverse sort-lists)))
|
||||
(old (reverse sort-lists))
|
||||
(case-fold-search sort-fold-case))
|
||||
(if (null sort-lists)
|
||||
()
|
||||
(or reverse (setq sort-lists (nreverse sort-lists)))
|
||||
|
Loading…
Reference in New Issue
Block a user