From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Cummings Newsgroups: gmane.emacs.bugs Subject: bug#50630: [External] : bug#50630: 28.0.50; list-directory shows free space for current directory, not the specified one Date: Sat, 18 Sep 2021 10:04:47 +0000 Message-ID: <_SDTyK-9gQUzFZH1J7iksJh2XyXdSnwMNtt3eAHE4w6d4RbG6QCh__2Db-482QMxClRhc2i96fEEWxRaZ9_qh2CkSZpiwax4i1-v_jpm8P0=@rootabega.net> References: <83lf3v8ysw.fsf@gnu.org> <83r1dn6pub.fsf@gnu.org> <83h7ei77fm.fsf@gnu.org> Reply-To: John Cummings Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50630-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 18 12:06:14 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 1mRXEb-0005ah-Ne for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 12:06:13 +0200 Original-Received: from localhost ([::1]:59216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRXEa-0006WY-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Sep 2021 06:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRXEQ-0006Uq-MB for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 06:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRXEQ-0007rW-EQ for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 06:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRXEQ-00049p-9F for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2021 06:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Cummings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Sep 2021 10:06:02 +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-done@debbugs.gnu.org id=D50630.163195950315867 (code D ref 50630); Sat, 18 Sep 2021 10:06:02 +0000 Original-Received: (at 50630-done) by debbugs.gnu.org; 18 Sep 2021 10:05:03 +0000 Original-Received: from localhost ([127.0.0.1]:33582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRXDS-00047p-LI for submit@debbugs.gnu.org; Sat, 18 Sep 2021 06:05:02 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]:39955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRXDO-000479-VB for 50630-done@debbugs.gnu.org; Sat, 18 Sep 2021 06:05:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rootabega.net; s=protonmail; t=1631959488; bh=03SewCFTht3maaUnXh4kUezfoyuH7MWyKEIwn8zEJew=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=cZViRtrM/zyCtR5F9PqiZRVUYmH0oCNAY8g64pAwpUzunptLFMw4UopYNcPNPhHKf 1qlVW6uiii3K6gi7RPTcDdz/b82DQCizMjaWnLBdUtfjp7mlfKu4vLeqfWMHNpPFaG +jt8HrcF8LrRJbQGCcWFhU1v40G75uuqUmPzvA/ICyCwu/862OurDeoPDC/mcQ3LYF c1B7HQFBfSyshycmy9ct6AZd9u/qxnLihB7CkKXjPt/W1y2UHCXQrA0vU6cLIMlzde o3Cvs4zqBYSSB4M7PzMK9UXL5MG4lv6x5u0Bro3yvUNJPrNomTxGO9VyTUjDf9GKPp VGyyThQ10PIng== In-Reply-To: <83h7ei77fm.fsf@gnu.org> 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:214612 Archived-At: On Saturday, September 18th, 2021 at 1:56 AM, Eli Zaretskii = wrote: > > The values look wrong to me here. > > In my testing, they reflect the correct volume (because the call is in > the buffer whose default-directory is set to the directory we are > going to display), which is why I installed the changes. Please tell > how you test, starting from "emacs -Q", because I'd like to look at > this. Here's a dirty manual way to confirm it. I just chose directories that I know are on different volumes, but I also confirmed it works with a loopb= ack filesystem created with something like losetup. This worked, i.e. showed me= different free space, with emacs -Q on a clean build of c1356d3a05a789555c327dd4cb0f4= 44fdf7be205 ;;doesn't matter; just use an existing dir (setq ld-target "~") ;;two dirs on different volumes (setq ld-working-dirs '("/" "~/emacs/")) (require 'ls-lisp) ;;make sure to use the ls-lisp functionality (setq ls-lisp-use-insert-directory-program nil) ;;shows the list-directory output for all working dirs (defun insert-ld-bug () (dolist (ld-working-dir ld-working-dirs) (let ((default-directory ld-working-dir)) (list-directory ld-target t) (insert-buffer-substring "*Directory*") (insert "=3D=3D=3D=3D=3D\n\n\n")))) (with-current-buffer-window "ld-bug" nil nil (insert-ld-bug))