From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: simenheg@ifi.uio.no (Simen =?utf-8?Q?Heggest=C3=B8yl?=) Newsgroups: gmane.emacs.devel Subject: `sort-lines' on the empty region Date: Mon, 21 Jan 2013 14:51:02 +0100 Message-ID: <87k3r6k5kp.fsf@ifi.uio.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358787038 30706 80.91.229.3 (21 Jan 2013 16:50:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 16:50:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 21 17:50:57 2013 Return-path: Envelope-to: ged-emacs-devel@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 1TxKaC-0000Xp-6n for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2013 17:50:52 +0100 Original-Received: from localhost ([::1]:40624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxKZv-0007Ex-77 for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2013 11:50:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHlg-0007MY-LN for emacs-devel@gnu.org; Mon, 21 Jan 2013 08:50:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxHlc-0003qO-JN for emacs-devel@gnu.org; Mon, 21 Jan 2013 08:50:32 -0500 Original-Received: from mail-out4.uio.no ([129.240.10.15]:46222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHlc-0003pp-CT for emacs-devel@gnu.org; Mon, 21 Jan 2013 08:50:28 -0500 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out4.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1TxHlZ-0008NF-F0 for emacs-devel@gnu.org; Mon, 21 Jan 2013 14:50:25 +0100 Original-Received: from 1x-193-157-250-145.uio.no ([193.157.250.145] helo=x201) by mail-mx4.uio.no with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) user simenheg (Exim 4.80) (envelope-from ) id 1TxHlZ-0007rj-3w for emacs-devel@gnu.org; Mon, 21 Jan 2013 14:50:25 +0100 X-UiO-SPF-Received: X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 2 sum rcpts/h 3 sum msgs/h 2 total rcpts 266 max rcpts/h 21 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.5, required=5.0, autolearn=disabled, RP_MATCHES_RCVD=-0.509, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: A3DA6240F1D175E7F1F3327D992E7915B4BB9A25 X-UiO-SPAM-Test: remote_host: 193.157.250.145 spam_score: -54 maxlevel 80 minaction 2 bait 0 mail/h: 2 total 18 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 129.240.10.15 X-Mailman-Approved-At: Mon, 21 Jan 2013 11:50:27 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156545 Archived-At: 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?