Subject: bug#13521: `sort-lines' on the empty region

From: Glenn Morris <[email-masked]>
Date: Tue, 22 Jan 2013 13:19:05 -0500

Stefan Monnier wrote:

> That seems to be considering a different case: not the case of an empty
> region, but the case where there's no active region.
> Currently, this case signals an error, but I think I agree it makes
> sense to let it apply to the whole buffer if there is no active region.

flush-lines, keep-lines instead operate on all lines after point.