diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-06-27 21:42:16 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-06-27 21:42:16 +0100 |
commit | 0eedb5af0b9f505dda9418323c74e992a40e5585 (patch) | |
tree | 9ef1315ecb577c36b062e8b3cb7a7c1bed6fd426 /lisp/sort.el | |
parent | 24f68d6bfc83b5514d928853ffd86b97c53e1623 (diff) | |
parent | 118c07e02e939c9f52688091509d4bff2a897032 (diff) | |
download | emacs-0eedb5af0b9f505dda9418323c74e992a40e5585.tar.gz emacs-0eedb5af0b9f505dda9418323c74e992a40e5585.tar.bz2 emacs-0eedb5af0b9f505dda9418323c74e992a40e5585.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/sort.el')
-rw-r--r-- | lisp/sort.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/sort.el b/lisp/sort.el index de0e1b9519d..f878db24a3c 100644 --- a/lisp/sort.el +++ b/lisp/sort.el @@ -554,9 +554,6 @@ is the one that ends before END." (if (> beg end) (let (mid) (setq mid end end beg beg mid))) (save-excursion - (when (or (< (line-beginning-position) beg) - (< end (line-end-position))) - (user-error "There are no full lines in the region")) ;; Put beg at the start of a line and end and the end of one -- ;; the largest possible region which fits this criteria. (goto-char beg) @@ -568,6 +565,8 @@ is the one that ends before END." ;; reversal; it isn't difficult to add it afterward. (or (and (eolp) (not (bolp))) (progn (forward-line -1) (end-of-line))) (setq end (point-marker)) + (when (<= end beg) + (user-error "There are no full lines in the region")) ;; The real work. This thing cranks through memory on large regions. (let (ll (do t)) (while do |