Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!bbn!gateway!NSWC-OAS.ARPA!dsill
From: dsill@NSWC-OAS.ARPA (Dave Sill)
Newsgroups: comp.emacs
Subject: Re: Restarting stopped emacs
Message-ID: <29996@bbn.COM>
Date: 23 Sep 88 12:22:56 GMT
Sender: news@bbn.COM
Organization: Naval Surface Warfare Center, Dahlgren, VA
Lines: 14

Terry V. Bush  writes:
>[C-shell script for foregrounding or executing emacs as required.]

I use almost the same approach, but I found an alias that does it
faster.  Here it is:

alias em \
'jobs >! /tmp/jobs$$; grep emacs /tmp/jobs$$ > /dev/null && fg %?emacs || \
 /local/bin/emacs'

=========
"Computers should work the way beginners expect them to,
 and one day they will."
					-- Ted Nelson