unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How can I disable the display of ^M characters?
@ 2003-06-24  5:40 Matt Noel
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Noel @ 2003-06-24  5:40 UTC (permalink / raw)


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?

Matt Noel				mgn000@yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I disable the display of ^M characters?
       [not found] <mailman.8548.1056433250.21513.help-gnu-emacs@gnu.org>
@ 2003-06-24  8:39 ` Barman Brakjoller
  2003-06-24  9:28 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Barman Brakjoller @ 2003-06-24  8:39 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I disable the display of ^M characters?
       [not found] <mailman.8548.1056433250.21513.help-gnu-emacs@gnu.org>
  2003-06-24  8:39 ` How can I disable the display of ^M characters? Barman Brakjoller
@ 2003-06-24  9:28 ` Kai Großjohann
  1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2003-06-24  9:28 UTC (permalink / raw)


Matt Noel <mgn000@yahoo.com> writes:

> 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?

C-x RET c dos RET C-x C-f /path/to/file RET

-- 
This line is not blank.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-24  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8548.1056433250.21513.help-gnu-emacs@gnu.org>
2003-06-24  8:39 ` How can I disable the display of ^M characters? Barman Brakjoller
2003-06-24  9:28 ` Kai Großjohann
2003-06-24  5:40 Matt Noel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).