removing ^M from shell output not working

Sprenger, Karel Karel.Sprenger@Compaq.com
Tue May 8 12:50:00 GMT 2001


Hi,
All I have is the following lines in my .emacs file:
;; Add proc-filter-shell-output-filter to get rid of ^M in shells
(require 'proc-filters)
(add-hook 'comint-output-filter-functions 'proc-filter-shell-output-filter)
I used to have lots of other code that supposedly got rid of ^M's but
didn't. Only recently I discovered that the above does the trick for me
when I use Cygwin's bash as shell program.
Cheers,
Karel
-- 
Karel Sprenger, senior solution specialist 
COMPAQ, Professional Services 
Phone: +31 (30) 283 4542 Home: +31 (20) 670 0942 
E-mail: karel.sprenger@compaq.com Home: cjas@xs4all.nl 
"A behaviorist is someone who pulls habits out of rats." -- Anonymous 
-----Original Message-----
From: Sagar R. Shah [ mailto:Sagar.Shah@sid.cam.ac.uk ]
Sent: Tuesday, May 08, 2001 12:36
To: Sam Steingold
Cc: Daniel Barclay; ntemacs-users@cs.washington.edu; cygwin
Subject: Re: removing ^M from shell output not working
On 7 May 2001, Sam Steingold wrote: 
> (modify-coding-system-alist 'process "" 'unix) 
>> works for me like a charm on e21 (CVS version - the latest pretest). 
>> whoever maintains the FAQs might want to update it. 
Has anyone got it to work on emacs 20.7? (or anything pre-21?) 
When i try it i get: 
"Invalid coding system: unix" 
any ideas on what's missing? 
Thanks 
Sagar 
--------------------------------- 
Sagar R. Shah 
http://www.netnexus.co.uk/ 
http://www.netnexus.uklinux.net/ 
--------------------------------- 
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /