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#50630: [PATCH] Add tests for insert-directory Date: Sat, 25 Sep 2021 20:44:25 +0300 Message-ID: <83mto0pn2e.fsf@gnu.org> References: <83a6k1rxrc.fsf@gnu.org> <83ilyorei3.fsf@gnu.org> <83bl4gr9gr.fsf@gnu.org> <83pmswpnwh.fsf@gnu.org> <5lfMDzHA2waL6rqBXIu9VVdZiGHqsP3B1wJq3MvU71eZwrdqyi4iXUwuEuldT-SNilGq3jrS88bYp4zKIAo-xD2K8teQdBKQszDYhm52bMc=@rootabega.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50630@debbugs.gnu.org To: John Cummings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 25 19:57:24 2021 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 1mUBvP-0000RQ-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 19:57:23 +0200 Original-Received: from localhost ([::1]:42388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUBvO-0001sT-En for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 13:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUBjS-0007K1-0d for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51315) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUBjR-0008Nj-O7 for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUBjR-0007Zv-Ie for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Sep 2021 17:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50630 X-GNU-PR-Package: emacs Original-Received: via spool by 50630-submit@debbugs.gnu.org id=B50630.163259187429081 (code B ref 50630); Sat, 25 Sep 2021 17:45:01 +0000 Original-Received: (at 50630) by debbugs.gnu.org; 25 Sep 2021 17:44:34 +0000 Original-Received: from localhost ([127.0.0.1]:34628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUBj0-0007Yy-H7 for submit@debbugs.gnu.org; Sat, 25 Sep 2021 13:44:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUBiz-0007Yn-Ml for 50630@debbugs.gnu.org; Sat, 25 Sep 2021 13:44:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49580) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUBiu-0007wX-El; Sat, 25 Sep 2021 13:44:28 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1956 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 1mUBiu-0003cp-1I; Sat, 25 Sep 2021 13:44:28 -0400 In-Reply-To: <5lfMDzHA2waL6rqBXIu9VVdZiGHqsP3B1wJq3MvU71eZwrdqyi4iXUwuEuldT-SNilGq3jrS88bYp4zKIAo-xD2K8teQdBKQszDYhm52bMc=@rootabega.net> (message from John Cummings on Sat, 25 Sep 2021 17:37:29 +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:215486 Archived-At: > Date: Sat, 25 Sep 2021 17:37:29 +0000 > From: John Cummings > Cc: 50630@debbugs.gnu.org > > > Do we agree that listing a given directory should show the same amount > > of used and free space, not matter what is the default-directory of > > the buffer from which you invoke insert-directory? Because that's > > what I saw after running your recipe. > > Yes, I agree. If you saw the same amount of free space, > it's because you didn't make pwd-a and pwd-b be directories > on two different volumes that have different amounts of free space. OK, so I'm saying that when invoking Dired, I see the same numbers (both of them) no matter from which buffer I invoked Dired. Even if the default-directory of each buffer is on a different drive. With your recipe, indeed the free space is not always correct. But why is that use case interesting? insert-directory is not a normally a user-visible function.