From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs bug #23794; sort-line behavior regressed from prior Emacs versions Date: Sat, 18 Jun 2016 14:22:18 -0400 Message-ID: References: <83shwa9zmr.fsf@gnu.org> <83lh229ywc.fsf@gnu.org> <83inx69xcx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466274163 5281 80.91.229.3 (18 Jun 2016 18:22:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2016 18:22:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 20:22:35 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 1bEKt8-0002yc-QU for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2016 20:22:34 +0200 Original-Received: from localhost ([::1]:35978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKt7-0007WJ-Uk for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2016 14:22:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKt2-0007Rg-7W for emacs-devel@gnu.org; Sat, 18 Jun 2016 14:22:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEKsz-0000MK-0k for emacs-devel@gnu.org; Sat, 18 Jun 2016 14:22:28 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEKsy-0000MD-Pw for emacs-devel@gnu.org; Sat, 18 Jun 2016 14:22:24 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bEKsx-0002qO-MV for emacs-devel@gnu.org; Sat, 18 Jun 2016 20:22:23 +0200 Original-Received: from 45.72.244.67 ([45.72.244.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jun 2016 20:22:23 +0200 Original-Received: from monnier by 45.72.244.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jun 2016 20:22:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 45.72.244.67 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:OKf2sen78yNkZYVYzsQCT+uv+Fo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:204486 Archived-At: > IOW, I don't think it was ever the design goal to have sorting > disregard invisible text. 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). Stefan