[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remove extra whitespace on a line
From: |
Dieter Wilhelm |
Subject: |
Re: remove extra whitespace on a line |
Date: |
Sat, 02 Dec 2006 21:52:36 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) |
David Hansen <david.hansen@gmx.net> writes:
> On Sat, 02 Dec 2006 12:40:43 -0500 Greg Bognar wrote:
>
>> So this is what I want, isn't it?
>>
>> (defun just-one-space-in-current-line ()
>> (interactive)
>> (save-excursion
>> (save-restriction
...
>
> C-a C-SPC C-e M-x canonically-space-region
>
>> (line-beginning-position) (line-end-position)))))
>
>
> Or your code a bit compressed:
>
> (defun just-one-space-in-current-line ()
> (interactive)
> (canonically-space-region (point-at-bol) (point-at-eol)))
Thanks for the aliases!
(= (point-at-bol) (line-beginning-position))
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
- Re: remove extra whitespace on a line, (continued)
Re: remove extra whitespace on a line, roodwriter, 2006/12/02
Re: remove extra whitespace on a line, Chris Menzel, 2006/12/02
Re: remove extra whitespace on a line, Markus Triska, 2006/12/02