GNU bug report logs -
#13191
24.3.50; insert-directory: Always replace "total" with "total used in directory"
Previous Next
Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>
Date: Sat, 15 Dec 2012 11:37:01 UTC
Severity: wishlist
Tags: fixed, patch
Found in version 24.3.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13191 in the body.
You can then email your comments to 13191 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13191
; Package
emacs
.
(Sat, 15 Dec 2012 11:37:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Schmidt <christopher <at> ch.ristopher.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 15 Dec 2012 11:37:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
severity: wishlist
In insert-directory there are these forms:
(goto-char beg)
;; First find the line to put it on.
(when (re-search-forward "^ *\\(total\\)" nil t)
(let ((available (get-free-disk-space ".")))
(when available
;; Replace "total" with "used", to avoid confusion.
(replace-match "total used in directory" nil nil nil 1)
(end-of-line)
(insert " available " available))))))
I think "total" should always be replaced by "total used in directory"
even if Emacs is not able to get the free disk space. This increases
consistency and avoids confusion by other packages which rely on
consistent output, such as dired-details,
Here is a patch.
[files-insert-directory.diff (text/x-diff, inline)]
--- lisp/ChangeLog
+++ lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-15 Christopher Schmidt <christopher <at> ch.ristopher.com>
+
+ * files.el (insert-directory): Always replace "total" with "total
+ used in directory" to avoid confusion. (Bug#)
+
2012-12-14 Glenn Morris <rgm <at> gnu.org>
* emacs-lisp/macroexp.el (macroexp--warn-and-return):
--- lisp/files.el
+++ lisp/files.el
@@ -6299,10 +6299,11 @@
(goto-char beg)
;; First find the line to put it on.
(when (re-search-forward "^ *\\(total\\)" nil t)
+ ;; Replace "total" with "total used in directory" to
+ ;; avoid confusion.
+ (replace-match "total used in directory" nil nil nil 1)
(let ((available (get-free-disk-space ".")))
(when available
- ;; Replace "total" with "used", to avoid confusion.
- (replace-match "total used in directory" nil nil nil 1)
(end-of-line)
(insert " available " available))))))))))
[Message part 3 (text/plain, inline)]
If this patch is applied, tramp (tramp-sh-handle-insert-directory)
should be modified to do the same.
Christopher
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13191
; Package
emacs
.
(Sat, 15 Dec 2012 15:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 13191 <at> debbugs.gnu.org (full text, mbox):
> I think "total" should always be replaced by "total used in directory"
> even if Emacs is not able to get the free disk space. This increases
> consistency and avoids confusion by other packages which rely on
> consistent output, such as dired-details,
FWIW, in Dired+ I use this:
files 1559/1559 space used 63122 available 24468736
Added tag(s) patch.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Sep 2019 16:45:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13191
; Package
emacs
.
(Sat, 23 Nov 2019 14:48:05 GMT)
Full text and
rfc822 format available.
Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):
Christopher Schmidt <christopher <at> ch.ristopher.com> writes:
> I think "total" should always be replaced by "total used in directory"
> even if Emacs is not able to get the free disk space. This increases
> consistency and avoids confusion by other packages which rely on
> consistent output, such as dired-details,
Makes sense to me. I've now installed this in Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 23 Nov 2019 14:49:04 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
13191 <at> debbugs.gnu.org and Christopher Schmidt <christopher <at> ch.ristopher.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 23 Nov 2019 14:49:13 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 22 Dec 2019 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 124 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.