GNU bug report logs -
#19896
23.1; reverse-region is slow compared to sort-columns
Previous Next
Reported by: asparagus <at> comcast.net
Date: Wed, 18 Feb 2015 17:59:02 UTC
Severity: minor
Found in version 23.1
Fixed in version 25.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sat, 18 Apr 2015 20:49:10 -0400
with message-id <cd618tt01l.fsf <at> fencepost.gnu.org>
and subject line Re: bug#19896: Please modify documentation to close this bug
has caused the debbugs.gnu.org bug report #19896,
regarding 23.1; reverse-region is slow compared to sort-columns
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
19896: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19896
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
The emacs manual recommends 'M-x reverse-region' as a companion to 'M-x sort-columns' to achieve a descending-order column sort. However, for large regions (>100k lines), 'M-x reverse-region' is noticeably slower than 'M-x sort-columns', making descending sort much slower than ascending sort.
A workaround on linux: use 'C-u M-x shell-command-on-region' with tac (the opposite of cat) instead of using 'M-x reverse-region'.
FROM THE MANUAL:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Sorting.html
M-x reverse-region
Reverse the order of the lines in the region. This is useful for sorting into descending order by fields or columns, since those sort commands do not have a feature for doing that.
[Message part 3 (message/rfc822, inline)]
Version: 25.1
asparagus <at> comcast.net wrote:
> Add the following to the description of M-x sort-columns:
> "A numeric argument means sort into descending order."
>
> Remove "or columns" from the description of M-x reverse-region.
Thanks; done in the source. (The versions on www.gnu.org will probably
not be updated until the next Emacs release.)
This bug report was last modified 10 years and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.