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: Sivaram Neelakantan
Subject: Re: remove all the whitespace characters from the cursor to the next symbol
Date: Fri, 07 May 2010 21:18:13 +0530
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (windows-nt)

On Fri, May 07 2010,Kevin Rodgers wrote:


[snipped 9 lines]

>> 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
>

[snipped 22 lines]

There's also this
M-SPC runs the command just-one-space, which is an interactive
compiled Lisp function in `simple.el'.
It is bound to M-SPC.

(just-one-space &optional n)

Delete all spaces and tabs around point, leaving one space (or n spaces).

Of course it doesn't handle the \n+spaces case.

 sivaram
 -- 





reply via email to

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