diff options
| author | Stefan Kangas | 2022-11-04 20:23:55 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-11-04 20:23:55 +0100 |
| commit | 7e2d71dd5cf49e2906e3e501bcb1280c92c6e6ea (patch) | |
| tree | 73a05e5490c24364e16817c3b98a7fb5e743bb72 | |
| parent | 5f0af7caecb3096816cc0f2edaefbd7daf838e57 (diff) | |
| download | emacs-7e2d71dd5cf49e2906e3e501bcb1280c92c6e6ea.tar.gz emacs-7e2d71dd5cf49e2906e3e501bcb1280c92c6e6ea.zip | |
* lisp/dired-aux.el (dired-check-process): Use progress reporter.
| -rw-r--r-- | lisp/dired-aux.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 29f973e506a..5e1745069fd 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1025,8 +1025,9 @@ If PROGRAM exits successfully, display \"MSG...done\" and return nil. | |||
| 1025 | If PROGRAM exits abnormally, save in `dired-log-buffer' the command | 1025 | If PROGRAM exits abnormally, save in `dired-log-buffer' the command |
| 1026 | that invoked PROGRAM and the messages it emitted, and return either | 1026 | that invoked PROGRAM and the messages it emitted, and return either |
| 1027 | the offending ARGUMENTS or PROGRAM if no ARGUMENTS were provided." | 1027 | the offending ARGUMENTS or PROGRAM if no ARGUMENTS were provided." |
| 1028 | (let (err-buffer err (dir default-directory)) | 1028 | (let ((dir default-directory) |
| 1029 | (message "%s..." msg) | 1029 | (reporter (make-progress-reporter msg)) |
| 1030 | err-buffer err) | ||
| 1030 | (save-excursion | 1031 | (save-excursion |
| 1031 | ;; Get a clean buffer for error output: | 1032 | ;; Get a clean buffer for error output: |
| 1032 | (setq err-buffer (get-buffer-create " *dired-check-process output*")) | 1033 | (setq err-buffer (get-buffer-create " *dired-check-process output*")) |
| @@ -1041,8 +1042,8 @@ the offending ARGUMENTS or PROGRAM if no ARGUMENTS were provided." | |||
| 1041 | (dired-log err-buffer) | 1042 | (dired-log err-buffer) |
| 1042 | (or arguments program t)) | 1043 | (or arguments program t)) |
| 1043 | (kill-buffer err-buffer) | 1044 | (kill-buffer err-buffer) |
| 1044 | (message "%s...done" msg) | 1045 | (progress-reporter-done reporter) |
| 1045 | nil)))) | 1046 | nil)))) |
| 1046 | 1047 | ||
| 1047 | (defun dired-shell-command (cmd) | 1048 | (defun dired-shell-command (cmd) |
| 1048 | "Run CMD, and check for output. | 1049 | "Run CMD, and check for output. |