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#4587: 23.1; sort-lines and sort-fields always set buffer modified Date: Wed, 30 Sep 2009 00:44:07 -0400 Message-ID: References: Reply-To: Stefan Monnier , 4587@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254287276 7325 80.91.229.12 (30 Sep 2009 05:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 05:07:56 +0000 (UTC) Cc: 4587@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: rm369@arcor.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 07:07:49 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MsrPo-0005CN-FV for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 07:07:48 +0200 Original-Received: from localhost ([127.0.0.1]:53817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsrPo-0007Fi-09 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 01:07:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsrPI-0006y1-J0 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 01:07:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsrPD-0006v0-Bg for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 01:07:15 -0400 Original-Received: from [199.232.76.173] (port=41073 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsrPD-0006uo-7q for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 01:07:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48099) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsrPC-0004Ms-BP for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 01:07:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8U577RP005270; Tue, 29 Sep 2009 22:07:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8U4o7YG002028; Tue, 29 Sep 2009 21:50:07 -0700 Resent-Date: Tue, 29 Sep 2009 21:50:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 30 Sep 2009 04:50:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4587 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4587-submit@emacsbugs.donarmstrong.com id=B4587.12542858551183 (code B ref 4587); Wed, 30 Sep 2009 04:50:07 +0000 Original-Received: (at 4587) by emacsbugs.donarmstrong.com; 30 Sep 2009 04:44:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8U4iDwt001180 for <4587@emacsbugs.donarmstrong.com>; Tue, 29 Sep 2009 21:44:15 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsYEACt/wkrO+KOO/2dsb2JhbACBUNcBhB4Fh34 X-IronPort-AV: E=Sophos;i="4.44,478,1249272000"; d="scan'208";a="46829745" Original-Received: from 206-248-163-142.dsl.teksavvy.com (HELO ceviche.home) ([206.248.163.142]) by ironport2-out.pppoe.ca with ESMTP; 30 Sep 2009 00:44:08 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 04A8DB4265; Wed, 30 Sep 2009 00:44:07 -0400 (EDT) In-Reply-To: (Roland Meier's message of "Tue, 29 Sep 2009 18:38:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 30 Sep 2009 01:07:15 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31591 Archived-At: > M-x sort-lines and M-x sort-fields always set the buffer modified > status ("-" -> "*" in column 5 of the status line), even if the region > was sorted and the command did not modify anything. Indeed. The same holds true for fill-paragraph. > An unmodified buffer should stay unmodified if nothing was changed. > Reproduction: Yes, that's generally desirable. But in the above cases, given the way the code currently works, it's fairly inconvenient to do (the code does modify the buffer, it just so happens that the end text is the same as the original text), so it doesn't seem worth the trouble. Stefan