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: Phillip Lord
Subject: Re: detect if line has only white space?
Date: 10 Nov 2003 17:47:58 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93

>>>>> "Miguel" == Miguel Frasson <frasson@enquist.math.leidenuniv.nl> writes:

  Miguel> Hello.

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

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



(forward-word) will move past the end of the line. 

Or you get check whether a white space only regexp match is the same
length as the entire line. 

Others may have better suggestions.



Cheers

Phil


reply via email to

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