From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add option COUNT argument to text-property-search functions Date: Sat, 31 Jul 2021 00:56:55 +0300 Message-ID: <94e8df7f-3293-87c1-2172-d979cefda28a@yandex.ru> References: <87im0rlias.fsf@gmail.com> <87fsvvk2bw.fsf@gnus.org> <87fsvvlgop.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Protesilaos Stavrou , emacs-devel@gnu.org To: "James N. V. Cash" , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 30 23:57:39 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9aVf-0003fO-9I for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Jul 2021 23:57:39 +0200 Original-Received: from localhost ([::1]:43808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9aVe-0003Gk-64 for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Jul 2021 17:57:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9aV3-0002Zo-RE for emacs-devel@gnu.org; Fri, 30 Jul 2021 17:57:01 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:33621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9aV2-0007kB-2z for emacs-devel@gnu.org; Fri, 30 Jul 2021 17:57:01 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id ec13so14625704edb.0 for ; Fri, 30 Jul 2021 14:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oHDboTXDpgGBCZRVEJYU2Mq1eKA3PM1MW/2omaLQQPU=; b=hAmoxFwJ1/LUnJPh2BJE/1oASbIerXa76+Q5YpoTJZutJ5k93JYLvlwwvTYPDULGvy mT+/BqwtiXNMA84FeAKXbDsytd9BMR7zO1XZOx8uXViZm93Mj+MlL8rpkl6GEUVo21qS OCLNTIgRgsM7i+Dhfrc96gLI1zjoTEL7jYevIJM/YRZwjuh9ycbGDd3fJZJjl+aOr3Aj 2TRvOPw1ew2PGb+g5zDQbfgC+xyj6AFvAs40PA1Y66JWoeq4N5e3u7uzV9hfOFHkw/up t0qD66KJepYDTOv9fL9/KGYMoA+3n9Pya47Qz9SyHvvNvNOnjDm0rCdGHD1G9poMIQnu tFuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oHDboTXDpgGBCZRVEJYU2Mq1eKA3PM1MW/2omaLQQPU=; b=s0S7YeLZkqMJleXllN1Q12QHOv0lmNbSTbYxnUsSIBx5FH8i+syfbLrJgo1EhSf8Wn vrUFwMLeMD+FtjHgUtV3zuKhHQFaLxqgLqzycoIPI22Ts809/3Tqsre+V+nq2twfjKTo qAXOB/jSUz1lqQ0QMggTZ+xDMcIdBhGPrlOrPDXA2sEatMJHJG9SD1Ij+hzx7Whdx0LS XL4SLvbXqGTHemL3sgW4poTdZUp1BUdmRRSZJ2WCQEoYcF7+Iz3kTdlw2WbArF2+3rS1 VyENYCJmZrCSuqG6N3nFfrOCpP9qsDoTfQ4Py/SaWvZ3TFMAL/+BqBK5EC4oTgeeMqet PVug== X-Gm-Message-State: AOAM533/LhiG0gpL6WL7R5YQ79CGLpBrLW4caMOF7zVc/hiPEhIDE+Hy rRwsDHsfBs34mH97hSz5QDozUHhxfH4= X-Google-Smtp-Source: ABdhPJzerFSiIfRzhZY5syRy6+vijuJtVt2L1+shEdmkSQ9m1gMuLEHTVJKP+zrxbVejfGJn3vwoFA== X-Received: by 2002:a50:f1d8:: with SMTP id y24mr5616763edl.275.1627682217908; Fri, 30 Jul 2021 14:56:57 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b25sm1252517edv.9.2021.07.30.14.56.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Jul 2021 14:56:57 -0700 (PDT) In-Reply-To: <87fsvvlgop.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=raaahh@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.125, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271878 Archived-At: On 30.07.2021 22:55, James N. V. Cash wrote: > 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. Could you describe that usage scenario here