From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rvmolen@bambecksystems.com (Richard V. Molen) Newsgroups: gmane.emacs.help Subject: Re: Deleting chunks of whitespace Date: 18 Nov 2002 10:55:11 -0800 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037646743 4190 80.91.224.249 (18 Nov 2002 19:12:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 19:12:23 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18DrJb-00014E-00 for ; Mon, 18 Nov 2002 20:12:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18DrJH-0007ZR-00; Mon, 18 Nov 2002 14:11:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.iccinternet.com!news.iccinternet.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 18 Nov 2002 12:54:37 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 19 Original-NNTP-Posting-Host: 209.0.189.26 Original-X-Trace: sv3-ivqRvsBkQTiqJCbzWt6+mxJLJ2kRrAYhcG96/b6l78p3CVMgOKaksYF2stoSRFf0U1u/wdSlm1rMiuF!oba04jlKrjn4CCrrP/oLYdgy6LFVnXYZqOXDruYOgiqSqnnMTZkogvZltygpcVFHWCjwXEqyKiLn Original-X-Complaints-To: abuse@iccinternet.com X-DMCA-Complaints-To: abuse@iccinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:107164 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3715 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3715 "Ehud Karni" writes: > This is very easy to fix (change the `t' to `1' in the 3rd arg to > `re-search-forward', see its help) like this: > > (defun forward-to-non-blank () > "go to 1st non blank (after blank) to right, > if there is none go to end of buffer" > (interactive) > (if (re-search-forward "[ \t\n][^ \t\n]" (point-max) 1) > (backward-char 1))) Thanks again Ehud, it works great now. :-) -- Richard V. Molen Warning!! Signature under construction, safety glasses required.