From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.help Subject: Re: eshell and jobs Date: Thu, 30 Jan 2003 13:29:54 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87of5yidod.fsf@alice.dynodns.net> References: <2iy95589rj.fsf@kite.ssc.wisc.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043958648 5125 80.91.224.249 (30 Jan 2003 20:30:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 20:30:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eLK0-0001J8-00 for ; Thu, 30 Jan 2003 21:30:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eLLD-0004bW-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2003 15:31:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:BjjYX4+qmHu0prVQ0NNoU0OmMlA= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 25 Original-Xref: shelby.stanford.edu gnu.emacs.help:109608 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6124 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6124 >>>>> Michael Spittel 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