From: Drew Adams <drew.adams@oracle.com>
To: jorge.alfaro-murillo@yale.edu, help-gnu-emacs@gnu.org
Subject: RE: What's the meaning of "^A" in emacs?
Date: Wed, 29 Jul 2015 08:11:21 -0700 (PDT) [thread overview]
Message-ID: <796c41be-b137-43a6-b514-d71beb4f12e2@default> (raw)
In-Reply-To: <87d1zb9fp3.fsf@yale.edu>
> > When you say "input", do you mean to *insert* them as chars into
> > a buffer? If so, just hit C-q first. But I don't think you
> > should do this too often (?).
>
> Yes, why would someone use this? The only thing that I use is the
> "form feed" (^L) to divide sections in plain text documents and
> then be able to use C-x [ and C-x ] to move between pages.
>
> Does someone know of any other "control character" use?
It is common to use `C-j' when you interactively enter a regexp
that contains a newline char (Control J). This is because
(vanilla) Emacs binds `C-j' in the minibuffer to a command other
than self-insertion.
(FWIW - That's a misfeature, but hey, it took a couple decades to
get `SPC' to insert in the minibuffer, and it still does so only
for file-name input. It will be another decade or several before
newline and `?' earn their rightful place as self-inserters.)
Similarly, if you want to query-replace something that contains
carriage-return (`C-m') chars, then you will use `C-q C-m' (aka
`C-q RET') to pass the `C-m' char to the query string.
Emacs is very general. The ASCII control chars are, well, just
chars. You can use them wherever you want, including in strings.
Chars,in strings or otherwise, are not used only for display.
next prev parent reply other threads:[~2015-07-29 15:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 13:48 What's the meaning of "^A" in emacs? Navy Cheng
2015-07-28 15:46 ` Drew Adams
2015-07-28 21:34 ` Emanuel Berg
2015-07-29 14:55 ` Jorge A. Alfaro-Murillo
2015-07-29 15:11 ` Drew Adams [this message]
2015-07-29 15:16 ` Drew Adams
2015-07-29 15:22 ` Drew Adams
2015-07-29 15:23 ` Jorge A. Alfaro-Murillo
2015-07-29 22:39 ` Emanuel Berg
2015-07-29 15:35 ` Marcin Borkowski
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=796c41be-b137-43a6-b514-d71beb4f12e2@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=jorge.alfaro-murillo@yale.edu \
/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).