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

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

Re: how to collapse a horizontal into vertail


From: Tim Haynes
Subject: Re: how to collapse a horizontal into vertail
Date: Sat, 11 Jan 2003 19:27:51 +0000
User-agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i686-pc-linux)

Zimmen Gnauh <yah00204052@yahoo.com> writes:

>    shell command tr can be used to collapse a sentence "this is a test"
> into

> this 
> is
> a 
> test
> . How can this be done in emacs?

(replace-regexp " " "^J")

or M-x replace-regexp, similarly. Use C-q to quote the C-j.

Works t'other way round, too :)

~Tim
-- 
All I see, All I know                       |piglet@stirfried.vegetable.org.uk
Is touching the sacred earth                |http://spodzone.org.uk/
And warming the hallowed ground             |


reply via email to

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