From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#40940: 27.0.91; project-query-replace-regexp stops too early Date: Fri, 1 May 2020 18:27:45 +0300 Message-ID: References: <871ro7ptk0.fsf@runbox.com> <9ba1394f-5a29-8e8d-93cf-9b794b8ebb98@yandex.ru> <83d07q217v.fsf@gnu.org> <87ftcmhezl.fsf@runbox.com> <831ro61yce.fsf@gnu.org> <83zhauzlt7.fsf@gnu.org> <83mu6uzi8h.fsf@gnu.org> <32c0b31e-9165-faff-c9a0-9103d937898b@yandex.ru> <835zdgw3aj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66666"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: simenheg@runbox.com, monnier@IRO.UMontreal.CA, 40940@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 01 17:29:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jUXbD-000HCS-8D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 May 2020 17:29:11 +0200 Original-Received: from localhost ([::1]:47838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUXbC-0003Dx-6K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 May 2020 11:29:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUXav-00030j-Fh for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 11:29:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUXa6-00084b-IO for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 11:28:53 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUXa6-00083d-4V for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 11:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUXa5-0002cK-Qh for bug-gnu-emacs@gnu.org; Fri, 01 May 2020 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2020 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40940 X-GNU-PR-Package: emacs Original-Received: via spool by 40940-submit@debbugs.gnu.org id=B40940.158834687510048 (code B ref 40940); Fri, 01 May 2020 15:28:01 +0000 Original-Received: (at 40940) by debbugs.gnu.org; 1 May 2020 15:27:55 +0000 Original-Received: from localhost ([127.0.0.1]:50444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUXZz-0002c0-IE for submit@debbugs.gnu.org; Fri, 01 May 2020 11:27:55 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:40666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUXZx-0002bn-Kz for 40940@debbugs.gnu.org; Fri, 01 May 2020 11:27:54 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id e16so6777176wra.7 for <40940@debbugs.gnu.org>; Fri, 01 May 2020 08:27:53 -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=FT8bWzHBqbtacR/vf798wXd3Q8AsXMyXMiuiwBMnOIc=; b=HfCXUHu9vhAaxAnogiDc2QAiE6/Peg7xun6tY4m1wwS4XvgXXKBp7iz+7VW55oEdhq 93Ngr0sLIu9ehu6vMDpe3WjMedvwKcf4rREhK241ndIpoL4Rao88L5hKA/cib0DcEZg1 Ucjw/oVeS9RegzwJ7IseoZSZgZawSqvbWUCqxGHMVr9VcjzuEn6iC0LANynP13aZEf4P kH4jzIaUJg9PMHVE2DWKbpKEhzOgoBk0ddYi1v4ZjwM85UKxNNn8rJ4xL7xuJzk0Bnb6 Gfutm5PO2frZBw8bTvTV0cmIox8QOj60gg7TBsCfC45+6A30jiatUhTpm5NLI0hbT1JM ZdhA== 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=FT8bWzHBqbtacR/vf798wXd3Q8AsXMyXMiuiwBMnOIc=; b=LZKQPhbn57gbFgiACAzE4qyKFfEi7Rc7jaAKeNmBs8ev6CEmbkw6DTYZwLLloq7DL6 +O0rT0UHyIQqOgXZfab6CnqEIbqA8S+EzPnWYZpHIBCZrnxxY+XzKes/K+AjoG/Ua7NU lubydh2+hU8qt0l99+ujmvGr1RMTfSQVM2LGHUXl2KIRNRnnxG5DQ9BPX8IqQ0ueIKBE 1ZkgM/aCDfvpc/D3Fh4iZmCAVXMAfczAcLqbX4aTy9UwjEYti/W8btSNOWXxuTfTM/1B v353V5nycr3h5+LL03FQYvXdEKOnBAJyyN2cp/CxH4vtthe98QJZLRgHxZ6+N3hkomDh gBhw== X-Gm-Message-State: AGi0PuaHU+85qq2+ohgxG8z7zD//pGZdgR4+6f/01XNfkHPQZM0RK/jA 5FrfrJdefqG6PR2Ad+GuIvHjtliKpPE= X-Google-Smtp-Source: APiQypKL+395Iqog/RrUjPpG5RpTxWk4RsaNSkGhRdiDWVI+5QVC7YhOkYSZQrGhieez4D2HsLvVLw== X-Received: by 2002:adf:a297:: with SMTP id s23mr4849251wra.54.1588346867521; Fri, 01 May 2020 08:27:47 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id p190sm61829wmp.38.2020.05.01.08.27.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 May 2020 08:27:46 -0700 (PDT) In-Reply-To: <835zdgw3aj.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179435 Archived-At: On 01.05.2020 09:57, Eli Zaretskii wrote: > I see no reference to either case-fold-search or > case-fold in isearch-no-upper-case-p. So why would we need to update > its doc string? Sorry if that was unclear: I think we'd need to update the docstring of fileloop-initialize-replace. Which doesn't offer any hints that the logic of isearch-no-upper-case-p will be employed. Also see the part about obeying the value of search-upper-case. > Does that really work in the case in point? Unless I'm missing > something, if case-fold-search is t by default, this patch would cause > the search to be case-insensitive even if the FROM regexp includes > upper-case characters. But in that case, perform-replace will > internally decide to be case-sensitive, and we have the same failure > on our hands. This is why the patch I proposed explicitly examined > the FROM regexp for upper-case characters. Whereas yours doesn't. Since we bind search-upper-case to nil in this patch, perform-replace won't try to alter the value of case-fold-search internally.