From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#23675: 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-ID: References: <83a8ixrnx3.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c14dfc51569e0534b78f7a X-Trace: ger.gmane.org 1465338005 12781 80.91.229.3 (7 Jun 2016 22:20:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 22:20:05 +0000 (UTC) Cc: 23675@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 00:19:54 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bAPL8-0006JG-59 for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2016 00:19:14 +0200 Original-Received: from localhost ([::1]:53303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAPL7-0008Oy-9K for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 18:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAPL1-0008OU-AT for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 18:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAPKw-0005zC-7l for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 18:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAPKw-0005z8-4s for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 18:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bAPKw-0007w1-0c for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 18:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jun 2016 22:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23675-submit@debbugs.gnu.org id=B23675.146533788630434 (code B ref 23675); Tue, 07 Jun 2016 22:19:01 +0000 Original-Received: (at 23675) by debbugs.gnu.org; 7 Jun 2016 22:18:06 +0000 Original-Received: from localhost ([127.0.0.1]:59205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAPK1-0007uo-Su for submit@debbugs.gnu.org; Tue, 07 Jun 2016 18:18:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAPK0-0007uK-8L for 23675@debbugs.gnu.org; Tue, 07 Jun 2016 18:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAPJq-0005sU-1W for 23675@debbugs.gnu.org; Tue, 07 Jun 2016 18:17:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAPJp-0005sJ-UY for 23675@debbugs.gnu.org; Tue, 07 Jun 2016 18:17:53 -0400 Original-Received: from mail-oi0-f47.google.com ([209.85.218.47]:35185) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bAPJo-0000V4-Co for 23675@debbugs.gnu.org; Tue, 07 Jun 2016 18:17:52 -0400 Original-Received: by mail-oi0-f47.google.com with SMTP id s139so60900991oie.2 for <23675@debbugs.gnu.org>; Tue, 07 Jun 2016 15:17:52 -0700 (PDT) X-Gm-Message-State: ALyK8tLf5x+AGFwgbGGWSi2XsrD1op1LGlxA14Dp1Hbsl5FxVTky+JdubTkeM9KdzavLHF1JqA3QGXBAH8Roig== X-Received: by 10.202.205.140 with SMTP id d134mr1145439oig.119.1465337871682; Tue, 07 Jun 2016 15:17:51 -0700 (PDT) Original-Received: by 10.202.236.73 with HTTP; Tue, 7 Jun 2016 15:17:22 -0700 (PDT) In-Reply-To: <83a8ixrnx3.fsf@gnu.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119237 Archived-At: --001a11c14dfc51569e0534b78f7a Content-Type: text/plain; charset=UTF-8 On Tue, Jun 7, 2016 at 11:58 AM, Eli Zaretskii 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 --001a11c14dfc51569e0534b78f7a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, Jun 7, 2016 at 11:58 AM, Eli Zaretskii=C2=A0<eliz@gnu.= org>=C2=A0wrote:
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 i= ndicate how many lines it failed to move when it cannot move the requested = amount (of course it should).=C2=A0 Therefore, I could not tell when it fai= led to move and would have had to add other buffer location tests.=C2=A0 I = hope that explains it sufficiently.

Bob
=
--001a11c14dfc51569e0534b78f7a--