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

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

Re: remove all the whitespace characters from the cursor to the next sym


From: despen
Subject: Re: remove all the whitespace characters from the cursor to the next symbol
Date: Tue, 04 May 2010 15:42:32 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

alex_sv <avshabanov@gmail.com> writes:

> Hi all!
>
> Could you please clarify - is it possible to remove all the whitespace
> characters including newline from the current cursor position to the
> next meaningful symbol using one command?
>
> I mean if our buffer's content is as follows:
>
> texttexttext{cursor}___
> _
> ___text
>
> where '_' means space character, is it possible to press some known
> key sequence to transform the given above to the following form:
>
> texttexttext{cursor}text

Seems to me regular expressions would be too much typing,
I'd go for:

M-z t t

But this seemed to work:

M-% [ space ^q ^j ] * ret ret y





reply via email to

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