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: References: 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: 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 ; 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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 RET C-q C-j RET do what you want? Dave