GNU bug report logs - #23794
Make sort-lines respect visible lines

Previous Next

Package: emacs;

Reported by: rswgnu <at> gmail.com

Date: Sat, 18 Jun 2016 15:48:02 UTC

Severity: normal

Full log


Message #38 received at 23794 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Weiner <rsw <at> gnu.org>
Cc: 23794 <at> debbugs.gnu.org, rswgnu <at> gmail.com
Subject: Re: bug#23794: Emacs 25.0.94: Patch to make sort-lines respect
 visible lines (fairly urgent)
Date: Tue, 25 Jun 2019 15:08:28 +0200
Robert Weiner <rsw <at> gnu.org> writes:

> sort-lines calls forward-line rather than forward-visible line, so if
> you have emacs outline entries that are collapsed/hidden to single lines
> each and you try to sort them, their bodies and subtrees are sorted
> separately because forward-visible-line is not used.
>
> This patch fixes this problem and also unifies the calling convention of
> forward-visible-line with that of forward-line (allowing it to take an
> optional argument) leading to a cleaner calling convention.

This was three years ago, and from what I can tell, nobody has changed
sort-lines to be aware of invisible lines...  I can see the case for
allowing the caller to control this, but none of the patches proposed
look acceptable to me (for instance, one made sort.el check for outline
mode explicitly, which seems backwards).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.