From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57334: 28.1; Fix wdired with (dired '(dir f1 f2 ...)) Date: Mon, 22 Aug 2022 14:26:58 +0300 Message-ID: <83czcsbjst.fsf@gnu.org> References: <878rng23aq.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57334@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 22 13:28:34 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 1oQ5be-0002wH-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 13:28:34 +0200 Original-Received: from localhost ([::1]:49496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQ5bd-0002Jw-2Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 07:28:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ5b9-0002GT-7L for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 07:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQ5b8-0006SN-HT for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 07:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQ5b8-0002dW-Da for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 07:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2022 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57334 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57334-submit@debbugs.gnu.org id=B57334.166116762210020 (code B ref 57334); Mon, 22 Aug 2022 11:28:02 +0000 Original-Received: (at 57334) by debbugs.gnu.org; 22 Aug 2022 11:27:02 +0000 Original-Received: from localhost ([127.0.0.1]:38141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ5aA-0002bM-9f for submit@debbugs.gnu.org; Mon, 22 Aug 2022 07:27:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ5a8-0002b4-Ru for 57334@debbugs.gnu.org; Mon, 22 Aug 2022 07:27:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ5a3-0006I0-LE; Mon, 22 Aug 2022 07:26:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DYMqTBPLirTdc7KrzMcsKTBWK+TzomxMOS7FOE2A25Q=; b=XypS0MoogJka RSmuSYg6HGoFgsEhl3qMrN1TGXnv0sBmEJUmRzN/TYbanGtwLze0my0+S6+N+HC9LkiH8x+3sVLEG QJGslpYzq0G6iA940QfY6bX91ABadZ3FpccIKOckKIT1x9vSAmU4F2//iJ78eQNv2O7/rBAVZnbMR JqDgcjhVMxKczsBEFzoJpV9EKbv277iGgNvabIMLBs0yAums9TrdcaZZj9piXAUNV4ie4fORMyDt7 c6mSLs/fO7g3UI6VPdv5hrgAd3GlZuRzCsszvnG02yYgHPkV9U1kCCAqyLQ6jfA4sFnAqtbV17plp Vz4TSnci9XJ5Q3AZvKyixw==; Original-Received: from [87.69.77.57] (port=2374 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ5a3-0001BK-0B; Mon, 22 Aug 2022 07:26:55 -0400 In-Reply-To: <878rng23aq.fsf@posteo.net> (message from Thierry Volpiatto on Mon, 22 Aug 2022 06:23:52 +0000) 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:240405 Archived-At: > From: Thierry Volpiatto > Date: Mon, 22 Aug 2022 06:23:52 +0000 > > there is an action in helm that allows creating a dired buffer with > marked files for further editing with wdired. > For this I have to call dired with its dirname argument as a list: > (dired ' (dir f1 f2 f3)) > Unfortunately this is broken since years and until now I had to use an advice > to fix it. > The advice is working up to emacs-28.1 but now it becomes difficult to > write an advice compatible with all emacs versions, here is a patch to > apply on 29.0.50. > > To reproduce the bug from emacs -Q: > > 1) Ensure ~/tmp/test.txt and ~/tmp/test2.txt exist > 2) (dired '("~/tmp" "/home/thierry/tmp/test.txt" "/home/thierry/tmp/test2.txt")) > 3) M-x wdired-change-to-dired-mode (C-x C-q) > 4) Rename test.txt to test1.txt > 5) C-x C-s Is this the same problem as reported here: https://lists.gnu.org/archive/html/help-gnu-emacs/2022-08/msg00093.html And if so, does the patch I posted in response, here: https://lists.gnu.org/archive/html/help-gnu-emacs/2022-08/msg00102.html solve it, perhaps?