unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 9159@debbugs.gnu.org
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	[thread overview]
Message-ID: <2770D343D58A43A6A97AC158A2C6B677@us.oracle.com> (raw)

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'
 
 
 

 






             reply	other threads:[~2011-07-24  2:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-24  2:06 Drew Adams [this message]
2011-08-02  4:16 ` bug#9159: 24.0.50; `undo' is not as good as it should be wrt property changes Stefan Monnier
2011-08-02 17:34   ` Drew Adams
2011-08-02 19:10     ` Stefan Monnier
2011-08-02 20:48       ` Drew Adams
2011-08-02 21:13         ` Lars Magne Ingebrigtsen
2011-08-02 21:48           ` Drew Adams
2011-09-11  2:36             ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2770D343D58A43A6A97AC158A2C6B677@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=9159@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).