From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: me@you.com
Newsgroups: gmane.emacs.help
Subject: Re: Replace string with new line
Date: 10 Jun 2004 17:46:40 +0100
Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Message-ID: <upt872wen.fsf@SFD-WK-XP-192.i-did-not-set--mail-host-address--so-shoot-me>
References: <caa03a$1p1@news.Informatik.Uni-Oldenburg.DE>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1088536028 18853 80.91.224.253 (29 Jun 2004 19:07:08 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Tue, 29 Jun 2004 19:07:08 +0000 (UTC)
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:07:01 2004
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Original-Received: from lists.gnu.org ([199.232.76.165])
	by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 1BfNnm-0003XX-00
	for <geh-help-gnu-emacs@m.gmane.org>; Tue, 29 Jun 2004 20:57:54 +0200
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33)
	id 1BfNpS-0004m6-5w
	for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 14:59:38 -0400
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!newsfeed.stueberl.de!feed.news.tiscali.de!uninett.no!news.powertech.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!quimby.gnus.org!not-for-mail
Original-Newsgroups: comp.emacs,gnu.emacs.help
Original-Lines: 18
Original-NNTP-Posting-Host: kuju0.workstation.org.uk
Original-X-Trace: quimby.gnus.org 1086885974 22779 213.143.17.150 (10 Jun 2004 16:46:14
	GMT)
Original-X-Complaints-To: usenet@quimby.gnus.org
Original-NNTP-Posting-Date: Thu, 10 Jun 2004 16:46:14 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Original-Xref: shelby.stanford.edu comp.emacs:85081 gnu.emacs.help:123735
Original-To: help-gnu-emacs@gnu.org
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: main.gmane.org gmane.emacs.help:19134
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19134

Norbert Rump <norbert.rump@gmx.de> writes:

> Hi folks,
> 
> I would like to replace a certain string with a new
> line. I don't know how to specify the "new line" as the second string
> of the replace-string-command. When I press only RET, the first string
> is just deleted.
> 
> Any help will be appreciated.
> 
> Norbert

Does M-x replace-string RET <string> RET C-q C-j RET do what you want?



Dave