From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9159: 24.0.50; `undo' is not as good as it should be wrt property changes Date: Sat, 23 Jul 2011 19:06:39 -0700 Message-ID: <2770D343D58A43A6A97AC158A2C6B677@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311473294 18527 80.91.229.12 (24 Jul 2011 02:08:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 02:08:14 +0000 (UTC) To: 9159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 24 04:08:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qko6y-0002ZT-EE for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jul 2011 04:08:08 +0200 Original-Received: from localhost ([::1]:56384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko6w-0007SH-JD for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 22:08:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko6t-0007SA-Ry for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qko6s-00005Q-Sg for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:08:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko6s-00005L-Ps for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qko6s-0003Ur-OQ; Sat, 23 Jul 2011 22:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jul 2011 02:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.131147322513376 (code B ref -1); Sun, 24 Jul 2011 02:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jul 2011 02:07:05 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qko5x-0003Tg-1G for submit@debbugs.gnu.org; Sat, 23 Jul 2011 22:07:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qko5s-0003TC-Me for submit@debbugs.gnu.org; Sat, 23 Jul 2011 22:07:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qko5l-0008Qa-TY for submit@debbugs.gnu.org; Sat, 23 Jul 2011 22:06:55 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:46453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko5l-0008QU-Qq for submit@debbugs.gnu.org; Sat, 23 Jul 2011 22:06:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko5k-0006zt-Q4 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:06:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qko5j-0008Q2-Hx for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:06:52 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:59438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qko5j-0008Ph-A6 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2011 22:06:51 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6O26mQv028393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 24 Jul 2011 02:06:50 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6O26keI001280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 24 Jul 2011 02:06:47 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6O26fuV003938 for ; Sat, 23 Jul 2011 21:06:41 -0500 Original-Received: from dradamslap1 (/10.159.46.143) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 23 Jul 2011 19:06:41 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcxJplMAiHJS4TV4Roug+gxYjWLtDQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090208.4E2B7E3A.0038,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 23 Jul 2011 22:08:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49581 Archived-At: emacs -Q In *scratch*, do this with cursor on the character `T' (for example): M-: (put-text-property (point) (1+ (point)) 'foo 42) The buffer then appears modified. With point in the same place, do `C-u C-x ='. That shows that there is property `foo' there, with value 42. C-M-_ to undo the last change. With point in the same place, do `C-u C-x ='. That shows that there is property `foo' there, with value nil. And it shows the buffer as no longer modified. IOW, the buffer modification is indicated as corresponding with setting property `foo' to 42, and undo puts it back to nil. While correct, it would be better for the property `foo' to simply be removed, and thus not have `C-u C-x =' show a `foo' value at all. Undo is not really undoing things to put them back they way they were, as witnessed by `C-u C-x ='. NOTE: Sending from a different Emacs version because of the recent SMTP mail bugs. This is the version the report is for: In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-07-18 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include'