[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: detect if line has only white space?
From: |
LEE Sau Dan |
Subject: |
Re: detect if line has only white space? |
Date: |
13 Nov 2003 14:47:23 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
>>>>> "marc0" == marc0 <marc0@autistici.org> writes:
marc0> Miguel Frasson on 10 Nov 2003 18:42:56 퍝 writes:
>> I would like to have a elisp function that detects if the
>> current line contains only white space. Some idea?
marc0> matching the current line content with the regexp ^[ ]*$ ?
I've just checked and my Emacs (21.2.1) support the posix class syntax
in regex. So, the above would be better written as:
^[[:space:]]*$
--
Lee Sau Dan 李守敦(Big5) ~{@nJX6X~}(HZ)
E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
- detect if line has only white space?, Miguel Frasson, 2003/11/10
- Re: detect if line has only white space?, marc0, 2003/11/10
- Re: detect if line has only white space?, Phillip Lord, 2003/11/10
- Re: detect if line has only white space?, Johan Bockgård, 2003/11/10
- Re: detect if line has only white space?, jan, 2003/11/10
- Re: detect if line has only white space?, François Fleuret, 2003/11/11