GNU bug report logs - #13521
`sort-lines' on the empty region

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Xue Fuqiao <xfq.free@HIDDEN>; dated Tue, 22 Jan 2013 00:56:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 19:05:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 22 14:05:27 2013
Received: from localhost ([127.0.0.1]:44989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Txj9y-00088e-Uj
	for submit <at> debbugs.gnu.org; Tue, 22 Jan 2013 14:05:27 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53716)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1Txj9w-00088U-T8
	for 13521 <at> debbugs.gnu.org; Tue, 22 Jan 2013 14:05:26 -0500
Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca
	[132.204.27.242])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r0MJ3vZd026827;
	Tue, 22 Jan 2013 14:04:00 -0500
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id 7E4E9AE3F6; Tue, 22 Jan 2013 14:04:02 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
Message-ID: <jwv1udd2gab.fsf-monnier+emacs@HIDDEN>
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
	<jwvobgh2rkw.fsf-monnier+emacs@HIDDEN>
	<i2ehhdaxnq.fsf@HIDDEN>
Date: Tue, 22 Jan 2013 14:04:02 -0500
In-Reply-To: <i2ehhdaxnq.fsf@HIDDEN> (Glenn Morris's message of
	"Tue, 22 Jan 2013 13:19:05 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
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 <892958> : uri <1325160>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 13521
Cc: Xue Fuqiao <xfq.free@HIDDEN>, 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

>> 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.

Yes, we have an inconsistency in this respect: some commands use "the
whole buffer" and others use "everything after point".  Whichever choice
we make for sort-lines, it will be inconsistent with some of the
existing commands ;-)

I personally prefer the "whole buffer", but whoever makes the change
gets to make the choice.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 18:20:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 22 13:20:20 2013
Received: from localhost ([127.0.0.1]:44908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxiSJ-00073Z-8F
	for submit <at> debbugs.gnu.org; Tue, 22 Jan 2013 13:20:19 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:60700)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TxiSG-00073M-Ld
	for 13521 <at> debbugs.gnu.org; Tue, 22 Jan 2013 13:20:17 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TxiR7-00028R-G9; Tue, 22 Jan 2013 13:19:05 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
	<jwvobgh2rkw.fsf-monnier+emacs@HIDDEN>
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-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 22 Jan 2013 13:19:05 -0500
In-Reply-To: <jwvobgh2rkw.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
	of "Tue, 22 Jan 2013 09:59:51 -0500")
Message-ID: <i2ehhdaxnq.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 13521
Cc: Xue Fuqiao <xfq.free@HIDDEN>, 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 15:01:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 22 10:01:12 2013
Received: from localhost ([127.0.0.1]:44807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxfLY-0001c3-29
	for submit <at> debbugs.gnu.org; Tue, 22 Jan 2013 10:01:09 -0500
Received: from chene.dit.umontreal.ca ([132.204.246.20]:45975)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1TxfLV-0001bs-1k
	for 13521 <at> debbugs.gnu.org; Tue, 22 Jan 2013 10:01:06 -0500
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
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id 57325AE3F6; Tue, 22 Jan 2013 09:59:51 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Xue Fuqiao <xfq.free@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
Message-ID: <jwvobgh2rkw.fsf-monnier+emacs@HIDDEN>
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
Date: Tue, 22 Jan 2013 09:59:51 -0500
In-Reply-To: <20130122085354.75ced82538551655e724e0ea@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain
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-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 13521
Cc: 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 03:45:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 21 22:45:44 2013
Received: from localhost ([127.0.0.1]:43846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxUnv-00007c-Vs
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:45:44 -0500
Received: from mail-pb0-f48.google.com ([209.85.160.48]:47468)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <xfq.free@HIDDEN>) id 1TxUnd-000075-PD
	for 13521 <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:45:41 -0500
Received: by mail-pb0-f48.google.com with SMTP id wy12so2338974pbc.7
	for <13521 <at> debbugs.gnu.org>; Mon, 21 Jan 2013 19:44:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:date:from:to:cc:subject:message-id:in-reply-to
	:references:organization:x-mailer:mime-version:content-type
	:content-transfer-encoding;
	bh=G3psoezdn3hcL/g/OT0mIMYIGygfhdpCPlvfR0yEvVI=;
	b=k0ZYsvXt+gadqD5XITzlOdoe9R7+V/7C4gG12MyV/JiT3AmKNCHjoJ9PnQgYqkxaUn
	KDU8TiqLf/+bbxcMJe6i7oPR+iS48mhF5E+Uxtp4vPJYSmtlYLmyURFJ7ArgWlJZjBkJ
	WeJfOFgZNbqp8RTFSiXPgWKVO9LMPe3dvsG2CND7uz/fHPfnfG/lAH2/HAVl3MXyF9PK
	c8VEyRiGTBnPipUzEt2JzNSl4++s3Fxg9bTLkAf7iBfrag71jLBgzu7GzLrTAAqVilHC
	ePYYQEo1SBDM9oUxnZjFsfcYvlMLguqeQUeH0RLi970OiA2evYTq84z03fvcQkKO+3Ju
	A5Og==
X-Received: by 10.66.76.198 with SMTP id m6mr52668787paw.32.1358826257667;
	Mon, 21 Jan 2013 19:44:17 -0800 (PST)
Received: from Emacs ([124.117.7.239])
	by mx.google.com with ESMTPS id tq4sm9852662pbc.50.2013.01.21.19.44.14
	(version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 21 Jan 2013 19:44:16 -0800 (PST)
Date: Tue, 22 Jan 2013 11:44:13 +0800
From: Xue Fuqiao <xfq.free@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
Message-Id: <20130122114413.182cffb1b537b8e9f9a2ca39@HIDDEN>
In-Reply-To: <j1zk01q4zz.fsf@HIDDEN>
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
	<j1zk01q4zz.fsf@HIDDEN>
Organization: The Church of Emacs
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 13521
Cc: 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

On Mon, 21 Jan 2013 22:19:12 -0500
Glenn Morris <rgm@HIDDEN> wrote:

> Please wait a week or so before reposting something from one Emacs list
> on another, to allow time for people to reply.
Thanks for your advice.

> Xue Fuqiao wrote:
> 
> > http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00492.html
> 
> See the very first reply, posted before this report.
I've seen this reply, but I'd like to report it as a wishlist.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 03:45:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 21 22:45:43 2013
Received: from localhost ([127.0.0.1]:43844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxUnv-00007a-LT
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:45:43 -0500
Received: from mail-da0-f50.google.com ([209.85.210.50]:48849)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <xfq.free@HIDDEN>) id 1TxUnk-00007E-RR
	for 13521 <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:45:41 -0500
Received: by mail-da0-f50.google.com with SMTP id h15so3021150dan.9
	for <13521 <at> debbugs.gnu.org>; Mon, 21 Jan 2013 19:44:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:date:from:to:cc:subject:message-id:in-reply-to
	:references:organization:x-mailer:mime-version:content-type
	:content-transfer-encoding;
	bh=G3psoezdn3hcL/g/OT0mIMYIGygfhdpCPlvfR0yEvVI=;
	b=GAIZb54XgH2Lk/sp2nDPUhYjbYa10oVSwx9lVHMijMOUNGnsW7WnEM9MRbrEJhRIIy
	HGrqAYY5GGyLQIUiidumDK6uU2RykSlFBdkrxdeT72bcyZUY5IIpHGgL67LRhy0p1ZJw
	H0i5scr+ogcoC2GVSZkEf3afo6rgTUkyNaDtoGLvx8AvNxi8AqzQHKnLuYwHF4VGlUHH
	k6Ws0zZhaA7D3vyVp0KydI0BUozO2sUKlaTPM9XEUiC2+YA/wZBbHyLiGTL5UcsWfawg
	LEe67j7lyhpLe9HP6wrGJh2uHTbTrbxZxL8ZD5Umd0RLIpuD+uhhAWC3h39l93CZ7MeJ
	ning==
X-Received: by 10.68.219.67 with SMTP id pm3mr35857196pbc.150.1358826265151;
	Mon, 21 Jan 2013 19:44:25 -0800 (PST)
Received: from Emacs ([124.117.7.239])
	by mx.google.com with ESMTPS id sg7sm9866132pbb.3.2013.01.21.19.44.22
	(version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 21 Jan 2013 19:44:24 -0800 (PST)
Date: Tue, 22 Jan 2013 11:44:20 +0800
From: Xue Fuqiao <xfq.free@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
Message-Id: <20130122114420.a6ba8484b6dfecbf4b05aa1d@HIDDEN>
In-Reply-To: <j1zk01q4zz.fsf@HIDDEN>
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
	<j1zk01q4zz.fsf@HIDDEN>
Organization: The Church of Emacs
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 13521
Cc: 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

On Mon, 21 Jan 2013 22:19:12 -0500
Glenn Morris <rgm@HIDDEN> wrote:

> Please wait a week or so before reposting something from one Emacs list
> on another, to allow time for people to reply.
Thanks for your advice.

> Xue Fuqiao wrote:
> 
> > http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00492.html
> 
> See the very first reply, posted before this report.
I've seen this reply, but I'd like to report it as a wishlist.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at 13521 <at> debbugs.gnu.org:


Received: (at 13521) by debbugs.gnu.org; 22 Jan 2013 03:20:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 21 22:20:21 2013
Received: from localhost ([127.0.0.1]:43837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxUPN-0007xG-L1
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:20:21 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:38839)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TxUPM-0007xA-04
	for 13521 <at> debbugs.gnu.org; Mon, 21 Jan 2013 22:20:20 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TxUOG-0007zl-F8; Mon, 21 Jan 2013 22:19:12 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Xue Fuqiao <xfq.free@HIDDEN>
Subject: Re: bug#13521: `sort-lines' on the empty region
References: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
X-Spook: event security Ansar al-Islam George W. Bush Rubin passwd
X-Ran: lZd92RvWR0GBgkJQcM3&"$<tmXKlx+3[g@o?|j|(e!ZDGw+Q\l7?MMj64`%BT&mQHvIr@A
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 21 Jan 2013 22:19:12 -0500
In-Reply-To: <20130122085354.75ced82538551655e724e0ea@HIDDEN> (Xue Fuqiao's
	message of "Tue, 22 Jan 2013 08:53:54 +0800")
Message-ID: <j1zk01q4zz.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 13521
Cc: 13521 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.8 (---)


Please wait a week or so before reposting something from one Emacs list
on another, to allow time for people to reply.

Xue Fuqiao wrote:

> http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00492.html

See the very first reply, posted before this report.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Jan 2013 00:55:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 21 19:55:14 2013
Received: from localhost ([127.0.0.1]:43788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TxS8v-0004Yr-J6
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 19:55:13 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50141)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS8t-0004Yk-8v
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 19:55:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS7n-00033P-JH
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 19:54:04 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	USER_IN_WHITELIST autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:60133)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS7n-00033F-Fq
	for submit <at> debbugs.gnu.org; Mon, 21 Jan 2013 19:54:03 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33257)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS7l-0002x8-U7
	for bug-gnu-emacs@HIDDEN; Mon, 21 Jan 2013 19:54:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS7k-00032W-EJ
	for bug-gnu-emacs@HIDDEN; Mon, 21 Jan 2013 19:54:01 -0500
Received: from mail-pa0-f53.google.com ([209.85.220.53]:35642)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <xfq.free@HIDDEN>) id 1TxS7k-00032S-7l
	for bug-gnu-emacs@HIDDEN; Mon, 21 Jan 2013 19:54:00 -0500
Received: by mail-pa0-f53.google.com with SMTP id hz1so3685991pad.12
	for <bug-gnu-emacs@HIDDEN>; Mon, 21 Jan 2013 16:53:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:date:from:to:subject:message-id:organization:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=5bsSJKSXAoVlE0YqoXqC3mhzKN3TgcKg9uqKo4t/QcI=;
	b=FIA1nv8/ELTFeIAPuzqKszimM1qpXd9rcis71wo9ugC1Xk9Qx7RXxS/x2M2V64gDi7
	63e3dq986xKld4YJzI25uqFv8Ln/FnCd0Sk3U8gMaowuVKVJKNg2pZIh6UyyzV2vjGHn
	e1CNTX2OVhQGm9uT1AmDqrExogXViEqdwkFDTQLywspm/s8WV0H483fqly9FzQqBIUVr
	vc8b2AIc12odC8hHICJ62iRfX+MNq9+/IVJAsTumL1uobVTPW7BDA+dHS9YrIrgEha1m
	370+2gcdFopyildtFCnFgo71NqADgB/MWDw4lckD+GQv81swqFc4r2vyAivP1pYtvz66
	LMcw==
X-Received: by 10.66.81.198 with SMTP id c6mr51585839pay.50.1358816039407;
	Mon, 21 Jan 2013 16:53:59 -0800 (PST)
Received: from Emacs ([124.117.7.239])
	by mx.google.com with ESMTPS id rv8sm9591095pbc.27.2013.01.21.16.53.56
	(version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 21 Jan 2013 16:53:58 -0800 (PST)
Date: Tue, 22 Jan 2013 08:53:54 +0800
From: Xue Fuqiao <xfq.free@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: `sort-lines' on the empty region
Message-Id: <20130122085354.75ced82538551655e724e0ea@HIDDEN>
Organization: The Church of Emacs
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

The current behavior of `sort-lines' on the empty region is to do
nothing. 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.

Wouldn't it be convenient to change the behavior of `sort-lines' so
that it sorts the whole buffer if no region is marked? Or is this
inconsistent with how other region-operating functions works?

See:
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00492.html
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao




Acknowledgement sent to Xue Fuqiao <xfq.free@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13521; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.