From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13521: `sort-lines' on the empty region Date: Tue, 22 Jan 2013 09:59:51 -0500 Message-ID: References: <20130122085354.75ced82538551655e724e0ea@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358866866 16989 80.91.229.3 (22 Jan 2013 15:01:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2013 15:01:06 +0000 (UTC) Cc: 13521@debbugs.gnu.org To: Xue Fuqiao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 22 16:01:25 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 1TxfLn-0001Vr-8y for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 16:01:23 +0100 Original-Received: from localhost ([::1]:52768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxfLW-0001xj-8O for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2013 10:01:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxfLM-0001vB-Fl for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 10:01:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxfLJ-0001st-Du for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 10:00:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxfLJ-0001sg-AH for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 10:00:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxfMQ-0001dD-Cv for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2013 10:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Jan 2013 15:02: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.13588668726209 (code B ref 13521); Tue, 22 Jan 2013 15:02:02 +0000 Original-Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 15:01:12 +0000 Original-Received: from localhost ([127.0.0.1]:44807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxfLY-0001c3-29 for submit@debbugs.gnu.org; Tue, 22 Jan 2013 10:01:09 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:45975) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxfLV-0001bs-1k for 13521@debbugs.gnu.org; Tue, 22 Jan 2013 10:01:06 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r0MExr4T029821; Tue, 22 Jan 2013 09:59:54 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 57325AE3F6; Tue, 22 Jan 2013 09:59:51 -0500 (EST) In-Reply-To: <20130122085354.75ced82538551655e724e0ea@gmail.com> (Xue Fuqiao's message of "Tue, 22 Jan 2013 08:53:54 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4469=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4469> : streams <892873> : uri <1324982> 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:70170 Archived-At: > The current behavior of `sort-lines' on the empty region is to do > nothing. I think that's the right thing to do. > I often find that I want to sort whole buffers at the time, > and I expect `sort-lines' to do just that, before remembering I have > to mark the whole buffer first. 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. Stefan