[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.
- RE: Any way to remove ^L or ^M from some buffer outputs?, (continued)
- RE: Any way to remove ^L or ^M from some buffer outputs?, Drew Adams, 2020/10/04
- Re: Any way to remove ^L or ^M from some buffer outputs?, Emanuel Berg, 2020/10/04
- RE: Any way to remove ^L or ^M from some buffer outputs?, Drew Adams, 2020/10/05
- Re: Any way to remove ^L or ^M from some buffer outputs?, Jean Louis, 2020/10/05
- Re: Any way to remove ^L or ^M from some buffer outputs?, Eli Zaretskii, 2020/10/05
- Re: Any way to remove ^L or ^M from some buffer outputs?, Eli Zaretskii, 2020/10/05
- Re: Any way to remove ^L or ^M from some buffer outputs?,
Yuri Khan <=
- Re: Any way to remove ^L or ^M from some buffer outputs?, Stefan Monnier, 2020/10/05
- Re: Any way to remove ^L or ^M from some buffer outputs?, Jean Louis, 2020/10/09
- Re: Any way to remove ^L or ^M from some buffer outputs?, Eli Zaretskii, 2020/10/10
Re: Any way to remove ^L or ^M from some buffer outputs?, Patrick Mahan, 2020/10/04