help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eshell and jobs


From: John Wiegley
Subject: Re: eshell and jobs
Date: Thu, 30 Jan 2003 13:29:54 -0700
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

>>>>> Michael Spittel <mspittel@kite.ssc.wisc.edu> writes:

> When I'm running a job, eshell has the courtesy to tell me that the
> job is done by reporting at the bottom of the screen (command line?),
> that the job is finished.
>
> I was wondering, is there a way to make that output goto a buffer with
> a name of my choosing (e.g. *eshell.job.finished*)?

You will have to rewrite `eshell-remove-process-entry', so that it
inserts something into a buffer rather than calling message.  For
example:

(defun eshell-remove-process-entry (entry)
  "Record the process ENTRY as fully completed."
  (if (and (eshell-processp (car entry))
           (nth 2 entry)
           eshell-done-messages-in-minibuffer)
      (with-current-buffer (get-buffer-create "*eshell.job.finished*")
        (insert (format "[%s]+ Done %s" (process-name (car entry))
                         (process-command (car entry))))))
  (setq eshell-process-list
        (delq entry eshell-process-list)))

John


reply via email to

[Prev in Thread] Current Thread [Next in Thread]