From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Phillip Lord
Newsgroups: gmane.emacs.help
Subject: Re: detect if line has only white space?
Date: 10 Nov 2003 17:47:58 +0000
Organization: Dept of Computer Science, University of Manchester, U.K.
Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Message-ID:
References:
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1068488287 18155 80.91.224.253 (10 Nov 2003 18:18:07 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Mon, 10 Nov 2003 18:18:07 +0000 (UTC)
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 19:18:04 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 1AJGc0-0007vd-00
for ; Mon, 10 Nov 2003 19:18:04 +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 1AJHWa-00048Y-QA
for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2003 14:16:32 -0500
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!humbolt.nl.linux.org!news.nl.linux.org!zen.net.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!cs.man.ac.uk!not-for-mail
Original-Newsgroups: gnu.emacs.help
Original-Lines: 24
Original-NNTP-Posting-Host: rpc71.cs.man.ac.uk
Original-X-Trace: wapping.cs.man.ac.uk 1068486479 2922 130.88.198.228 (10 Nov 2003
17:47:59 GMT)
Original-X-Complaints-To: news@wapping.cs.man.ac.uk
Original-NNTP-Posting-Date: Mon, 10 Nov 2003 17:47:59 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93
Original-Xref: shelby.stanford.edu gnu.emacs.help:118064
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:14003
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14003
>>>>> "Miguel" == Miguel Frasson 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