From: Drew Adams <drew.adams@oracle.com>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: "Help-Gnu-Emacs \(help-gnu-emacs@gnu.org\)"
<help-gnu-emacs@gnu.org>, Emanuel Berg <moasenwood@zoho.eu>
Subject: RE: [External] : Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.)
Date: Wed, 21 Jul 2021 17:08:24 +0000 [thread overview]
Message-ID: <SJ0PR10MB5488A5A552565D8EB33E39C6F3E39@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <CAGP6POJ-0ZDhPf22hn=7ObkdDRQbWz4+mAPC8ZvbTzWBWDUbCQ@mail.gmail.com>
> > > M-x insert-char RET form feed (ff) RET
> >
> > aka:
> >
> > `C-q C-l'
> >
> > https://www.gnu.org/software/emacs/manual/html_node/emacs/Inserting-Text.html
>
> If I don't know the Unicode name and the above input sequence of it,
> to be more specifically, I only know its representation in Emacs is
> ^L, then how to search/match/find/filter out it with regexp.
>
> As a similar example, I can grep it with the following
>
> $ grep $'\014' 11.txt | cat -te
> ^L$
> $ grep $'\f' 11.txt | cat -te
> ^L$
It's not clear (to me) what you're trying to do.
The initial question was about _inserting_ the char, I believe.
For that, `C-q' is the easiest way for a control char, since
you can just hit the key for the control char (`C-l' in this case).
For other Unicode chars, `M-x insert-char' can help, but you don't
need that just to insert an ASCII control char.
Now you seem to be asking something else, and what it is is not
clear to me. If you're asking about search, then just use `C-q':
`C-s C-q C-l'
next prev parent reply other threads:[~2021-07-21 17:08 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 2:34 The `^L' appeared in built-in help Hongyi Zhao
2021-07-06 2:46 ` [External] : " Drew Adams
2021-07-06 2:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 14:56 ` Drew Adams
2021-07-06 15:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 17:04 ` Drew Adams
2021-07-06 17:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 2:51 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 3:44 ` Hongyi Zhao
2021-07-06 4:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 8:26 ` Hongyi Zhao
2021-07-06 8:31 ` Hongyi Zhao
2021-07-06 9:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 9:40 ` Hongyi Zhao
2021-07-06 10:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 11:07 ` Hongyi Zhao
2021-07-06 11:22 ` Hongyi Zhao
2021-07-06 11:55 ` Hongyi Zhao
2021-07-06 12:09 ` Hongyi Zhao
2021-07-06 16:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 16:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-07 3:03 ` Hongyi Zhao
2021-07-13 3:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 16:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-07 1:40 ` Hongyi Zhao
2021-07-13 3:07 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-18 6:34 ` Hongyi Zhao
2021-07-19 0:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-20 1:27 ` Hongyi Zhao
2021-07-20 1:42 ` [External] : " Drew Adams
2021-07-20 2:02 ` Hongyi Zhao
2021-07-20 4:28 ` Drew Adams
2021-07-20 5:56 ` Hongyi Zhao
2021-07-20 10:29 ` Hongyi Zhao
2021-07-20 14:48 ` Drew Adams
2021-07-20 16:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21 2:03 ` Hongyi Zhao
2021-07-21 2:26 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21 4:44 ` Drew Adams
2021-07-21 7:15 ` Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Hongyi Zhao
2021-07-21 17:08 ` Drew Adams [this message]
2021-07-22 1:13 ` [External] : " Hongyi Zhao
2021-07-22 1:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:39 ` Drew Adams
2021-07-22 1:42 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 3:52 ` Drew Adams
2021-07-22 4:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 8:04 ` Hongyi Zhao
2021-07-22 13:56 ` Hongyi Zhao
2021-07-22 14:38 ` tomas
2021-07-22 14:53 ` Hongyi Zhao
2021-07-22 15:01 ` tomas
2021-07-22 15:21 ` Hongyi Zhao
2021-07-22 22:07 ` [External] : Re: Regexp for matching control character, say, FORM FEED Michael Heerdegen
2021-07-23 1:09 ` Hongyi Zhao
2021-07-22 17:07 ` [External] : Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Drew Adams
2021-07-22 17:11 ` tomas
2021-08-01 2:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 8:06 ` tomas
2021-07-22 9:45 ` Hongyi Zhao
2021-07-22 10:06 ` tomas
2021-07-22 10:27 ` Hongyi Zhao
2021-07-22 12:14 ` tomas
2021-08-01 2:31 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 4:19 ` The `^L' appeared in built-in help 2QdxY4RzWzUUiLuE
2021-07-06 4:29 ` Emanuel Berg via Users list for the GNU Emacs text editor
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=SJ0PR10MB5488A5A552565D8EB33E39C6F3E39@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=hongyi.zhao@gmail.com \
--cc=moasenwood@zoho.eu \
/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).