From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 12:58:12 2015 Received: (at submit) by debbugs.gnu.org; 18 Feb 2015 17:58:12 +0000 Received: from localhost ([127.0.0.1]:47967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO8t0-0004SY-Tq for submit@debbugs.gnu.org; Wed, 18 Feb 2015 12:58:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36860) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO8XQ-0003xG-Tl for submit@debbugs.gnu.org; Wed, 18 Feb 2015 12:35:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO8XM-0001lI-Kx for submit@debbugs.gnu.org; Wed, 18 Feb 2015 12:35:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO8XM-0001lE-HV for submit@debbugs.gnu.org; Wed, 18 Feb 2015 12:35:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO8XL-0002zg-JR for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 12:35:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO8XI-0001iw-SH for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 12:35:47 -0500 Received: from resqmta-ch2-11v.sys.comcast.net ([69.252.207.43]:57192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO8XI-0001il-Kk for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 12:35:44 -0500 Received: from resomta-ch2-08v.sys.comcast.net ([69.252.207.104]) by resqmta-ch2-11v.sys.comcast.net with comcast id ttbY1p0022Fh1PH01tbiiW; Wed, 18 Feb 2015 17:35:42 +0000 Received: from resmail-ch2-511v.sys.comcast.net ([162.150.50.35]) by resomta-ch2-08v.sys.comcast.net with comcast id ttbi1p00d0lZslN01tbi3P; Wed, 18 Feb 2015 17:35:42 +0000 Date: Wed, 18 Feb 2015 17:35:42 +0000 (UTC) From: asparagus@comcast.net To: bug-gnu-emacs@gnu.org Message-ID: <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> In-Reply-To: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> Subject: 23.1; reverse-region is slow compared to sort-columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [::ffff:67.128.198.190] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - FF31 (Linux)/8.0.7_GA_6031) Thread-Topic: 23.1; reverse-region is slow compared to sort-columns Thread-Index: lbzmDaZofEhJji7JTNkWY0yfc0g5ng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1424280942; bh=xZdwCwF+ADlYFADx7RJzMU/W0xCi6p/ULGEDFLkg/HY=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=BarUg0oO/PqHtm2LGmVEWqdcEvpUuQMey6V+0qOM++knltemxwHkvh5HQJ6o06LGk Z6zm2+RUGAQAzC9PRvwF61DEMMchPyj6uvQWtvzr/D12FSmD2KN8yiSDLSLSJaW4bw wGR4lFt264gWPNuMzkFKNuFyrVhSeKQ3WJjAsy9d6Mru0YNueBSqxCrzDyll7b1Iv4 FXLmf1ruh3lt83WCXFXYCpb9/wekDhfGfLGPmPAJzev2oPYW8HTcZPRlyh0R3+mYcT cCUqHCsQKKTVVR9aLgn/qRx+uLl415p8Ah09v8a8c8aTMtgTXCZAPYZDMW88K4Hj6F 7Bcwe9I9gLGOQ== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 18 Feb 2015 12:58:09 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 13:29:20 2015 Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 18:29:20 +0000 Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9NA-0005Dh-2z for submit@debbugs.gnu.org; Wed, 18 Feb 2015 13:29:20 -0500 Received: from fely.am-1.org ([78.47.74.50]:44429) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9N7-0005DX-5R for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 13:29:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=qRBpfBnxeFxI+1J0/W/3KNKO3JdEs5gt+72dhSZ3lCQ=; b=PBomljJAx72zA5Z2g+Aa8bLQnhYVta/Gt30Pua3XKkzkPru1Uy9SKqoYpOKj7FqRKIvLXH1q9koxh8ew+7byv1gZro1tvxDK681JUdMhCLXXzy96Idg0vqT61OK9G5yRyXCY/GxVJ+Hc7mIY3TkDROjEyzGqUkckbHQnj9DYvk0=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YO9N5-0001WT-RH; Wed, 18 Feb 2015 18:29:15 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YO9Mz-000210-0H; Thu, 19 Feb 2015 01:29:09 +0700 From: Ivan Shmakov To: 19896@debbugs.gnu.org, asparagus@comcast.net Subject: Re: bug#19896: 23.1; reverse-region is slow compared to sort-columns References: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> Mail-Followup-To: 19896@debbugs.gnu.org Date: Wed, 18 Feb 2015 18:29:08 +0000 In-Reply-To: <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> (asparagus@comcast.net's message of "Wed, 18 Feb 2015 17:35:42 +0000 (UTC)") Message-ID: <873863845n.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 19896 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> asparagus writes: > The emacs manual recommends 'M-x reverse-region' as a companion to > 'M-x sort-columns' to achieve a descending-order column sort. This could be a bug in the manual, as sort-columns has an optional (prefix) =E2=80=98reverse=E2=80=99 argument since at least 1990 (d32200ac.) > 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. I don=E2=80=99t seem to see this on the current master; at a glance, M-x reverse-region takes less time to complete than M-x sort-columns. The current stable version of Emacs is 24.4, with the pretest for 24.5 being available since 17th [1]. Could you please check if this issue also manifests with either of these versions? TIA. [1] news:87mw4c6gjn.fsf@petton.fr http://permalink.gmane.org/gmane.emacs.devel/183187 > 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'. On a GNU system (as well as on any other system featuring GNU Coreutils), it should be possible to just use sort(1) for the purpose. For instance, the =E2=80=9Creverse=E2=80=9D option is =E2=80= =98-r=E2=80=99. [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 14:01:14 2015 Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 19:01:14 +0000 Received: from localhost ([127.0.0.1]:48013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9s2-00060a-Fj for submit@debbugs.gnu.org; Wed, 18 Feb 2015 14:01:14 -0500 Received: from mtaout27.012.net.il ([80.179.55.183]:35496) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9ry-00060P-A2 for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 14:01:12 -0500 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NJZ00700DOVCT00@mtaout27.012.net.il> for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 20:55:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJZ006HYDWJMT10@mtaout27.012.net.il>; Wed, 18 Feb 2015 20:55:31 +0200 (IST) Date: Wed, 18 Feb 2015 21:01:15 +0200 From: Eli Zaretskii Subject: Re: bug#19896: 23.1; reverse-region is slow compared to sort-columns In-reply-to: <873863845n.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il To: Ivan Shmakov Message-id: <83zj8b3uys.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> <873863845n.fsf@violet.siamics.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19896 Cc: 19896@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Ivan Shmakov > Date: Wed, 18 Feb 2015 18:29:08 +0000 > > > 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'. > > On a GNU system (as well as on any other system featuring > GNU Coreutils), it should be possible to just use sort(1) for > the purpose. For instance, the “reverse” option is ‘-r’. But sort(1)'s sort order is locale-specific, whereas that of Emacs isn't. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 14:13:14 2015 Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 19:13:14 +0000 Received: from localhost ([127.0.0.1]:48028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOA3e-0006HH-3E for submit@debbugs.gnu.org; Wed, 18 Feb 2015 14:13:14 -0500 Received: from fely.am-1.org ([78.47.74.50]:44437) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOA3b-0006H5-7x for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 14:13:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=szvSmmAbcutqJeUaUrXP7qz7nK8gzVXHAOsjOS26PvQ=; b=PzqZxpR5D4PGwGqICP37oKsoHYwU3qzPQg1mgoKCBEAuyrWV+ypJGfQwJVyQS8webmUBACh0c/AWo9pVovY6ZQ0vrOD8iaz/E3z8DPH+Imj8HWFyI1un5jDIjxHeNueCUsInU8gSWHexFqUpAacMyUKtU6bCIh+biFDPm61I3oo=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YOA3Z-0001q4-DX for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 19:13:09 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YOA3R-0002B9-C2 for 19896@debbugs.gnu.org; Thu, 19 Feb 2015 02:13:01 +0700 From: Ivan Shmakov To: 19896@debbugs.gnu.org Subject: Re: bug#19896: 23.1; reverse-region is slow compared to sort-columns References: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> <873863845n.fsf@violet.siamics.net> <83zj8b3uys.fsf@gnu.org> Mail-Followup-To: 19896@debbugs.gnu.org Date: Wed, 18 Feb 2015 19:13:00 +0000 In-Reply-To: <83zj8b3uys.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Feb 2015 21:01:15 +0200") Message-ID: <87twyj6nk3.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 19896 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Wed, 18 Feb 2015 18:29:08 +0000 [=E2=80=A6] >> On a GNU system (as well as on any other system featuring GNU >> Coreutils), it should be possible to just use sort(1) for the >> purpose. For instance, the =E2=80=9Creverse=E2=80=9D option is =E2=80= =98-r=E2=80=99. > But sort(1)'s sort order is locale-specific, whereas that of Emacs > isn't. How is that a disadvantage? The user can easily force any locale of those available on the system with an explicit LC_ALL=3D, like: $ LC_ALL=3Dde_DE.UTF-8 sort < list.de=20 $ LC_ALL=3Dru_RU.UTF-8 sort < list.ru=20 $ LC_ALL=3DC sort < list.ascii=20 For one thing, M-x sort-lines seems to put =D1=91 after =D1=8F, while in Russian it comes between =D0=B5 and =D0=B6. And similarly for =C3=9F (and= the accented letters) in German, etc. --=20 FSF associate member #7257 np. Bombtrack =E2=80=94 clawz/bomb =E2=80=A6 3= 013 B6A0 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 14:19:45 2015 Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 19:19:45 +0000 Received: from localhost ([127.0.0.1]:48045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOA9w-0006Rh-Pg for submit@debbugs.gnu.org; Wed, 18 Feb 2015 14:19:45 -0500 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:53527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOA9v-0006Ra-KF for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 14:19:43 -0500 Received: from resomta-ch2-20v.sys.comcast.net ([69.252.207.116]) by resqmta-ch2-02v.sys.comcast.net with comcast id tvKL1p00L2XD5SV01vKjeo; Wed, 18 Feb 2015 19:19:43 +0000 Received: from resmail-ch2-511v.sys.comcast.net ([162.150.50.35]) by resomta-ch2-20v.sys.comcast.net with comcast id tvKi1p00G0lZslN01vKiY1; Wed, 18 Feb 2015 19:19:43 +0000 Date: Wed, 18 Feb 2015 19:19:42 +0000 (UTC) From: asparagus@comcast.net To: 19896@debbugs.gnu.org Message-ID: <2030319374.5932072.1424287182655.JavaMail.zimbra@comcast.net> In-Reply-To: <1358494426.5913572.1424285832847.JavaMail.zimbra@comcast.net> Subject: bug#19896 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5932071_1890141514.1424287182654" X-Originating-IP: [::ffff:67.128.198.190] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - FF31 (Linux)/8.0.7_GA_6031) Thread-Topic: bug#19896 Thread-Index: /kA5bl3VzfFgrs1RnPkbLJitsRxW8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1424287183; bh=bwiD3yiVKQkyYJW01R2HwMQNnqyTnCaOjZ7pKjvv8+w=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=RrHPq1NvBw2PLy+mgvOIOO1h/t2xrzR4Kq788OSOftvqnQaB/+zw6zr+J1Rbpf4aH bYb4KGiNPq4dF0qTEcgAas+s0PQbLLg+3bQ3kxr8xUno9/9l4X8IVfxjfAaL0IQgea bz6Ue185fgx5fkSSdd5HnRxxfg0cEjGS7afZUljVmSyOsYjEr83WInh84YiLHezegR ibDHj50rwIgN9NRe/MCpwCYxgRIBm8Yd/uqspGln2pEo28JnE1Ce0Tf4+SnkOoI9VS rWSiyndFdzcTiQ76dyWkw6GoOEUiPYL/S0ugskzWkg4ExlMf3MDgUFoNoWphmawULk cY4XNQU0D8KhQ== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19896 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) ------=_Part_5932071_1890141514.1424287182654 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Thanks for identifying the bug in the manual. I do not have access to the latest versions of emacs, but thank you for verifying that reverse-region has an efficient implementation in the latest version. Given that reverse-region is efficiently implemented in the latest versions, correcting the manual entries for sort-columns and reverse-region would provide resolution to this issue. ------=_Part_5932071_1890141514.1424287182654 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Thanks for identifying the bug in the manual.

I do not have access to the latest versions of emacs, but thank you for verifying that reverse-region has an efficient implementation in the latest version.

Given that reverse-region is efficiently implemented in the latest versions, correcting the manual entries for sort-columns and reverse-region would provide resolution to this issue.

------=_Part_5932071_1890141514.1424287182654-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 14:29:06 2015 Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 19:29:06 +0000 Received: from localhost ([127.0.0.1]:48049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOAIz-0006fH-PM for submit@debbugs.gnu.org; Wed, 18 Feb 2015 14:29:06 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:42268) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOAIx-0006f8-EH for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 14:29:04 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NJZ00L00F5FV100@a-mtaout22.012.net.il> for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 21:29:02 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJZ00L3XFGDJQA0@a-mtaout22.012.net.il>; Wed, 18 Feb 2015 21:29:02 +0200 (IST) Date: Wed, 18 Feb 2015 21:29:13 +0200 From: Eli Zaretskii Subject: Re: bug#19896: 23.1; reverse-region is slow compared to sort-columns In-reply-to: <87twyj6nk3.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il To: Ivan Shmakov Message-id: <83vbiz3to6.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> <873863845n.fsf@violet.siamics.net> <83zj8b3uys.fsf@gnu.org> <87twyj6nk3.fsf@violet.siamics.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19896 Cc: 19896@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Ivan Shmakov > Date: Wed, 18 Feb 2015 19:13:00 +0000 > > >>>>> Eli Zaretskii writes: > >>>>> From: Ivan Shmakov Date: Wed, 18 Feb 2015 18:29:08 +0000 > > […] > > >> On a GNU system (as well as on any other system featuring GNU > >> Coreutils), it should be possible to just use sort(1) for the > >> purpose. For instance, the “reverse” option is ‘-r’. > > > But sort(1)'s sort order is locale-specific, whereas that of Emacs > > isn't. > > How is that a disadvantage? I didn't say it was a disadvantage, only that the results might be different, and will almost certainly be different in different locales. > The user can easily force any locale of those available on the > system with an explicit LC_ALL=, like: > > $ LC_ALL=de_DE.UTF-8 sort < list.de > > $ LC_ALL=ru_RU.UTF-8 sort < list.ru > > $ LC_ALL=C sort < list.ascii Yes, but Emacs's sort order is not in any locale, more or less. So it's not easy to find a locale that will produce the same order as Emacs, unless you know a lot about Emacs internals. And even if you do, such a locale might not be installed on the end-user's machine. > For one thing, M-x sort-lines seems to put ё after я, while in > Russian it comes between е and ж. And similarly for ß (and the > accented letters) in German, etc. Precisely! That was my point. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 26 12:53:56 2015 Received: (at 19896) by debbugs.gnu.org; 26 Feb 2015 17:53:57 +0000 Received: from localhost ([127.0.0.1]:58902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2dI-0001dZ-HV for submit@debbugs.gnu.org; Thu, 26 Feb 2015 12:53:56 -0500 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:60832) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2dG-0001dM-7S for 19896@debbugs.gnu.org; Thu, 26 Feb 2015 12:53:54 -0500 Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-05v.sys.comcast.net with comcast id x5tP1p00627uzMh015toV4; Thu, 26 Feb 2015 17:53:48 +0000 Received: from resmail-ch2-511v.sys.comcast.net ([162.150.50.35]) by resomta-ch2-02v.sys.comcast.net with comcast id x5to1p00P0lZslN015toUH; Thu, 26 Feb 2015 17:53:48 +0000 Date: Thu, 26 Feb 2015 17:53:48 +0000 (UTC) From: asparagus@comcast.net To: 19896@debbugs.gnu.org Message-ID: <1053265764.10633428.1424973228083.JavaMail.zimbra@comcast.net> In-Reply-To: <215096857.10629626.1424972910085.JavaMail.zimbra@comcast.net> Subject: Please modify documentation to close this bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [::ffff:67.128.198.190] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - FF31 (Linux)/8.0.7_GA_6031) Thread-Topic: Please modify documentation to close this bug Thread-Index: we7whg7tjI0Ov/OG6UCP+cWvXQdliQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1424973228; bh=tXtfuqYtVY+gkWi6w6l+O4GHo+/dYPYX4unOO/zF6vA=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=m6r6XP6O4XIYOku3q6LILdAyRHZbieH7LunymkrH62En6HH1VakKPVY/ySSqBeEex 1RiJ8RndmnaTi0pHMvHx2TxMyEBerZymfD06Mu24NGjb1e5JQqGgQ6nK3XCAkkU0HG g6tDbVhfktxGkXdIiWxY+pruLB3bKwPGSkT1UPzaaFEXswN3b8828IXpe6oWc4Ix3I RirM55v/iKGGGt11xxUFL8OFPZ/H71E2gOhMFzvwPuewMyCo0toUpvaIQx3np3aJRe wVK/ufmY80fVXWTg5qpmmskiSUOpq43fkQRhE/V94c3xlJoe/siH5f2SmPB/ZjUtxt NeSRnk8iH7P9A== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19896 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) To close this bug, please modify https://www.gnu.org/software/emacs/manual/html_node/emacs/Sorting.html as follows: 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 20:49:12 2015 Received: (at 19896-done) by debbugs.gnu.org; 19 Apr 2015 00:49:12 +0000 Received: from localhost ([127.0.0.1]:60282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjdQ8-0000bd-CL for submit@debbugs.gnu.org; Sat, 18 Apr 2015 20:49:12 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45795 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjdQ6-0000bW-Qw for 19896-done@debbugs.gnu.org; Sat, 18 Apr 2015 20:49:11 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YjdQ6-0005YO-5z; Sat, 18 Apr 2015 20:49:10 -0400 From: Glenn Morris To: 19896-done@debbugs.gnu.org Subject: Re: bug#19896: Please modify documentation to close this bug References: <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> <1053265764.10633428.1424973228083.JavaMail.zimbra@comcast.net> X-Spook: JUWTF Merlin lock picking Hamas beanpole AFSPC Pine Gap X-Ran: 18{pPE@H8[c@/I%kyCH5gD>t,-XR~lu:\go}V`0J),%HZ)nA~Q&HrR`>TJ)\)4)D]vFAJ; X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 18 Apr 2015 20:49:10 -0400 In-Reply-To: <1053265764.10633428.1424973228083.JavaMail.zimbra@comcast.net> (asparagus@comcast.net's message of "Thu, 26 Feb 2015 17:53:48 +0000 (UTC)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 19896-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Version: 25.1 asparagus@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.) From unknown Sun Jun 22 07:51:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 May 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator