aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-05-28 00:58:08 +0000
committerRoland McGrath1993-05-28 00:58:08 +0000
commit619c556e37f32f85ee86abac0199c76f6b28149d (patch)
treec9c8a80b2ea05eed649b9475bb5a47b0c4a33921
parentb70cff717b6f580d5193a074df4d47fe3d80e10e (diff)
downloademacs-619c556e37f32f85ee86abac0199c76f6b28149d.tar.gz
emacs-619c556e37f32f85ee86abac0199c76f6b28149d.zip
(find-dired-sentinel): Write a line describing death.
Set mode-line-process to record exit status. Delete the process.
-rw-r--r--lisp/find-dired.el23
1 files changed, 19 insertions, 4 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 5524b2c230d..718aae76fa4 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -7,8 +7,8 @@
7;; Maintainer: Sebastian Kremer <sk@thp.uni-koeln.de> 7;; Maintainer: Sebastian Kremer <sk@thp.uni-koeln.de>
8;; Keywords: unix 8;; Keywords: unix
9 9
10(defconst find-dired-version (substring "$Revision: 1.11 $" 11 -2) 10(defconst find-dired-version (substring "$Revision: 1.12 $" 11 -2)
11 "$Id: find-dired.el,v 1.11 1993/03/17 15:24:18 eric Exp eric $") 11 "$Id: find-dired.el,v 1.12 1993/04/23 06:51:38 eric Exp roland $")
12 12
13;;; This program is free software; you can redistribute it and/or modify 13;;; This program is free software; you can redistribute it and/or modify
14;;; it under the terms of the GNU General Public License as published by 14;;; it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@
33;; find-dired|Roland McGrath, Sebastian Kremer 33;; find-dired|Roland McGrath, Sebastian Kremer
34;; |roland@gnu.ai.mit.edu, sk@thp.uni-koeln.de 34;; |roland@gnu.ai.mit.edu, sk@thp.uni-koeln.de
35;; |Run a `find' command and dired the output 35;; |Run a `find' command and dired the output
36;; |$Date: 1993/03/17 15:24:18 $|$Revision: 1.11 $| 36;; |$Date: 1993/04/23 06:51:38 $|$Revision: 1.12 $|
37 37
38;; INSTALLATION ====================================================== 38;; INSTALLATION ======================================================
39 39
@@ -198,7 +198,22 @@ Thus ARG can also contain additional grep options."
198 (if (buffer-name buf) 198 (if (buffer-name buf)
199 (save-excursion 199 (save-excursion
200 (set-buffer buf) 200 (set-buffer buf)
201 (setq mode-line-process nil) 201 (let ((buffer-read-only nil))
202 (save-excursion
203 (goto-char (point-max))
204 (insert "\nfind " state)
205 (forward-char -1) ;Back up before \n at end of STATE.
206 (insert " at " (substring (current-time-string) 0 19))
207 (forward-char 1)
208 (setq mode-line-process
209 (concat ": "
210 (symbol-name (process-status proc))))
211 ;; Since the buffer and mode line will show that the
212 ;; process is dead, we can delete it now. Otherwise it
213 ;; will stay around until M-x list-processes.
214 (delete-process proc)
215 ;; Force mode line redisplay soon.
216 (set-buffer-modified-p (buffer-modified-p))))
202 (message "find-dired %s finished." (current-buffer)))))) 217 (message "find-dired %s finished." (current-buffer))))))
203 218
204(or (fboundp 'start-process-shell-command) 219(or (fboundp 'start-process-shell-command)