unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
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:22:13 -0700 (PDT)	[thread overview]
Message-ID: <f566487a-2fed-48c2-88c8-a888937dbe9d@default> (raw)
In-Reply-To: <a13d2119-556b-4ecf-a925-2468a68c1f62@default>

> > It is common to use `C-j' when you interactively enter a regexp
> > that contains a newline char (Control J).
> 
> I take that part back; sorry.

No, I don't.  (Sorry for the noise.  For a second I thought
maybe Emacs had wised up wrt `C-j'.)

The problem is that `C-j' and `C-m' do not self-insert in
the minibuffer keymaps.  So when a command such as
`query-replace' reads a pattern (string of chars) it does
not include any `C-j' or `C-m' (aka `RET') chars that you
hit in the search string.

Instead, it interprets them as commands to enter the other
(self-inserting) chars you have typed so far as the search
string.  So to enter these control chars you need to "quote"
them, using `C-q'.



  reply	other threads:[~2015-07-29 15:22 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
2015-07-29 15:16       ` Drew Adams
2015-07-29 15:22         ` Drew Adams [this message]
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=f566487a-2fed-48c2-88c8-a888937dbe9d@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).