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: Andreas Politz
Subject: Re: Requested function: just-one-empty-line()
Date: Mon, 06 Oct 2008 13:50:04 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

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


reply via email to

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