]> git.eshelyaron.com Git - emacs.git/commitdiff
(sort-paragraphs): Use proper paragraph definition instead of just checking
authorKarl Heuer <kwzh@gnu.org>
Wed, 2 Feb 1994 21:57:02 +0000 (21:57 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 2 Feb 1994 21:57:02 +0000 (21:57 +0000)
for whitespace.

lisp/sort.el

index b9aa5b22e6e4eb28b718afb39ca9969dadd1aa3c..61fa29883173fb7ffeca3c3bd9cd7e141e076c30 100644 (file)
@@ -211,7 +211,10 @@ REVERSE (non-nil means reverse order), BEG and END (region to sort)."
       (narrow-to-region beg end)
       (goto-char (point-min))
       (sort-subr reverse
-                (function (lambda () (skip-chars-forward "\n \t\f")))
+                (function
+                 (lambda ()
+                   (while (and (not (eobp)) (looking-at paragraph-separate))
+                     (forward-line 1))))
                 'forward-paragraph))))
 
 ;;;###autoload