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

From: Eli Zaretskii <[email-masked]>
Date: Sat, 04 Jun 2016 11:58:15 +0300

> From: Robert Weiner <[email-masked]>
> Date: Wed, 1 Jun 2016 10:23:56 -0400
> 
> Often when particular lines are hidden, one wants to count only visible lines. count-lines presently cannot do
> this. XEmacs has for a long-time had count-lines take an optional 3rd parameter flag which if non-nil, ignores
> invisible lines in the line count. This would be very helpful whenever selective-display is in use.

Patches are welcome to add this.

Also, we have forward-visible-line, which might prove instrumental.

Thanks.