From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: renke.vonseggern@gmx.de 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: Fri, 4 Nov 2022 19:01:43 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9694"; mail-complaints-to="usenet@ciao.gmane.io" To: 59023@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 04 20:36:42 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 1or2Ub-0002NV-6x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Nov 2022 20:36:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or2UD-0005E1-6t; Fri, 04 Nov 2022 15:36:17 -0400 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 1or2Ty-0005BP-Cv for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 15:36:02 -0400 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 1or2Ty-0003jz-5W for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1or2Tx-0002F6-RJ for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 15:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: renke.vonseggern@gmx.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2022 19:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59023 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16675905178565 (code B ref -1); Fri, 04 Nov 2022 19:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2022 19:35:17 +0000 Original-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 Original-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 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 1or10x-0007NM-In for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2022 14:02:00 -0400 Original-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 Original-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 Content-Disposition: inline X-Provags-ID: V03:K1:EvTd9YvPzwLJayy/+08xW7eyPQ00rQFuf/Wo1u0xG+5kskSTe3D PqiYtPTGH993+kxsyW2Yt7E8Gs9Hzn4RzdCqujd5XLzCmmQraKi3gEzZeZ7MTF2LLr3PWrg AGYIEmqCqbZeAeFiWrLUFOob0VB95sSbdcvbL9AxgMXtV0K2U2/waiLdjNQJ7hkkMq1ASd+ FXmJ2D0yKPWLp1XyVLyeQ== 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 LmpgnBkrxSk4LwUfmA7V36WJtjmQ66UTA18DSUyICL3l3jiSAYVp9GHzY6AFniBGfO2BHEey 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-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 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247104 Archived-At: 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