[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whitespace deletion
From: |
Alan Mackenzie |
Subject: |
Re: Whitespace deletion |
Date: |
Fri, 9 Dec 2005 20:27:58 +0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) |
August Karlstrom <fusionfive@comhem.se> wrote on Thu, 08 Dec 2005
19:46:51 GMT:
> Hi,
> Is there an Emacs command that works like just-one-space, but also
> deletes newlines?
There is in CC Mode (that's c-mode, c++-mode, java-mode, ....), namely
c-hungry-backspace. Or, if you're at the other end of the gap,
c-hungry-delete-forward. As from CC Mode 5.31, they're bound by default
to C-c C-DEL and C-c C-d. You'll probably have to insert that single
space by hand, though.
[ .... ]
> Regards,
> August
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").