From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs bug #23794; sort-line behavior regressed from prior Emacs versions Date: Sat, 18 Jun 2016 21:28:01 +0300 Message-ID: <83d1ne9wsu.fsf@gnu.org> References: <83shwa9zmr.fsf@gnu.org> <83lh229ywc.fsf@gnu.org> <83inx69xcx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466274455 9265 80.91.229.3 (18 Jun 2016 18:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2016 18:27:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 20:27:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEKxr-00065n-0k for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2016 20:27:27 +0200 Original-Received: from localhost ([::1]:35989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKxq-0000qk-9n for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2016 14:27:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKxk-0000qf-D6 for emacs-devel@gnu.org; Sat, 18 Jun 2016 14:27:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEKxh-000186-7n for emacs-devel@gnu.org; Sat, 18 Jun 2016 14:27:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKxh-00017w-4p; Sat, 18 Jun 2016 14:27:17 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1951 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bEKxd-00031s-0k; Sat, 18 Jun 2016 14:27:15 -0400 In-reply-to: (message from Stefan Monnier on Sat, 18 Jun 2016 14:22:18 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204487 Archived-At: > From: Stefan Monnier > Date: Sat, 18 Jun 2016 14:22:18 -0400 > > While I agree in general, the reason why the text is made invisible > should be taken into account: in the case of outline-mode, it seems > rather unlikely that the user would like to sort lines where some lines > are headers and others aren't, since it will completely mess up > the structure. > > So by including the subsequent invisible text into each visible line, > sort-line can become usable again in outline-mode (since it then sorts > (sub)sections rather than lines). As I wrote elsewhere, I don't object to outline-only solution. The proposed solution would have a much wider effect.