unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Zimmen Gnauh <yah00204052@yahoo.com>
Subject: Re: how to collapse a horizontal into vertail
Date: Sat, 11 Jan 2003 21:37:51 GMT	[thread overview]
Message-ID: <m1r8bj4ay7.fsf@localhost.localdomain> (raw)
In-Reply-To: 86iswvcwqw.fsf@potato.vegetable.org.uk

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

  reply	other threads:[~2003-01-11 21:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-11 17:11 how to collapse a horizontal into vertail Zimmen Gnauh
2003-01-11 19:27 ` Tim Haynes
2003-01-11 21:37   ` Zimmen Gnauh [this message]
2003-01-12  0:03     ` Tim Haynes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1r8bj4ay7.fsf@localhost.localdomain \
    --to=yah00204052@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).