From: Drew Adams <drew.adams@oracle.com>
To: Jean Louis <bugs@gnu.support>, help-gnu-emacs@gnu.org
Subject: RE: Any way to remove ^L or ^M from some buffer outputs?
Date: Sun, 4 Oct 2020 09:51:27 -0700 (PDT) [thread overview]
Message-ID: <8f4b3911-489c-4b0f-9438-fc8c3339b5ae@default> (raw)
In-Reply-To: <courier.000000005F79E1AB.00004D66@protected.rcdrun.com>
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.
next prev parent reply other threads:[~2020-10-04 16:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-04 14:52 Any way to remove ^L or ^M from some buffer outputs? Jean Louis
2020-10-04 16:51 ` Drew Adams [this message]
2020-10-04 18:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-05 9:06 ` Jean Louis
2020-10-05 9:43 ` Eli Zaretskii
2020-10-05 9:47 ` Joost Kremers
2020-10-05 12:54 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-05 17:06 ` Drew Adams
2020-10-05 18:14 ` Jean Louis
2020-10-05 18:21 ` Eli Zaretskii
2020-10-05 18:23 ` Eli Zaretskii
2020-10-05 18:59 ` Yuri Khan
2020-10-05 19:13 ` Stefan Monnier
2020-10-10 0:23 ` Jean Louis
2020-10-10 7:02 ` Eli Zaretskii
2020-10-04 19:41 ` Patrick Mahan
2020-10-04 19:49 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 20:32 ` Patrick Mahan
2020-10-04 22:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-04 23:26 ` 2QdxY4RzWzUUiLuE
2020-10-04 23:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-05 3:57 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-05 7:29 ` tomas
2020-10-05 18:44 ` Nick Dokos
2020-10-05 19:16 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f4b3911-489c-4b0f-9438-fc8c3339b5ae@default \
--to=drew.adams@oracle.com \
--cc=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).