[Top][All Lists]

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

Re: detect if line has only white space?

From: Johan Bockgård
Subject: Re: detect if line has only white space?
Date: Mon, 10 Nov 2003 19:40:25 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v)

Miguel Frasson <> writes:

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

,----[ C-h f delete-trailing-whitespace RET ]
| delete-trailing-whitespace is an interactive compiled Lisp function in 
| (delete-trailing-whitespace)
| Delete all the trailing whitespace across the current buffer.
| All whitespace after the last non-whitespace character in a line is deleted.
| This respects narrowing, created by C-x n n and friends.
| A formfeed is not considered whitespace by this function.

Johan Bockgård

reply via email to

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