From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fredrik Bulow Newsgroups: gmane.emacs.help Subject: Re: replacing endline Date: Thu, 20 Apr 2006 11:56:44 +1000 Message-ID: <87lku1t3fn.fsf@gmail.com> References: <1145492327.354125.133060@j33g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145500872 16412 80.91.229.2 (20 Apr 2006 02:41:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 02:41:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 20 04:41:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWP6R-000677-Lx for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 04:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWP6Q-0000YI-PN for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 22:41:06 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:3xJayvi5SEZrypLJOya05GUrcIw= Original-NNTP-Posting-Host: 220.245.217.246 X-Original-NNTP-Posting-Host: 220.245.217.246 Original-X-Trace: dnews.tpgi.com.au!tpg.com.au 1145498205 220.245.217.246 (20 Apr 2006 11:56:45 +1100) Original-Lines: 40 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:138881 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34499 Archived-At: sarah.dzion@gmail.com writes: > Hi I want to convert : > 72 > 17 > 18 > 19 > 20 > 21 > 22 > 23 > 24 > 25 > > > to > > 72#17#18#19#20#21#22#23#24#25 > > how do I do this using replace-string (or something else in emacs)? > basically I do not know how to specify endline in emacs. > > Appreciate the help! > Thanks! > -A Ok, this is my third article on this. writing something like (query-replace "\n" "#") and then pressing C-x C-e after it does the trick! However, calling the same function interactively and providing the arguments \n and # doesn't do the trick at all. I have no idea why though. Perhaps someone who know a bit more about lisp can shed some light on this? I don't see why this behavior shouldn't be labeled as a bug. /Fredrik