all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "J.P." <jp@neverwas.me>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-erc@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	23675@debbugs.gnu.org, rsw@gnu.org
Subject: bug#23675: 30.0.50: make count-lines optionally ignore invisible lines
Date: Sun, 06 Aug 2023 06:03:38 -0700	[thread overview]
Message-ID: <87350wtj9x.fsf__31433.4686425113$1691327064$gmane$org@neverwas.me> (raw)
In-Reply-To: <83v8dut2x1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 05 Aug 2023 09:32:26 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: emacs-erc@gnu.org, rsw@gnu.org
>> From: "J.P." <jp@neverwas.me>
>> Date: Fri, 04 Aug 2023 17:35:27 -0700
>> 
>> Perhaps I'm not understanding how the `ignore-invisible-lines' parameter
>> for `count-lines' is supposed to work, but it doesn't seem to make the
>> function consider `invisible' text properties that have lists as values.
>> I bring this up because ERC will likely be needing a line-counting
>> function that's list-aware, at least in the manner shown in the attached
>> tests. The change to `count-lines' accompanying these tests was merely
>> lifted from `forward-visible-line' to make them pass, but it's quite
>> possibly flawed and/or incomplete. If a proper solution ever emerges to
>> address this, hopefully it'll come at the hands of someone better
>> informed than I in the ways of Emacs invisibility. In the meantime
>> (2023), ERC will likely be doing its own subpar rendition unless someone
>> takes up the challenge for 30.1 (and Compat agrees to adopt it). Thanks.
>
> This is OK for master, but please don't use cl-incf in simple.el, as
> there's no real need to do so there.

Actually, it's looking like `count-screen-lines' will suit ERC's needs.
Thanks anyway for taking a peek, and apologies for the noise.





      parent reply	other threads:[~2023-08-06 13:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01 14:23 bug#23675: Feature request: Emacs 25.0.94: count-lines should offer a way to ignore invisible lines, e.g. outline mode Robert Weiner
2016-06-04  8:58 ` Eli Zaretskii
2016-06-06 23:35 ` Robert Weiner
2016-06-07 15:58   ` bug#23675: " Eli Zaretskii
2016-06-07 22:17     ` Robert Weiner
2019-06-25 15:33       ` Stefan Monnier
2019-06-25 13:30   ` Lars Ingebrigtsen
2019-06-25 15:26     ` Stefan Monnier
2019-06-25 15:29       ` Lars Ingebrigtsen
2019-06-25 13:30   ` Lars Ingebrigtsen
2020-08-11 14:53   ` Lars Ingebrigtsen
2016-06-06 23:35 ` Robert Weiner
2023-08-05  0:35 ` bug#23675: 30.0.50: make count-lines optionally ignore invisible lines J.P.
     [not found] ` <87ttteuy0g.fsf@neverwas.me>
2023-08-05  6:32   ` Eli Zaretskii
     [not found]   ` <83v8dut2x1.fsf@gnu.org>
2023-08-06 13:03     ` J.P. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87350wtj9x.fsf__31433.4686425113$1691327064$gmane$org@neverwas.me' \
    --to=jp@neverwas.me \
    --cc=23675@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-erc@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rsw@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.