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

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

Re: Requested function: just-one-empty-line()


From: Nordlöw
Subject: Re: Requested function: just-one-empty-line()
Date: Mon, 6 Oct 2008 04:20:43 -0700 (PDT)
User-agent: G2/1.0

On 6 Okt, 13:15, Bernardo Bacic <bernardo.ba...@pobox.com> wrote:
> > I'm looking for a function just-one-empty-line(), or empty-lines() for
> > the multi-line-variant, that does kind of what just-one-space() does
> > but instead works on empty lines. Any suggestions?
>
> > Example:
>
> > pre;\n
> > \n
> > \n
> > post;
>
> > is converted to
>
> > pre;\n
> > \n
> > post;
>
> a regexp search (for ^J\{2,\}) and replace comes to mind ...

Which search and replace functions should I use?

/Nordlöw


reply via email to

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