From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#57293: 29.0.50; query-replace with Wdired skips symlink target Date: Thu, 18 Aug 2022 20:11:36 -0700 Message-ID: <60773.1660878696@alto> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30280"; mail-complaints-to="usenet@ciao.gmane.io" To: 57293@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 19 05:12:26 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 1oOsQr-0007gQ-MB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Aug 2022 05:12:25 +0200 Original-Received: from localhost ([::1]:39318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOsQq-0000J8-HS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Aug 2022 23:12:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOsQV-0000Ih-Dw for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 23:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOsQU-0008I2-Uv for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 23:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOsQU-0002cv-HD for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 23:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Aug 2022 03:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57293 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.166087871610084 (code B ref -1); Fri, 19 Aug 2022 03:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Aug 2022 03:11:56 +0000 Original-Received: from localhost ([127.0.0.1]:56999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOsQN-0002cZ-LW for submit@debbugs.gnu.org; Thu, 18 Aug 2022 23:11:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOsQL-0002cQ-Aq for submit@debbugs.gnu.org; Thu, 18 Aug 2022 23:11:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOsQL-00007q-4Q for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 23:11:53 -0400 Original-Received: from shell1.rawbw.com ([198.144.192.42]:64633) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOsQJ-0008EM-2j for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 23:11:52 -0400 Original-Received: from alto (135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 27J3BfBZ011111 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 18 Aug 2022 20:11:47 -0700 (PDT) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged) claimed to be alto X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.50 Content-ID: <60772.1660878696.1@alto> Received-SPF: none client-ip=198.144.192.42; envelope-from=mkupfer@alum.berkeley.edu; helo=shell1.rawbw.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:240187 Archived-At: =46rom "emacs -Q": 1. Create a file foo, and create a symlink bar that points to foo. S lrwxrwxrwx 1 kupfer kupfer 3 Aug 18 19:48 bar -> foo -rw-r--r-- 1 kupfer kupfer 0 Aug 18 19:46 foo 2. Visit the directory with dired and type C-x C-q. 3. Move point to the start of the buffer. 4. M-% foo RET baz RET I expect query-replace to ask me about both the file foo and the symlink target foo. That's what Emacs 28.1 does, and it's quite handy. Instead, query-replace asks me only about the file foo, ignoring the symlink target. S lrwxrwxrwx 1 kupfer kupfer 3 Aug 18 19:48 bar -> foo -rw-r--r-- 1 kupfer kupfer 0 Aug 18 19:46 baz I can still manually fix the symlink (replace "foo" with "baz") while in Wdired, but I think query-replace should be able to do this for me. The build is Emacs master 7dab52dfbc plus a couple local fixes to MH-E, so I expect it's reproducible with just 7dab52dfbc. In GNU Emacs 29.0.50 (build 14, x86_64-pc-linux-gnu, X toolkit, cairo vers= ion 1.16.0, Xaw scroll bars) of 2022-08-18 built on alto Repository revision: d3fd48a98606cd8d8de577af114ce0eb046ff210 Repository branch: master-mdk Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --prefix=3D/usr/new' Configured features: CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $LC_TIME: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t delete-selection-mode: t global-eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t column-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow mh-identity emacsbug misearch multi-isearch wdired dired-aux dired-x shr-color color textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp mm-archive mail-extr mh-mime pp mule-util mh-search mh-letter mh-show goto-addr thingatpt gnus-cite mh-thread mh-inc hl-line mh-tool-bar mh-acros mh-seq mh-xface mh-utils mh-folder which-func imenu files-x mdk-mail gnus-mh gnus-msg mh-comp mh-scan mh-gnus gnus-dup nnmh gnus-score score-mode gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map gv url-vars gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit mh-e mh-buffers mh-loaddefs message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader server noutline outline easy-mmode icons cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs byte-opt bytecomp byte-compile cconv shell subr-x pcomplete comint ansi-color ring xcscope advice delsel vc vc-dispatcher timeclock cl-loaddefs cl-lib mdk-hacks rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 341028 35766) (symbols 48 19344 2) (strings 32 82149 1520) (string-bytes 1 2322871) (vectors 16 64652) (vector-slots 8 1498444 216905) (floats 8 324 210) (intervals 56 3883 77) (buffers 992 24))