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

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

Re: detect if line has only white space?


From: marc0
Subject: Re: detect if line has only white space?
Date: Mon, 10 Nov 2003 18:51:00 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Miguel Frasson on 10 Nov 2003 18:42:56 +0100 writes:

> I would like to have a elisp function that detects if the current line
> contains only white space. Some idea? 

matching the current line content with the regexp ^[    ]*$   ?

> Aditionally, I would like to remove all space at the end of the
> lines at once (e-lisp code). How?

M-x replace-regexp RET [        ]*$ RET RET

-- 
marc0@autistici.org - 0x4E8899C2


reply via email to

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