From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#23794: Fwd: Fwd: bug#23789: Emacs 25.0.94: Patch to make sort-lines respect visible lines (fairly urgent) Date: Mon, 28 Aug 2017 00:00:11 -0400 Message-ID: References: <87mvmji9jv.fsf@163.com> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0438e898d6cb0557c85653" X-Trace: blaine.gmane.org 1503892888 6788 195.159.176.226 (28 Aug 2017 04:01:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2017 04:01:28 +0000 (UTC) To: 23794@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 06:01:21 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmBEX-0000dx-Vw for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Aug 2017 06:01:06 +0200 Original-Received: from localhost ([::1]:36831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmBEe-0006LY-Qk for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Aug 2017 00:01:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmBEY-0006Kd-Go for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2017 00:01:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmBEU-0007re-Eo for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2017 00:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmBEU-0007rS-Bv for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2017 00:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmBEU-0004Q7-1C for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2017 00:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2017 04:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23794 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23794-submit@debbugs.gnu.org id=B23794.150389285416970 (code B ref 23794); Mon, 28 Aug 2017 04:01:01 +0000 Original-Received: (at 23794) by debbugs.gnu.org; 28 Aug 2017 04:00:54 +0000 Original-Received: from localhost ([127.0.0.1]:58544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmBEM-0004Pe-A2 for submit@debbugs.gnu.org; Mon, 28 Aug 2017 00:00:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmBEK-0004PS-LP for 23794@debbugs.gnu.org; Mon, 28 Aug 2017 00:00:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmBEB-0007iu-53 for 23794@debbugs.gnu.org; Mon, 28 Aug 2017 00:00:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmBEA-0007ic-Ry for 23794@debbugs.gnu.org; Mon, 28 Aug 2017 00:00:42 -0400 Original-Received: from mail-qk0-f171.google.com ([209.85.220.171]:33304) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dmBEA-00029F-12 for 23794@debbugs.gnu.org; Mon, 28 Aug 2017 00:00:42 -0400 Original-Received: by mail-qk0-f171.google.com with SMTP id l65so13857137qkc.0 for <23794@debbugs.gnu.org>; Sun, 27 Aug 2017 21:00:41 -0700 (PDT) X-Gm-Message-State: AHYfb5gnvAp8Nm/iRR5r0Ix+ZStRqoHQFaBUb2U39Xu8vEj/BAH7EAMY Atg1r8/lgBUnMaOfnNlslKpPseP8zw== X-Received: by 10.233.222.69 with SMTP id s66mr8053269qkf.30.1503892841484; Sun, 27 Aug 2017 21:00:41 -0700 (PDT) Original-Received: by 10.200.25.35 with HTTP; Sun, 27 Aug 2017 21:00:11 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136289 Archived-At: --94eb2c0438e898d6cb0557c85653 Content-Type: text/plain; charset="UTF-8" ---------- Forwarded message ---------- From: Richard Stallman Date: Wed, Jun 22, 2016 at 2:34 AM Subject: Re: Fwd: bug#23789: Emacs 25.0.94: Patch to make sort-lines respect visible lines (fairly urgent) To: rswgnu@gmail.com [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I think the old behavior was only correct for Outline mode in SOME > > cases. Not in all cases. Likewise for the new behavior. > Can you list the cases you think exist and how you think each should > be handled? When the first line of some substructure is visible and the rest of that substructure is hidden, it seems to make sense to sort the substructure with the first line. However, if there are two substructures at the same level and they are both invisible, it does not seem right for them to stick together in sorting. I have a feeling that sort-lines doesn't really make sense for an outline, and other operations are needed for sorting in outlines. But I am not sure of that. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. --94eb2c0438e898d6cb0557c85653 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
---------- Forwar= ded message ----------
From: Richard Stallman <rms@gnu.org>
Date: Wed, Jun 22, = 2016 at 2:34 AM
Subject: Re: Fwd: bug#23789: Emacs 25.0.94: Patch to mak= e sort-lines respect visible lines (fairly urgent)
To: rswgnu@gmail.com

[[[ To any = NSA and FBI agents reading my email: please consider=C2=A0 =C2=A0 ]]]
[[[ whether defending the US Constitution against all enemies,=C2=A0 =C2=A0= =C2=A0]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]<= br>
=C2=A0 > > I think the old behavior was only = correct for Outline mode in SOME
=C2=A0 > > cases.=C2=A0 Not in all cases.=C2=A0 Likewise for the new = behavior.

=C2=A0 > Can you list the cases you think exist and how you think each s= hould
=C2=A0 > be handled?

When the first line of some substructure is visible and the rest of<= br> that substructure is hidden, it seems to make sense to sort the
substructure with the first line.

However, if there are two substructures at the same level
and they are both invisible, it does not seem right for them
to stick together in sorting.

I have a feeling that sort-lines doesn't really make sense for an
outline, and other operations are needed for sorting in outlines.
But I am not sure of that.

--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.


--94eb2c0438e898d6cb0557c85653--