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

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

Re: Whitespace deletion


From: Quokka
Subject: Re: Whitespace deletion
Date: Fri, 09 Dec 2005 10:15:29 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7.2.0

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 via email to

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