From unknown Wed Aug 20 06:40:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59023 <59023@debbugs.gnu.org> To: bug#59023 <59023@debbugs.gnu.org> Subject: Status: 26.1; Setting find-name-arg to -regex breaks dired-do-find-regexp and dired-do-find-regexp-and-replace Reply-To: bug#59023 <59023@debbugs.gnu.org> Date: Wed, 20 Aug 2025 13:40:41 +0000 retitle 59023 26.1; Setting find-name-arg to -regex breaks dired-do-find-re= gexp and dired-do-find-regexp-and-replace reassign 59023 emacs submitter 59023 renke.vonseggern@gmx.de severity 59023 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 15:35:17 2022 Received: (at submit) by debbugs.gnu.org; 4 Nov 2022 19:35:17 +0000 Received: from localhost ([127.0.0.1]:54884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or2TB-0002E0-1w for submit@debbugs.gnu.org; Fri, 04 Nov 2022 15:35:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:56230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or10z-0008I9-P7 for submit@debbugs.gnu.org; Fri, 04 Nov 2022 14:02:03 -0400 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 1or10x-0007NM-In for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 14:02:00 -0400 Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or10t-0007I6-1T for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 14:01:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667584910; bh=LSEb2+fsOn99btODbRZzVXDxFrI+RcJhKI3oEwE0IbU=; h=X-UI-Sender-Class:Date:From:To:Subject; b=X9KK3WGrnRdvqtjk68RH+7CioAjA/aOb2Otn9VjvfAVTaVeHwQS2TRHvEGwYr6SQO M2pEYhvmJXghrGmX+y2UyB2RaZDYAtyMoUX+ahaYWgAUoYAnPMbHsLSgO/oX0NFOd4 p7r/iP/8rD9TNMaNvr9M1xWCTgDtfTDhodxmQm64ZMzK/Kaf2cyun9x6qnYs9QyKQ9 lCFRZO+S7AgdiDErl33kM3hUh1Jjoqw0wU9VBLQLy5ocAw/Es2GQThouLJw4e51UcS 8zU+6z3UF5ljN4IwDqRSqjcHk8E3r8Z5pTgZBF9c9Tgs2otYi0fhv+eFh3hH7xJ5AN fGtIvf0uqghsQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from laptop03 ([77.8.174.126]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MCbEp-1oiWR30Udv-009igl for ; Fri, 04 Nov 2022 19:01:50 +0100 Date: Fri, 4 Nov 2022 19:01:43 +0100 From: renke.vonseggern@gmx.de To: bug-gnu-emacs@gnu.org Subject: 26.1; Setting find-name-arg to -regex breaks dired-do-find-regexp and dired-do-find-regexp-and-replace Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Provags-ID: V03:K1:EvTd9YvPzwLJayy/+08xW7eyPQ00rQFuf/Wo1u0xG+5kskSTe3D PqiYtPTGH993+kxsyW2Yt7E8Gs9Hzn4RzdCqujd5XLzCmmQraKi3gEzZeZ7MTF2LLr3PWrg AGYIEmqCqbZeAeFiWrLUFOob0VB95sSbdcvbL9AxgMXtV0K2U2/waiLdjNQJ7hkkMq1ASd+ FXmJ2D0yKPWLp1XyVLyeQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:lgBgm+bBqAs=;xV94GNkACkD/lkA4emSoJPq0Din iRc9KFKpyPTN/9tKxkL3ivaTr77azTi36pSal6YYmVKx9hBnisUvNzm4v/lqrWfIl30WuAVdo DZbvz14v+cYppI1qUtJrfiqGCHC76UlI+qdKYM9O2Sy62fcYc/dW+t5YNXRqhJrIuEXmUm3Bg 8epv+FyVlqlTP41bZQZXwTAWhm/I05FGj+PxC8iQY74J7jL9xoZI6q6YFjr7SFoWlwXgt5ZeB iuz5NdxftrqtLjmOgcQ+44vFSsTN/voVKgfAOb0cMU7/mU89C6G1mmuTik7FI9riPf0Q5WIc2 ckj7db+68hAThP4+5gpwn3GcFOQZxdXWjuqUnakN1eGPG4FDiqqTIcGCk7B/3su2wmNDevOzy V63ojgHDC9nfdKkFpUKp3XnsaNCjIw6MVhW9fD0+PljIGLet/a1w3pZ8xkWp2KB4X+ShHvuYT /i/MEE5fGpwiWIqNeedk/edHf4nM0LJ4Rbm1XKqqPlioHkhp8Sy3d1gh8n0NG3sIH7+qSW4Il 5TvcnBqoZYQ8cDtsyCm/a7K9B8HJeX6884fJXDSrfbe4yvUWmMPnkra+JRRmaMV7BrldFQOWJ ikfmRVrGqCLLT8UMkbsL3DLGcZA6/z44D1VEzb/DDzIsMhN8Gkuo+/rlQ+ORmFmj9d1fzv6eI 5aGm4Fc1eX43J8M3Ka627El/RRLmQ8OSPucXtVW4Fr938hpJiacKTk8iHCm2W4AQz7QyWUduX LmpgnBkrxSk4LwUfmA7V36WJtjmQ66UTA18DSUyICL3l3jiSAYVp9GHzY6AFniBGfO2BHEeyX OuZaFH6uYBC0xjLRdN+C+eZp3qoq3tiuPbaju88oPIjzEBMXva1OlHuqlzPLr/TppDIEtfD1F aXac8ZK/5wQXW9knGfKX8yXOoYEdDfC02iannyaqbkStWUmVt+rQ6dErsYF/rQHjbRG/pkxu6 cGyH6+9SY+7fxIXvDNxLSYRRzWg= Received-SPF: pass client-ip=212.227.17.20; envelope-from=renke.vonseggern@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 04 Nov 2022 15:35:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2021-01-31, modified by Debian built on x86-csail-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Quit Type "q" in help window to restore its previous buffer. Quit [2 times] Type "q" in help window to restore its previous buffer, C-M-v to scroll help. Quit [2 times] Type "q" in help window to restore its previous buffer. Mark set scroll-up-command: End of buffer Quit Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-9Yet8u/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MESSAGES: en_US.utf8 value of $LC_TIME: POSIX value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: hl-line-mode: t diff-auto-refine-mode: t openwith-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/renke/.emacs.d/elpa/seq-2.23/seq hides /usr/share/emacs/26.1/lisp/emacs-lisp/seq /home/renke/.emacs.d/elpa/map-3.2.1/map hides /usr/share/emacs/26.1/lisp/emacs-lisp/map Features: (shadow sort mail-extr eieio-opt speedbar sb-image ezimage dframe emacsbug sendmail time-stamp cl-print completion dos-w32 find-cmd thingatpt help-fns radix-tree find-dired semantic/fw mode-local xref project grep compile dired-aux elec-pair cl-extra help-mode eww mm-url url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap shr svg xml dom browse-url cap-words superword subword org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org advice org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-R ob-latex ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs vc-arch sh-script smie executable hl-line dired dired-loaddefs cus-edit vc-git diff-mode easy-mmode bookmark pp openwith edmacro kmacro pcase map finder-inf tex-site rx info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit desktop frameset cl-loaddefs cl-lib cus-start cus-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 330501 52033) (symbols 48 38310 1) (miscs 40 576 576) (strings 32 107674 6592) (string-bytes 1 3014434) (vectors 16 45235) (vector-slots 8 1627611 234174) (floats 8 251 258) (intervals 56 13023 412) (buffers 992 57)) --text follows this line-- Hello, setting the variable "find-name-arg" to "-regex" (as opposed to the default "-name") causes "dired-do-find-regexp" and "dired-do-find-regexp-and-replace" to falsely report that no matches were found, even though the selected files clearly contain the search string. 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. Kind regards Renke From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 13 19:28:05 2022 Received: (at 59023-done) by debbugs.gnu.org; 14 Nov 2022 00:28:05 +0000 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 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 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) 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) Message-ID: <55003e2f-fb32-3eaf-4b35-8fff38417d12@yandex.ru> Date: Mon, 14 Nov 2022 02:27:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: bug#59023: 26.1; Setting find-name-arg to -regex breaks dired-do-find-regexp and dired-do-find-regexp-and-replace Content-Language: en-US To: renke.vonseggern@gmx.de, 59023-done@debbugs.gnu.org References: From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 59023-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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. From unknown Wed Aug 20 06:40:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Dec 2022 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator