From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: LEE Sau Dan Newsgroups: gmane.emacs.help Subject: Re: detect if line has only white space? Date: 13 Nov 2003 14:47:23 +0100 Organization: Rechenzentrum der Universitaet Freiburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87r80gdse3.fsf@despammed.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-7 X-Trace: sea.gmane.org 1068746531 29463 80.91.224.253 (13 Nov 2003 18:02:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2003 18:02:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 19:02:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AKLnD-0002FS-00 for ; Thu, 13 Nov 2003 19:02:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AKMjD-0002Ps-Pf for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2003 14:02:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!teaser.fr!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-freiburg.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: savona.informatik.uni-freiburg.de User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:118207 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14148 >>>>> "marc0" == marc0 writes: marc0> 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? 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 +Z05biGVm-(Big5) ~{@nJX6X~}(HZ) E-mail: danlee@informatik.uni-freiburg.de Home page: http://www.informatik.uni-freiburg.de/~danlee