help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting chunks of whitespace


From: Richard V. Molen
Subject: Re: Deleting chunks of whitespace
Date: 18 Nov 2002 10:55:11 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

"Ehud Karni" <ehud@unix.mvs.co.il> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]