help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacing endline


From: Fredrik Bulow
Subject: Re: replacing endline
Date: Thu, 20 Apr 2006 11:56:44 +1000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]