From: LEE Sau Dan <danlee@informatik.uni-freiburg.de>
Subject: Re: detect if line has only white space?
Date: 13 Nov 2003 14:47:23 +0100 [thread overview]
Message-ID: <m3ekwccrdg.fsf@mika.informatik.uni-freiburg.de> (raw)
In-Reply-To: 87r80gdse3.fsf@despammed.com
>>>>> "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
next prev parent reply other threads:[~2003-11-13 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-10 17:42 detect if line has only white space? Miguel Frasson
2003-11-10 17:47 ` Phillip Lord
2003-11-10 17:51 ` marc0
2003-11-10 18:39 ` Gian Uberto Lauri
2003-11-13 13:47 ` LEE Sau Dan [this message]
2003-11-10 18:40 ` Johan Bockgård
2003-11-11 12:13 ` François Fleuret
2003-11-11 21:38 ` jan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ekwccrdg.fsf@mika.informatik.uni-freiburg.de \
--to=danlee@informatik.uni-freiburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).