[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/disk-usage 7708379 07/26: Use process-file instead of c
From: |
Pierre Neidhardt |
Subject: |
[elpa] externals/disk-usage 7708379 07/26: Use process-file instead of call-process |
Date: |
Tue, 26 Feb 2019 03:06:37 -0500 (EST) |
branch: externals/disk-usage
commit 7708379cc923abce1efcc6dc04733bb7e91dc246
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>
Use process-file instead of call-process
---
disk-usage.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/disk-usage.el b/disk-usage.el
index 3b26368..39963fa 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -55,8 +55,6 @@
;; TODO: Work out the docstrings and align to 80 columns.
-;; TODO: Use process-file instead of call-process.
-
;; TODO: Filter out files by date. Make generic filter function? Could factor
;; disk-usage-files into this.
@@ -167,7 +165,7 @@ $ find . -type f -exec du -sb {} +"
:name (cadr pair)
:size (string-to-number (cl-first pair)))))
(split-string (with-temp-buffer
- (call-process disk-usage--find-command nil '(t nil)
nil
+ (process-file disk-usage--find-command nil '(t nil)
nil
directory
"-type" "f"
"-exec" disk-usage--du-command
disk-usage--du-args "{}" "+")
@@ -214,7 +212,7 @@ This is slow but does not require any external process."
(split-string
(with-temp-buffer
(with-output-to-string
- (call-process disk-usage--du-command
+ (process-file disk-usage--du-command
nil '(t nil) nil
disk-usage--du-args path))
(buffer-string))))))
- [elpa] externals/disk-usage aa7d267 17/26: Document filters, (continued)
- [elpa] externals/disk-usage aa7d267 17/26: Document filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage bcae407 21/26: Replace (delq (mapcar ...)) with cl-loop, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 54d4aee 25/26: Propertize size, percent and children columns, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 8bf5d5c 08/26: Break some long lines, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 0fff6a8 12/26: Fix 'nil' children issue on inaccessible directories, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage a53be8d 26/26: Version 1.2.0, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6a01954 05/26: Rename disk-usage--path-at-point -> disk-usage--file-name-at-point, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 364c62b 20/26: Bind "a" and "A" to filter commands in disk-usage-by-types, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 6a214bc 09/26: Add many docstrings, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 488ddc8 14/26: Add support for filters, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 7708379 07/26: Use process-file instead of call-process,
Pierre Neidhardt <=
- [elpa] externals/disk-usage 7b14829 22/26: Normalize filter names, Pierre Neidhardt, 2019/02/26
- [elpa] externals/disk-usage 2d36a87 04/26: Fix disk-usage--path-at-point to return directory, Pierre Neidhardt, 2019/02/26