From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13521: `sort-lines' on the empty region Date: Tue, 22 Jan 2013 13:19:05 -0500 Message-ID: References: <20130122085354.75ced82538551655e724e0ea@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358878804 12868 80.91.229.3 (22 Jan 2013 18:20:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2013 18:20:04 +0000 (UTC) Cc: Xue Fuqiao , 13521@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 22 19:20:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxiSD-00086x-Nh for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 19:20:13 +0100 Original-Received: from localhost ([::1]:51590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxiRw-00045R-Ib for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 13:19:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxiRt-000458-BC for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 13:19:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxiRs-0002h3-EF for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 13:19:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxiRs-0002gz-BD for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 13:19:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxiT0-00074c-GQ for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 13:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Jan 2013 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13521 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13521-submit@debbugs.gnu.org id=B13521.135887882027134 (code B ref 13521); Tue, 22 Jan 2013 18:21:02 +0000 Original-Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 18:20:20 +0000 Original-Received: from localhost ([127.0.0.1]:44908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxiSJ-00073Z-8F for submit@debbugs.gnu.org; Tue, 22 Jan 2013 13:20:19 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:60700) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxiSG-00073M-Ld for 13521@debbugs.gnu.org; Tue, 22 Jan 2013 13:20:17 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TxiR7-00028R-G9; Tue, 22 Jan 2013 13:19:05 -0500 X-Spook: 9/11 digicash Medco COSCO Ruby Ridge Watergate PET InfoSec X-Ran: 'gC$mv|BFbw-jU~Mebp5|G8#lMrFTv+YZy$+<{;1dl861?R-6X6;5%7WsRXvv%1W8`r}4X X-Hue: blue X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Tue, 22 Jan 2013 09:59:51 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70178 Archived-At: 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.