unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: James N. V. Cash <james.cash@occasionallycogent.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: , Protesilaos Stavrou <public@protesilaos.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] Add option COUNT argument to text-property-search functions
Date: Fri, 30 Jul 2021 15:55:50 -0400	[thread overview]
Message-ID: <87fsvvlgop.fsf@gmail.com> (raw)
In-Reply-To: <87fsvvk2bw.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> James N V Cash <james.cash@occasionallycogent.com> writes:
>
>> This allows searching forward for the Nth occurance of the text
>> property, analogously to re-search-forward/backward.
>
> I don't think I've ever registered seeing COUNT used in the wild for
> those functions, and I think it's a design flaw to have them.  So I'm
> not in favour of adding those to more functions.

Hah, fair enough! I was discussing something with Protesilaos previously
that would've been made easier by having this support a count (versus
wrapping it in a dotimes), but I certainly can see why you'd want
to avoid adding yet another optional argument.



  reply	other threads:[~2021-07-30 19:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 19:20 [PATCH] Add option COUNT argument to text-property-search functions James N V Cash
2021-07-30 19:51 ` Lars Ingebrigtsen
2021-07-30 19:55   ` James N. V. Cash [this message]
2021-07-30 21:56     ` Dmitry Gutov
2021-07-31  6:56       ` Protesilaos Stavrou
2021-07-31 11:36         ` Lars Ingebrigtsen
2021-07-30 19:59 ` Eli Zaretskii
2021-07-30 20:49   ` James Cash

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87fsvvlgop.fsf@gmail.com \
    --to=james.cash@occasionallycogent.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=public@protesilaos.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).