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#4587: 23.1; sort-lines and sort-fields always set buffer modified Date: Tue, 29 Sep 2009 18:38:44 +0200 Message-ID: Reply-To: rm369@arcor.de, 4587@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 005B7025C1257640_=" X-Trace: ger.gmane.org 1254283018 31200 80.91.229.12 (30 Sep 2009 03:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 03:56:58 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 05:56:51 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 1MsqJ7-0008Es-6b for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 05:56:50 +0200 Original-Received: from localhost ([127.0.0.1]:52122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsqJ6-00088h-PQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 23:56:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsgAU-0008Sx-Q0 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 13:07:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsgAR-0008QR-93 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 13:07:14 -0400 Original-Received: from [199.232.76.173] (port=37540 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsgAQ-0008QD-Cq for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 13:07:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58560) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsgAP-0004FI-Cm for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 13:07:09 -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 n8TH77E9028587; Tue, 29 Sep 2009 10:07:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8TGo5hs025177; Tue, 29 Sep 2009 09:50:05 -0700 Resent-Date: Tue, 29 Sep 2009 09:50:05 -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: Tue, 29 Sep 2009 16:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4587 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125424295925097 (code B ref -1); Tue, 29 Sep 2009 16:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 Sep 2009 16:49:19 +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 n8TGnFWS025082 for ; Tue, 29 Sep 2009 09:49:18 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsfjH-0002Nv-Rj for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 12:39:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsfjD-0002IH-S7 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 12:39:07 -0400 Original-Received: from [199.232.76.173] (port=51618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsfjD-0002HX-C0 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 12:39:03 -0400 Original-Received: from mailout01.rmx.de ([217.111.120.9]:39814) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsfjC-0005GU-72 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 12:39:02 -0400 Original-Received: from [172.19.21.67] (HELO crypto01.retarus.de) by mailout01.rmx.de (CommuniGate Pro SMTP 5.2.13 _community_) with ESMTPS id 54100287 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2009 18:38:57 +0200 Original-Received: (from daemon@localhost) by crypto01.retarus.de (8.13.6/8.13.6) id n8TGd2gU026390 for ; Tue, 29 Sep 2009 18:39:02 +0200 Original-Received: from mailcc09.retarus.de (localhost [127.0.0.1]) by crypto01.retarus.de (8.13.6/8.13.6) with SMTP id n8TDK1HW024225 for ; Tue, 29 Sep 2009 18:39:02 +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 2009092918384652-334001 ; Tue, 29 Sep 2009 18:38:46 +0200 X-KeepSent: 24152BC5:4B27E59E-C1257640:005A815D; type=4; flags=0; name=$KeepSent 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 29.09.2009 18:38:44, Serialize by Notes Client on Roland Meier/usr/cag(Release 6.5.6|March 06, 2007) at 29.09.2009 18:38:44, Serialize complete at 29.09.2009 18:38:44, S/MIME Sign failed at 29.09.2009 18:38:44: Der Verschl?sselungsschl?ssel wurde nicht gefunden, Serialize by Router on vshb001/srvc7/srvc/cag(Release 8.5FP1|June 15, 2009) at 29.09.2009 18:38:48, Serialize complete at 29.09.2009 18:38:48, Itemize by SMTP Server on frhb102/srvcMX/srvc/cag(Release 8.0.1|February 07, 2008) at 09/29/2009 06:38:46 PM, Serialize by Router on frhb102/srvcMX/srvc/cag(Release 8.0.1|February 07, 2008) at 09/29/2009 06:38:49 PM, Serialize complete at 09/29/2009 06:38:49 PM X-TNEFEvaluated: 1 X-RMX-ID: 20090929-183850-n8TGcnM0019217-0@kdin02 X-RMX-TRACE: 2009-09-29 18:38:50 KdIn@kdin02/mailcc04 [0.4s] 20090929-183850-n8TGcnM0019217-0@kdin02 0:00:00 X-RMX-TRACE: 2009-09-29 18:38:51 RmxMSO@kdin02/mailcc11 [0.1s] 20090929-183850-n8TGcnM0019217-0@kdin02 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: Tue, 29 Sep 2009 13:07:14 -0400 X-Mailman-Approved-At: Tue, 29 Sep 2009 23:56:22 -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:31587 Archived-At: --=_alternative 005B7025C1257640_= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" 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. An unmodified buffer should stay unmodified if nothing was changed. Reproduction: C-x C-f a a b c C-x C-s =20 M-x s o r t - l Status line should start with --\---, it starts with --\**- In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' Important settings: value of $LC=5FALL: nil value of $LC=5FCOLLATE: nil value of $LC=5FCTYPE: nil value of $LC=5FMESSAGES: nil value of $LC=5FMONETARY: nil value of $LC=5FNUMERIC: nil value of $LC=5FTIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: show-paren-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-s C-s C-s C-a =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 C-s C-s C-a C-s C-s C-s C-s=20 C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a =20 =20 =20 =20 =20 =20 =20 =20 =20 M-. =20 =20 i e t p r =20 C-s s o r t C-s C-s C-a =20 C-s s o r t C-s C-s C-a =20 2 C-s C-s =20 C-s m o d i f C-s C-s C-s C-s C-a a=20 C-g a a b =20 c y e s c : \=20 a a b c =20 M-x s o r t - l C-=5F =20 M-x r e p o r Recent messages: Mark saved where search started Mark set Mark saved where search started [2 times] Quit (New file) [2 times] Saving file c:/a... Wrote c:/a Mark set [3 times] Undo! Making completion list... --=20 Mit freundlichen Gr=FC=DFen Roland Meier \|||/=20 (o o)=20 =3D=3DooO=3D=3DU=3D=3DOoo=3D=3D=20 mailto:rm369@arcor.de --=_alternative 005B7025C1257640_= Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="ISO-8859-1"
M-x sort-lines and M-x sort-fields a= lways set the buffer modified
status ("-" -> "*&= quot; in column 5 of the status line), even if the region
was sorted and the command did not m= odify anything.
An unmodified buffer should stay unm= odified if nothing was changed.
Reproduction:
C-x C-f a <return> a <retur= n> b <return> c <return> C-x C-s <C-home>
M-x s o r t - l <tab> <retu= rn>
Status line should start with --\---, it starts with --\**-


In GNU Emacs 23.1.1 (i386-mingw-nt5.= 1.2600)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Micros= oft Corp.', version 5.1.2600
configured using `configure --with-g= cc (4.4)'

Important settings:
  value of $LC=5FALL: nil
  value of $LC=5FCOLLATE: nil
  value of $LC=5FCTYPE: nil
  value of $LC=5FMESSAGES: nil<= /font>
  value of $LC=5FMONETARY: nil<= /font>
  value of $LC=5FNUMERIC: nil
  value of $LC=5FTIME: nil
  value of $LANG: DEU
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8
  default-enable-multibyte-char= acters: t

Major mode: Fundamental

Minor modes in effect:
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-s C-s C-s C-a <up> <up> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-up>
<S-up> <S-up> <S-up&g= t; <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up&g= t; <S-up> <S-up> <S-up> <S-up> <S-up>
<S-up> <S-up> <S-up&g= t; <S-up> <S-up> <S-down> <S-down>
<S-down> <S-down> <S-= down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-= delete> <S-up> <S-up> <S-up> <S-down>
<S-delete> <delete> C-s C-s C-a <f11> C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a <down>
<down> <down> <down&g= t; <down> <down> <down> <down> <down>
<down> <down> <down&g= t; <down> <down> <down> <down> <down>
<down> <down> <down&g= t; <down> <down> <down> <down> <down>
<down> <down> <down&g= t; <down> <down> <down> <down> <down>
<down> <down> <down&g= t; <down> <down> <down> <down> <up>
<up> <up> <up> <= ;up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <= ;up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <= ;up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <= ;up> <up> <up> <C-right> M-. <return>
<lwindow> <help-echo> &l= t;help-echo> <help-echo> <lwindow>
<f1> i <f2> <M-backsp= ace> e t <tab> p r <tab> <return>
<C-home> C-s s o r t C-s C-s C= -a <C-home> <lwindow>
<f3> <return> C-s s o r t C-s C-s C-a <C-home> <down>
<down> <down> <down&g= t; 2 C-s C-s <down> <up> <return>
C-s m o d i f C-s C-s C-s C-s C-a &l= t;lwindow> <f9> a
<tab> <return> C-g <f= 2> a <return> a <return> b <return>
c <return> <f3> <retu= rn> y e s <return> <f2> c : \
a <return> a <return> b <return> c <return> <f11> <C-S-home>
<C-end> M-x s o r t - l <ta= b> <return> C-=5F <lwindow>
M-x r e p o <tab> r <tab> <return>

Recent messages:
Mark saved where search started
Mark set
Mark saved where search started [2 t= imes]
Quit
(New file) [2 times]
Saving file c:/a...
Wrote c:/a
Mark set [3 times]
Undo!
Making completion list...

--
Mit freundlichen Gr=FC=DFen
Roland Meier

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

mailto:rm369@arcor.de
--=_alternative 005B7025C1257640_=--