GNU bug report logs - #23675
Feature request: Emacs 25.0.94: count-lines should offer a way to ignore invisible lines, e.g. outline mode

Previous Next

Package: emacs;

Reported by: Robert Weiner <rsw <at> gnu.org>

Date: Wed, 1 Jun 2016 15:34:03 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Robert Weiner <rsw <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23675 <at> debbugs.gnu.org
Subject: Re: Feature request: Emacs 25.0.94: count-lines should offer a way to
 ignore invisible lines, e.g. outline mode
Date: Tue, 7 Jun 2016 18:17:22 -0400
[Message part 1 (text/plain, inline)]
On Tue, Jun 7, 2016 at 11:58 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> Any reason why you didn't use forward-visible-line, which would leave
> the skipping of invisible text to that function, and make your code
> simpler?
>

Because unlike forward-line, forward-visible-line does not indicate how
many lines it failed to move when it cannot move the requested amount (of
course it should).  Therefore, I could not tell when it failed to move and
would have had to add other buffer location tests.  I hope that explains it
sufficiently.

Bob
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 295 days ago.

Previous Next


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