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:26:22 +0300 Message-ID: <83pmswpnwh.fsf@gnu.org> References: <83a6k1rxrc.fsf@gnu.org> <83ilyorei3.fsf@gnu.org> <83bl4gr9gr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24083"; 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:27:09 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 1mUBS9-00060p-37 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 19:27:09 +0200 Original-Received: from localhost ([::1]:36816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUBS8-0000y5-5s for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Sep 2021 13:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUBS2-0000xs-67 for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUBS1-0001kY-VW for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUBS1-0004xv-SQ for bug-gnu-emacs@gnu.org; Sat, 25 Sep 2021 13:27: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:27: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.163259079219051 (code B ref 50630); Sat, 25 Sep 2021 17:27:01 +0000 Original-Received: (at 50630) by debbugs.gnu.org; 25 Sep 2021 17:26:32 +0000 Original-Received: from localhost ([127.0.0.1]:34588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUBRY-0004xD-9h for submit@debbugs.gnu.org; Sat, 25 Sep 2021 13:26:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUBRW-0004x0-I5 for 50630@debbugs.gnu.org; Sat, 25 Sep 2021 13:26:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUBRR-0001CC-7t; Sat, 25 Sep 2021 13:26:25 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4806 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 1mUBRQ-00005F-QZ; Sat, 25 Sep 2021 13:26:25 -0400 In-Reply-To: (message from John Cummings on Sat, 25 Sep 2021 17:15:21 +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:215483 Archived-At: > Date: Sat, 25 Sep 2021 17:15:21 +0000 > From: John Cummings > Cc: 50630@debbugs.gnu.org > > >> I and others found that the same problem was duplicated in ls-lisp.el > >> and tramp-sh.el, and I provided instructions to reproduce attached > >> earlier in the thread: > >> https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-09/msg01813.html > > > That recipe invokes insert-directory in some arbitrary way, which is > > probably different from what happens when one invokes Dired. So I'm > > not sure we should worry about that. But anyway, I tried that recipe > > on MS-Windows, and I don't see the problem: the values shown on the > > first line reflect my home directory, not pwd-a or pwd-b. > > I'm replying only to this part for now, because we need to agree on > the facts in order to do anything else. If what you say is accurate, > then this bug may not really exist as I've described it, but I think > I've done everything reasonable to eliminate that possibility. Are you > sure that you picked values for pwd-a and pwd-b that would have > different amounts of available space on MS-Windows, like two drive > letters on physically separate disks? No, they were 2 different directories on the same drive. Maybe I don't understand which part of the totals you want to fix: there are two numbers there. > I tried to supply values for pwd-a and pwd-b that would be under > different mount points on a Unix-like system, / and /proc, but if your > system is different, you may need to pick different Unix-like values > for those, too. I indeed provided different values, but not on different volumes. What is the significance of a different volume for this purpose? > I just built 285f59cbe230701f15d28dfe8036cf2feb9d1d31 (terminal only) > from a brand new git clone on Ubuntu 20,and here are the results of > the recipes. I'll use a "[" character to quote the text I copied off > my terminal: Thanks, but it's hard to interpret that. What should I be looking at? 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.