From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roland.Meier@continental-corporation.com Newsgroups: gmane.emacs.bugs Subject: bug#4597: Antwort: Re: bug#4587: 23.1; sort-lines and sort-fields always set buffer modified Date: Wed, 30 Sep 2009 12:00:56 +0200 Message-ID: References: Reply-To: Roland.Meier@continental-corporation.com, 4597@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 003704BFC1257641_=" X-Trace: ger.gmane.org 1254318616 6464 80.91.229.12 (30 Sep 2009 13:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 13:50:16 +0000 (UTC) Cc: 4587@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 15:50:08 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 1MszZE-0005Rx-Dx for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 15:50:08 +0200 Original-Received: from localhost ([127.0.0.1]:35748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MszZC-0005Pn-G6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 09:50:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MswP0-0006aY-GB for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:27:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MswOu-0006ZF-VM for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:27:17 -0400 Original-Received: from [199.232.76.173] (port=58956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MswOu-0006Z0-AN for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:27:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37202) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MswOt-0006i3-Lf for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:27:12 -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 n8UAR75Z018964; Wed, 30 Sep 2009 03:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8UAA4Yn016468; Wed, 30 Sep 2009 03:10:04 -0700 Resent-Date: Wed, 30 Sep 2009 03:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Roland.Meier@continental-corporation.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 30 Sep 2009 10:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4597 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125430488214672 (code B ref -1); Wed, 30 Sep 2009 10:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2009 10:01:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8UA1K7b014667 for ; Wed, 30 Sep 2009 03:01:22 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msvzs-0003nn-FV for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:01:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msvzn-0003fw-0S for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:01:18 -0400 Original-Received: from [199.232.76.173] (port=59498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msvzm-0003fl-NV for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:01:14 -0400 Original-Received: from mailout02.rmx.de ([217.111.120.10]:47392) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msvzm-00030W-28 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 06:01:14 -0400 Original-Received: from [172.19.21.68] (HELO crypto02.retarus.de) by mailout02.rmx.de (CommuniGate Pro SMTP 5.2.13 _community_) with ESMTPS id 54259972; Wed, 30 Sep 2009 12:01:10 +0200 Original-Received: (from daemon@localhost) by crypto02.retarus.de (8.13.6/8.13.6) id n8UA1Ama016877; Wed, 30 Sep 2009 12:01:10 +0200 Original-Received: from 10.64.74.160 (localhost [127.0.0.1]) by crypto02.retarus.de (8.13.6/8.13.6) with SMTP id n8U9ulhw014666; Wed, 30 Sep 2009 12:01:09 +0200 Original-Received: from sbas703a.cw01.contiwan.com ([158.92.186.29]) by frhb102.auto.contiwan.com (Lotus Domino Release 8.0.1) with ESMTP id 2009093012010051-398154 ; Wed, 30 Sep 2009 12:01:00 +0200 In-Reply-To: X-Mailer: Lotus Notes Release 6.5.6 March 06, 2007 X-MIMETrack: S/MIME Sign by Notes Client on Roland Meier/usr/cag(Release 6.5.6|March 06, 2007) at 30.09.2009 12:00:56, Serialize by Notes Client on Roland Meier/usr/cag(Release 6.5.6|March 06, 2007) at 30.09.2009 12:00:56, Serialize complete at 30.09.2009 12:00:56, S/MIME Sign failed at 30.09.2009 12:00:56: Der Verschl?sselungsschl?ssel wurde nicht gefunden, Serialize by Router on vshb001/srvc7/srvc/cag(Release 8.5FP1|June 15, 2009) at 30.09.2009 12:01:02, Serialize complete at 30.09.2009 12:01:02, Itemize by SMTP Server on frhb102/srvcMX/srvc/cag(Release 8.0.1|February 07, 2008) at 09/30/2009 12:01:00 PM, Serialize by Router on frhb102/srvcMX/srvc/cag(Release 8.0.1|February 07, 2008) at 09/30/2009 12:01:02 PM, Serialize complete at 09/30/2009 12:01:02 PM X-TNEFEvaluated: 1 X-RMX-ID: 20090930-120103-n8UA12Eg012545-0@kdin65 X-RMX-TRACE: 2009-09-30 12:01:03 KdIn@kdin65/mailcc66 [0.5s] 20090930-120103-n8UA12Eg012545-0@kdin65 0:00:00 X-RMX-TRACE: 2009-09-30 12:01:04 RmxMSO@kdin65/mailcc67 [0.1s] 20090930-120103-n8UA12Eg012545-0@kdin65 0:00:01 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 30 Sep 2009 06:27:17 -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:31595 Archived-At: --=_alternative 003704BFC1257641_= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" > 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. Wouldn't it be possible in case of an unmodified buffer to copy the=20 content of the region at the beginning to a temporary buffer, compare it=20 to the result afterwards, and if they match to restore the unmodified=20 status? I sometimes need to check a list (which isn't small enough to be checked=20 at a glance) after editing it if it is still sorted. Now I write he region before and after sorting it to separate files and=20 compare them, but I wonder if a powerful tool like emacs must keep such an = obvious annoyance like this... Thanks! --=20 Mit freundlichen Gr=FC=DFen Roland Meier \|||/=20 (o o)=20 =3D=3DooO=3D=3DU=3D=3DOoo=3D=3D=20 --=_alternative 003704BFC1257641_= Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="ISO-8859-1"
> 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.

Wouldn't it be possible in case of an unmodified buffer to copy the content of the region at the beginning to a temporary buffer, compare it to the result afterwards, and if they match to restore the unmodified status?

I sometimes need to check a list (wh= ich isn't small enough to be checked at a glance) after editing it if it is still sorted.
Now I write he region before and aft= er sorting it to separate files and compare them, but I wonder if a powerful tool like emacs must keep such an obvious annoyance like this...

Thanks!
--
Mit freundlichen Gr=FC=DFen
Roland Meier

    \|||/
    (o o)
=3D=3DooO=3D=3DU=3D=3DOoo=3D=3D

--=_alternative 003704BFC1257641_=--