[comp.emacs] my Re: file completion in the shell buffer

cef@h.cs.cmu.edu.UUCP (03/21/87)

Well, I should have looked before I leaped. I tried the solution that
I sugessted and did indeed run into problems with spurious output from the
shell.

Let me then repose the question of how to get rid of the echoing of the 
command and the ^M's that appear at the end of the lines. I tried putting
"stty nl -echo" into "~/.emacs_csh" with no effect. WHATS GOING ON?
I could write a filter to blow off the undesirable stuff but thats almost as
undesirable as the extra output itself.

	Charlie Fineman

P.S. Next time maybe I'll remember how much easier it is to spec 
   something than to DO IT!

gore@nucsrl.UUCP (03/25/87)

/ nucsrl:comp.emacs / cef@h.cs.cmu.edu (Charles Fineman) /
> Let me then repose the question of how to get rid of the echoing of the 
> command and the ^M's that appear at the end of the lines. I tried putting
> "stty nl -echo" into "~/.emacs_csh" with no effect. WHATS GOING ON?

I found out why I was having this problem:  my shell was tcsh, not csh.
And tcsh turns on echo and outputs ^M's, and it ignores the 'nl' and
'-echo' options to 'stty'.  I worked around this problem by making an alias
for emacs that first sets the SHELL variable to /bin/csh.

Jacob Gore
Northwestern University, Computer Science Research Lab
{ihnp4,chinet}!nucsrl!gore

rbj@ICST-CMR.ARPA.UUCP (03/26/87)

? / nucsrl:comp.emacs / cef@h.cs.cmu.edu (Charles Fineman) /
? > Let me then repose the question of how to get rid of the echoing of the 
? > command and the ^M's that appear at the end of the lines. I tried putting
? > "stty nl -echo" into "~/.emacs_csh" with no effect. WHATS GOING ON?
? 
? I found out why I was having this problem:  my shell was tcsh, not csh.
? And tcsh turns on echo and outputs ^M's, and it ignores the 'nl' and
? '-echo' options to 'stty'.  I worked around this problem by making an alias
? for emacs that first sets the SHELL variable to /bin/csh.

That is certainly one solution, altho not the best one. The `proper'
way is to (setq shell-file-name "/bin/csh") in your .emacs file.

Of course, in the GNU lisp-shell (lsh) you would do:

	(alias emacs (lambda (SHELL) (emacs)) "/bin/csh")	:-)

Now as to tcsh, who has the latest and greatest copy and where can I
get it from?
 
? Jacob Gore
? Northwestern University, Computer Science Research Lab
? {ihnp4,chinet}!nucsrl!gore

	(Root Boy) Jim "Just Say Yes" Cottrell	<rbj@icst-cmr.arpa>
Somewhere in DOWNTOWN BURBANK a prostitute is OVERCOOKING a LAMB CHOP!!

P.S. Re: sex.1: While we're at it, why don't we censor Zippy as well!
After all, what does a Pinhead have to do with emacs either?

P.P.S. To all you lispers out there, I would appreciate any refinement
on my `alias'.

cef@h.cs.cmu.edu.UUCP (03/27/87)

Users who run under Unix can also use the ESHELL enviroment variable to
specifiy the name of their editor shell. I believe this functionallity was 
held over for compatability with Gosling's EMACS.

	Charlie Fineman

rbj@ICST-CMR.ARPA.UUCP (03/31/87)

? Users who run under Unix can also use the ESHELL enviroment variable to
? specifiy the name of their editor shell. I believe this functionallity was 
? held over for compatability with Gosling's EMACS.
? 
? 	Charlie Fineman

I have not found this to work as claimed. 

	(Root Boy) Jim "Just Say Yes" Cottrell	<rbj@icst-cmr.arpa>
	I am covered with pure vegetable oil and I am writing a best seller!