[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 696dd5c2 17/48: Fix free references
From: |
Stefan Monnier |
Subject: |
[elpa] externals/disk-usage 696dd5c2 17/48: Fix free references |
Date: |
Tue, 19 Feb 2019 07:59:59 -0500 (EST) |
branch: externals/disk-usage
commit 696dd5c24b1706a007d9f4c29703c3682213ca85
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Fix free references
---
disk-usage.el | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index d5c31fe..327ddc6 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -144,6 +144,18 @@ This is slow but does not require any external process."
disk-usage--du-args path))
(buffer-string))))))
+(defun disk-usage--sort-size-< (a b)
+ (let ((size-a (string-to-number (aref (cadr a) 0)))
+ (size-b (string-to-number (aref (cadr b) 0))))
+ (< size-a size-b)))
+
+(defvar disk-usage--format-size #'file-size-human-readable
+ "How to print size.
+Takes a number and returns a string.
+`file-size-human-readable' and `number-to-string' are good candidates.")
+
+(defvar disk-usage--sort #'disk-usage--sort-size-<)
+
(defun disk-usage--set-format (&optional total-size)
(setq tabulated-list-format
`[("Size"
@@ -178,18 +190,6 @@ This is slow but does not require any external process."
(aref e 1)))))
listing))))
-(defun disk-usage--sort-size-< (a b)
- (let ((size-a (string-to-number (aref (cadr a) 0)))
- (size-b (string-to-number (aref (cadr b) 0))))
- (< size-a size-b)))
-
-(defvar disk-usage--sort #'disk-usage--sort-size-<)
-
-(defvar disk-usage--format-size #'file-size-human-readable
- "How to print size.
-Takes a number and returns a string.
-`file-size-human-readable' and `number-to-string' are good candidates.")
-
(defvar disk-usage--format-files #'identity
"How to print files.
Takes a string and returns a string.
- [elpa] externals/disk-usage af22dd4 13/48: Display symlinks when not displaying full paths, (continued)
- [elpa] externals/disk-usage af22dd4 13/48: Display symlinks when not displaying full paths, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3ffaf8e 14/48: Fix header display, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 7fe5f1b 40/48: Fix keymap setup in disk-usage-by-types-mode, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage d959b7b 36/48: Display % column and sort types by total size, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3bbb09a 44/48: Right-align columns with units, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 441abf9 20/48: Add disk-usage-by-types, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 2d6fe3c 08/48: Resolve directory statically in button action, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 5998d42 41/48: Version 1.0.0, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 21b5749 38/48: Add disk-usage-files, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage e44979a 45/48: Version 1.1.0, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 696dd5c2 17/48: Fix free references,
Stefan Monnier <=
- [elpa] externals/disk-usage c55d478 34/48: Document modes and prefix argument, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3af5aa8 25/48: Reset hash table properly, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 01561b5 30/48: Implement marking and deletion, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage ae7ba9c 39/48: Fix missing "s" in type-info-names, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage d8d1643 35/48: Document file deletion, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 342d381 18/48: Add recursive listings, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 1806ea2 46/48: Support region and numeric arg when marking, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3c64a1 43/48: Prompt whether deleting or trashing and only revert if proceeding, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 7e0705e 47/48: Display percentage in disk-usage, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 745dd7e 01/48: Init, Stefan Monnier, 2019/02/19