unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Quokka <NoSpam@iinet.net.au>
Subject: Re: Whitespace deletion
Date: Fri, 09 Dec 2005 10:15:29 +0800	[thread overview]
Message-ID: <4398e883$0$22262$5a62ac22@per-qv1-newsreader-01.iinet.net.au> (raw)
In-Reply-To: <EL4mf.152067$dP1.509510@newsc.telia.net>

August Karlstrom wrote:
> Kevin Rodgers wrote:
>> August Karlstrom wrote:
>>  > Is there an Emacs command that works like just-one-space, but also
>>  > deletes newlines?
>>  >
>>  > Example:
>>  >
>>  > I want to   -!-
>>  >
>>  >    join these two lines
>>  >
>>  > should become
>>  >
>>  > I want to -!-join these two lines
>>
>> Does this help?
>>
>> ,----[ C-h k M-^ ]
>> | M-^ runs the command delete-indentation
>> |    which is an interactive compiled Lisp function in `simple'.
>> | (delete-indentation &optional ARG)
>> |
>> | Join this line to previous and fix up whitespace at join.
>> | If there is a fill prefix, delete it from the beginning of this line.
>> | With argument, join this line to following line.
>> `----
> 
> No. Did you try it on my example?

Have a look at
http://www.emacswiki.org/cgi-bin/wiki/DeletingWhitespace

I think the kill-whitespace function will do what you want.

Paul

  reply	other threads:[~2005-12-09  2:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08 19:46 Whitespace deletion August Karlstrom
2005-12-08 22:05 ` Kevin Rodgers
     [not found] ` <mailman.18498.1134079821.20277.help-gnu-emacs@gnu.org>
2005-12-09  1:05   ` August Karlstrom
2005-12-09  2:15     ` Quokka [this message]
2005-12-09  5:56 ` William Xu
2005-12-09 17:44 ` B. T. Raven
2005-12-09 19:17   ` August Karlstrom
2005-12-09 20:27 ` Alan Mackenzie

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='4398e883$0$22262$5a62ac22@per-qv1-newsreader-01.iinet.net.au' \
    --to=nospam@iinet.net.au \
    /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).