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.bugs Subject: bug#59023: 26.1; Setting find-name-arg to -regex breaks dired-do-find-regexp and dired-do-find-regexp-and-replace Date: Mon, 14 Nov 2022 02:27:54 +0200 Message-ID: <55003e2f-fb32-3eaf-4b35-8fff38417d12@yandex.ru> References: 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="33982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: renke.vonseggern@gmx.de, 59023-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 14 01:29:27 2022 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 1ouNLr-0008jd-1N for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Nov 2022 01:29:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouNLV-0007R0-Fi; Sun, 13 Nov 2022 19:29:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouNLT-0007Qa-HH for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 19:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouNLT-0003Oj-2V for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 19:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouNLS-0007CI-Nl for bug-gnu-emacs@gnu.org; Sun, 13 Nov 2022 19:29:02 -0500 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Nov 2022 00:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59023 X-GNU-PR-Package: emacs Mail-Followup-To: 59023@debbugs.gnu.org, dgutov@yandex.ru, renke.vonseggern@gmx.de Original-Received: via spool by 59023-done@debbugs.gnu.org id=D59023.166838568527598 (code D ref 59023); Mon, 14 Nov 2022 00:29:02 +0000 Original-Received: (at 59023-done) by debbugs.gnu.org; 14 Nov 2022 00:28:05 +0000 Original-Received: from localhost ([127.0.0.1]:48663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouNKW-0007B3-TK for submit@debbugs.gnu.org; Sun, 13 Nov 2022 19:28:05 -0500 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:51190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouNKU-0007AW-LF for 59023-done@debbugs.gnu.org; Sun, 13 Nov 2022 19:28:03 -0500 Original-Received: by mail-wm1-f51.google.com with SMTP id v7so6421741wmn.0 for <59023-done@debbugs.gnu.org>; Sun, 13 Nov 2022 16:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=n6bgmz68fyiZpi46lVfN5SxcKw9W25KgRQBIxn/R3UE=; b=ZseFga2kxliE9qZO+Hf3c7biXdeSUaKDIofS+5lZ4RZ3iu50fuj24cX/OecPtBDuvy N0itw4+1e4NQzfAlnJCZX0/3kmOqS1VTscnf4/OH6jZpR+AGs8amzxD8x39VcCDvCt2R fYdbYHB42OFJqhTKLdAYc2q/Y5YD2d2wSA6pcRm5FoDO5m6xw/r/NJ/R0PqR1IvaRlaN 4cAvujCclsSOVsdkOWwKGTgia3l8Cesc4lcV7psTMAN2Vz22RHWVhk/Yb7ivofCzKwrO WIrFtczeR177YNSYRizqHO8FMmpqbz14dU9CGel0OstqtmTY1iZCMBxegZ+Q2fFie+Sv NfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n6bgmz68fyiZpi46lVfN5SxcKw9W25KgRQBIxn/R3UE=; b=r2Hy34RP9rDPMTdjDiQz4h3szUmjx5xum8JaGnb3w8BJoCYqNbEXYDMxo8K0JG7bn8 g8cSVgR41xBDA6i3PmMACsXb/NUCeUZZqsaDuSizcQFSGTvlae31zT3Js9rkOwTEqq3T GFQOQ9hXAlUtAnqKlxrunJNQUQL4wcDEtVA70jwcPqNWHyF2kSbkn5+ZJaI91GJtO9ud udpG6h/IK0/vY667ZNZP90Ln4En6M7TGWMTKWDmC33+++wklxYFlSzuIwAey4lRMcKnt BR8m3coLGer1vRUPWZFkdL2an3srC96SUF0LiWd8QLt6pz9Iv13Yb9/C4BZddq07CctM XErw== X-Gm-Message-State: ANoB5pmWAmCxSu5A3rKE4hxbp/o3r022HzhaasrS5xLGggmJXdDiFdoY QJ9CQbD1t6g41tgFQsCcBiM= X-Google-Smtp-Source: AA0mqf46lOx2Zcb22SqV+T7GQc1qgFDFW38N4TseT8cAdqk2BdPi4PDwQVl33KKlGh5Ngd7m3oRcXg== X-Received: by 2002:a05:600c:4a90:b0:3c6:ed43:6eca with SMTP id b16-20020a05600c4a9000b003c6ed436ecamr6334948wmp.60.1668385676642; Sun, 13 Nov 2022 16:27:56 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id e12-20020adffd0c000000b00236576c8eddsm8150456wrr.12.2022.11.13.16.27.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Nov 2022 16:27:56 -0800 (PST) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247826 Archived-At: Hi! On 04.11.2022 20:01, renke.vonseggern@gmx.de wrote: > Steps to reproduce: > 1. Create a file containing the string "hello". > 2. Set the variable "find-name-arg" to "-regex" via Easy Customization. > 3. Visit the directory containing the file created in step 1 in dired. > 4. Mark the file created in step 1 in dired. > 5a. Execute "dired-do-find-regexp" on the marked file by pressing "A" > and enter "hello" in the prompt. > => Function reports "user-error: No matches for: hello" but I > expected it to open an "*xref*" buffer listing the file created > in step 1. > 5b. Execute "dired-do-find-regexp-and-replace" on the marked file by > pressing "Q", enter "hello" in the first prompt and an arbitrary > replacement string in the second prompt. > => Function reports "user-error: No matches for: hello" but I > expected it to open the file created in step 1 with the option to > replace "hello" with the replacement string. Thanks for the report. It seems we shouldn't use the customized value in project--files-in-directory, just the base value. I've pushed the fix to master, it should appear in GNU ELPA soon as well, in 'project' version 0.8.3.