help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to remove ^L or ^M from some buffer outputs?


From: Yuri Khan
Subject: Re: Any way to remove ^L or ^M from some buffer outputs?
Date: Tue, 6 Oct 2020 01:59:02 +0700

On Tue, 6 Oct 2020 at 01:22, Eli Zaretskii <eliz@gnu.org> wrote:

> > Those are shell output buffers and similar, and it looks ugly, I was
> > thinking there is some option to set, to avoid that. Of course I will
> > not edit it with hand, it is about watching output nicely formatted.
>
> If this text comes from the shell, you can make Emacs eliminate the ^M
> characters by setting the read part of process-coding-system to *-dos.

I believe the issue is not about eliminating the ^M characters as
such. The program is clearly using the CR character to overwrite its
earlier output. Jean probably wants to obtain that effect in an Emacs
shell buffer — seeing only the last string output to a line.

To achieve that, I’d probably try adding a font-lock pattern of .*\r
and fontify it with an invisible face.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]