delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/07/16:04:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: sanpietro.red-bean.com: Host gopher.exapps.com [12.25.11.194] claimed to be xchange.com
To: Daniel Barclay <Daniel DOT Barclay AT digitalfocus DOT com>
Cc: "ntemacs-users AT cs DOT washington DOT edu" <ntemacs-users AT cs DOT washington DOT edu>,
cygwin <cygwin AT cygwin DOT com>
Subject: Re: removing ^M from shell output not working
References: <3AF6E533 DOT CC362B8 AT digitalfocus DOT com>
Reply-To: sds AT gnu DOT org
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
Mail-Copies-To: never
From: Sam Steingold <sds AT gnu DOT org>
In-Reply-To: <3AF6E533.CC362B8@digitalfocus.com>
Date: 07 May 2001 16:02:13 -0400
Message-ID: <uvgndgc6y.fsf@xchange.com>
Lines: 22
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.103
MIME-Version: 1.0

> Would anyone have any idea why my .emacs configuration to strip ^M 
> characters from shell output isn't working?
> 
> Based on the Cygwin "Why can't I run bash as a shell under NT Emacs" page 
> at http://sources.redhat.com/cygwin/faq/faq_4.html#SEC54, I have this:
> 
>   ;;
>   ;; This removes unsightly ^M characters that would otherwise
>   ;; appear in the output of java applications.
>   ;; 
>   (add-hook 'comint-output-filter-functions
>             'comint-strip-ctrl-m)

(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.

-- 
Sam Steingold (http://www.podval.org/~sds)
All generalizations are wrong.  Including this.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019