[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage ed9dc23 11/48: Keep cursor on current entry
From: |
Stefan Monnier |
Subject: |
[elpa] externals/disk-usage ed9dc23 11/48: Keep cursor on current entry when re-ordering buffer |
Date: |
Tue, 19 Feb 2019 07:59:58 -0500 (EST) |
branch: externals/disk-usage
commit ed9dc23008aefe27641c5cf378a462df8960bff3
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Keep cursor on current entry when re-ordering buffer
---
disk-usage.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index 0aec2a5..ff69b2d 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -165,13 +165,13 @@ This is slow but does not require any external process."
(disk-usage--set-format (disk-usage--total listing))
(setq tabulated-list-entries
(mapcar (lambda (e)
- (list nil (vector (number-to-string (aref e 0))
- (if (file-directory-p (aref e 1))
- (cons (aref e 1)
- (list 'action
- (lambda (_)
- (disk-usage (aref e
1)))))
- (aref e 1)))))
+ (list e (vector (number-to-string (aref e 0))
+ (if (file-directory-p (aref e 1))
+ (cons (aref e 1)
+ (list 'action
+ (lambda (_)
+ (disk-usage (aref e
1)))))
+ (aref e 1)))))
listing))))
(defun disk-usage--sort-size-< (a b)
- [elpa] externals/disk-usage 9b55d63 09/48: Add disk-usage-toggle-full-path, (continued)
- [elpa] externals/disk-usage 9b55d63 09/48: Add disk-usage-toggle-full-path, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3bcae9 22/48: readme: Link to Guix, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f330f01 31/48: Fix structure manipulation in disk-usage-by-types, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 00aa40a 10/48: Bind "S-<return>" to disk-usage-find-file-at-point, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 4fc5cb3 33/48: Refresh cache with prefix argument, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 1949c82 37/48: Add disk-usage-by-types-here, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage f3895a3 27/48: Normalize some function names, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0d4ce4b 12/48: Bind "^" and "<backspace>" to disk-usage-up, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage aa3996e 24/48: Default to disk-usage--list, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 90607dc 23/48: Use file-info structure instead of vectors, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage ed9dc23 11/48: Keep cursor on current entry when re-ordering buffer,
Stefan Monnier <=
- [elpa] externals/disk-usage dcfbd19 29/48: Rename sort functions, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 0c135ed 21/48: Handle inaccessible directories, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 19103ba 42/48: Add unmark-at-point, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 3357ba9 32/48: Include screenshots, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage 2626642 15/48: Remove spurious "evil" keyword, Stefan Monnier, 2019/02/19
- [elpa] externals/disk-usage eefa57f 28/48: Turn disk-usage-size-format-function into a defcustom, Stefan Monnier, 2019/02/19
- [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