[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to collapse a horizontal into vertail
From: |
Zimmen Gnauh |
Subject: |
Re: how to collapse a horizontal into vertail |
Date: |
Sat, 11 Jan 2003 21:37:51 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Tim Haynes <usenet@stirfried.vegetable.org.uk> writes:
> 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 :)
>
this would replace all " " with "^J". However, the text I'd like
to replace is only part of the buffer. I expect to mark the region
first and then do something to collapse it.
--
Nothing