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 05:14:10 -0700 (PDT)
User-agent: G2/1.0

On 6 Okt, 13:50, Andreas Politz <poli...@fh-trier.de> wrote:
> Nordlöw 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;
>
> > Thanks in advance,
> > Nordlöw
>
> ,----[ C-h f delete-blank-lines RET ]
> | delete-blank-lines is an interactive compiled Lisp function in `simple.el'.
> | It is bound to C-x C-o.
> | (delete-blank-lines)
> |
> | On blank line, delete all surrounding blank lines, leaving just one.
> | On isolated blank line, delete that one.
> | On nonblank line, delete any immediately following blank lines.
> `----
>
> -ap

Great!

Thanks a lot!

/Nordlöw


reply via email to

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