From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: brakjoller@hotmail.com (Barman Brakjoller) Newsgroups: gmane.emacs.help Subject: Re: How can I disable the display of ^M characters? Date: 24 Jun 2003 01:39:00 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1c58a7c3.0306240039.cb4567c@posting.google.com> References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1056444341 30780 80.91.224.249 (24 Jun 2003 08:45:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2003 08:45:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 10:45:39 2003 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 19UjQo-00080I-00 for ; Tue, 24 Jun 2003 10:45:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UjLs-0000J4-9A for gnu-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2003 04:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 193.41.170.225 Original-X-Trace: posting.google.com 1056443940 14281 127.0.0.1 (24 Jun 2003 08:39:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 24 Jun 2003 08:39:00 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114680 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:11170 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11170 > I often need to view log files which contain embedded control > characters, and these buffers always contain a great number of ^M > characters, which I find distracting. > > Can I get emacs to suppress the display of these characters? Yes, I don't know if this is the correct way, but it seems to work for me: (standard-display-ascii ?\015 "") and to turn it on again: (standard-display-ascii ?\015 "^M") ;; Or whatever characters ;; you want to be seen One time when I tried the first expression above and navigated to a point ín the buffer where there were a ASCII 13 character, emacs freezed, and I mean a major freeze. So test this a couple of times before you try it in a critical situation with lot of unsaved buffers.