[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: |
Drew Adams |
Subject: |
RE: Any way to remove ^L or ^M from some buffer outputs? |
Date: |
Sun, 4 Oct 2020 09:51:27 -0700 (PDT) |
Use `query-replace' (`M-%') or `M-x replace-string'.
When prompted for what to replace, use `C-q' followed by the Control key (char)
you want to replace. When prompted for what to replace it with, just hit `RET'
(replace it with the empty string).
E.g., to remove Control-M chars:
M-x replace-string RET C-q C-m RET RET
(Using `C-m' is the same as using `RET' - same char. But I write it that way
to make it clear that `C-q C-m', which inserts a `C-m' char, is the string of
chars to replace.)
If you want to be sure/careful of what you're doing, use `M-%' instead. Once
you see that it's doing what you want (by using `y' to replace some
occurrences), just hit `!' to replace the rest of the chars.
In both cases, start with the cursor at bob (beginning of buffer), or
`point-min' if you want to do it on the narrowed portion the buffer.
- Any way to remove ^L or ^M from some buffer outputs?, Jean Louis, 2020/10/04
- RE: Any way to remove ^L or ^M from some buffer outputs?,
Drew Adams <=
- 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, 2020/10/05