Mercurial > emacs
diff lisp/sort.el @ 49597:e88404e8f2cf
Trailing whitespace deleted.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Feb 2003 12:29:42 +0000 |
parents | 93b43f689e56 |
children | c205b3bd7372 |
line wrap: on
line diff
--- a/lisp/sort.el Tue Feb 04 12:03:59 2003 +0000 +++ b/lisp/sort.el Tue Feb 04 12:29:42 2003 +0000 @@ -97,7 +97,7 @@ ((consp (car (car sort-lists))) (function (lambda (a b) - (> 0 (compare-buffer-substrings + (> 0 (compare-buffer-substrings nil (car a) (cdr a) nil (car b) (cdr b)))))) (t @@ -108,7 +108,7 @@ ((consp (car (car sort-lists))) (function (lambda (a b) - (> 0 (compare-buffer-substrings + (> 0 (compare-buffer-substrings nil (car (car a)) (cdr (car a)) nil (car (car b)) (cdr (car b))))))) (t @@ -205,7 +205,7 @@ (delete-region min (1+ min)))))) ;;;###autoload -(defun sort-lines (reverse beg end) +(defun sort-lines (reverse beg end) "Sort lines in region alphabetically; argument means descending order. Called from a program, there are three arguments: REVERSE (non-nil means reverse order), BEG and END (region to sort). @@ -429,7 +429,7 @@ ;; using negative prefix arg to mean "reverse" is now inconsistent with ;; other sort-.*fields functions but then again this was before, since it ;; didn't use the magnitude of the arg to specify anything. - (interactive "P\nsRegexp specifying records to sort: + (interactive "P\nsRegexp specifying records to sort: sRegexp specifying key within record: \nr") (cond ((or (equal key-regexp "") (equal key-regexp "\\&")) (setq key-regexp 0))