From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Using a newline character in the newstring in M-x replace-regexp
Date: Sat, 16 Aug 2008 07:00:57 -0700 (PDT) [thread overview]
Message-ID: <804f53f5-8387-4b20-a4d5-2a2b4708d529@k30g2000hse.googlegroups.com> (raw)
In-Reply-To: b64de75a-2bf8-488f-830e-6fbe4142a162@n33g2000pri.googlegroups.com
> It works for me and should work in any emacs 22. For interactive use,
> i think C-q C-j is actually the only way to insert newlines.
C-o or C-012 RET also work for a query-replace.
C-o does not work by default for an incremental search.
The following code adds this shortcut to the incremental commands.
(define-key isearch-mode-map "\C-o"
(lambda () (interactive)
(isearch-process-search-char ?\n)))
next prev parent reply other threads:[~2008-08-16 14:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.16702.1218742268.18990.help-gnu-emacs@gnu.org>
2008-08-14 20:35 ` Using a newline character in the newstring in M-x replace-regexp Xah
2008-08-16 14:00 ` harven [this message]
2008-09-11 1:52 ` David Combs
2008-09-11 5:12 ` Kevin Rodgers
2008-08-14 19:31 Corey Foote
2008-08-14 22:54 ` Peter Dyballa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=804f53f5-8387-4b20-a4d5-2a2b4708d529@k30g2000hse.googlegroups.com \
--to=harven@free.fr \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.