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.help Subject: Re: dired cons bug? Date: Fri, 12 Aug 2022 08:50:12 +0300 Message-ID: <83r11mnh7v.fsf@gnu.org> References: <35b2cf5e-a1ef-109f-0eba-4f8e30655813@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24209"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 12 07:52:02 2022 Return-path: Envelope-to: geh-help-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 1oMNaT-00066W-Qo for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 07:52:02 +0200 Original-Received: from localhost ([::1]:34986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMNaS-0000om-Rl for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 01:52:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMNYn-0000oa-Jn for help-gnu-emacs@gnu.org; Fri, 12 Aug 2022 01:50:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMNYn-0005wX-AW for help-gnu-emacs@gnu.org; Fri, 12 Aug 2022 01:50:17 -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=zyWzY3KTABVy58QynY2XzNwQ4mNYZBmGVYkjnT2S/c8=; b=BbP1sW7qxFDD CyutspYwyXv+q6isApSsKUxoDzta1QezODml0Ry09Cc8pSk03eav5gOuRECyb99G50I8PiiRBspM0 0ywd+yFWOj0N5hOa9Q0LOSuZiSmYQCxVDkyv2JXOaqjvFFm5iuwcUm7B6LsIXwFlqPtcpvyQy5BlK /N+gv8fXOh5Nud8MEZNPs7+zq9BebB6DJKQqIGie9Y4/mBEl14eA7YOqDk8/A9gGK2cqhlbUtkfbs gijjrmnyugvmaOzQzT6Y7kRUWnEeS67fMC2bQqaT8/j2JkQ+WKbXznnCUwK07tsWRkiO8gUFKEQNV x9LwZJKjAOw6DpoUY856Rg==; Original-Received: from [87.69.77.57] (port=4279 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 1oMNYm-00077g-PK for help-gnu-emacs@gnu.org; Fri, 12 Aug 2022 01:50:17 -0400 In-Reply-To: <35b2cf5e-a1ef-109f-0eba-4f8e30655813@gmx.at> (message from Harald Judt on Thu, 11 Aug 2022 11:23:52 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138817 Archived-At: > Date: Thu, 11 Aug 2022 11:23:52 +0200 > From: Harald Judt > > I have found an explanation for my own question: The problem is that after a > dired-do-xxxx command, the buffer of the _target_ directory will be refreshed. > But the target directory of /home/user/tmp/test/a/a would be > /home/user/tmp/test/a/, and that is different from the one used in the base > dir of the cons (/home/user/). In fact, if I add a file /home/user/x and add > that to the file list and delete it, the buffer will be reverted correctly. If > I delete any of the other files, it won't. > > Now, what could I do to programmatically revert the current dired buffer after > executing a dired-do command? I have posted a patch that's supposed to fix this. Please try it.