Mercurial > emacs
comparison lisp/sort.el @ 5747:cbd0de32e997
(sort-paragraphs): Use proper paragraph definition instead of just checking
for whitespace.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 02 Feb 1994 21:57:02 +0000 |
parents | 6eb86cda3856 |
children | 79765ff7bfa1 |
comparison
equal
deleted
inserted
replaced
5746:94535442be19 | 5747:cbd0de32e997 |
---|---|
209 (save-excursion | 209 (save-excursion |
210 (save-restriction | 210 (save-restriction |
211 (narrow-to-region beg end) | 211 (narrow-to-region beg end) |
212 (goto-char (point-min)) | 212 (goto-char (point-min)) |
213 (sort-subr reverse | 213 (sort-subr reverse |
214 (function (lambda () (skip-chars-forward "\n \t\f"))) | 214 (function |
215 (lambda () | |
216 (while (and (not (eobp)) (looking-at paragraph-separate)) | |
217 (forward-line 1)))) | |
215 'forward-paragraph)))) | 218 'forward-paragraph)))) |
216 | 219 |
217 ;;;###autoload | 220 ;;;###autoload |
218 (defun sort-pages (reverse beg end) | 221 (defun sort-pages (reverse beg end) |
219 "Sort pages in region alphabetically; argument means descending order. | 222 "Sort pages in region alphabetically; argument means descending order. |