unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Join Multiple Lines
Date: Tue, 29 May 2007 11:50:39 +0200	[thread overview]
Message-ID: <871wh00xhs.fsf@informatimago.com> (raw)
In-Reply-To: mailman.1383.1180430912.32220.help-gnu-emacs@gnu.org

"Ankur Jain" <jainankur@gmail.com> writes:
> How can I join multiple lines into one line using Emacs.
>
> I know the command "join-line" to join the current line with previous; how to do it
> for multiple lines?
>
> Can I execute it multiple times for a set of lines. If yes, please let me know how to
> do that?


You can do a search a replace on ^J.

M-x replace-string RET C-q C-j RET SPC RET

will put all the lines after the point on one big line.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.

       reply	other threads:[~2007-05-29  9:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1383.1180430912.32220.help-gnu-emacs@gnu.org>
2007-05-29  9:50 ` Pascal Bourguignon [this message]
     [not found] ` <1180527603.726755.118550@g4g2000hsf.googlegroups.com>
2007-05-31  4:51   ` Join Multiple Lines Ankur Jain
2007-05-31  4:55     ` Ankur Jain
2007-05-31 12:26       ` Hugo Schmitt
2007-05-29  6:45 Ankur Jain
2007-05-29  9:59 ` Peter Dyballa
2007-05-29 20:26 ` Eric Hanchrow

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=871wh00xhs.fsf@informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).