This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132590

Summary: Documents do not become unmodified after undo
Product: editor Reporter: Jesse Glick <jglick>
Component: Key bindingsAssignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: blocker CC: anebuzelsky, matthies, mmirilovic, mslama, sustaining
Priority: P2 Keywords: REGRESSION
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2008-04-11 03:28:54 UTC
Sometime recently, pressing Ctrl-Z ceased to suffice to make a buffer be marked unmodified, even after undoing all edits
since it was opened.
Comment 1 Antonin Nebuzelsky 2008-04-16 09:50:10 UTC
Marku, please evaluate.
Comment 2 mslama 2008-04-17 10:31:56 UTC
Confirmed.
Comment 3 mslama 2008-04-17 17:03:01 UTC
This is weird bug introduced by 77085:8982ded63389. Then it was fixed by next rev 77086:7a389aaba281. Then again it was
introduced by 77100:c9c1a766cf3f and stayed there till now.

I checked only limited set of revisions because I must get revision, build IDE and run IDE to see if bug is there or
not.  It means that this transition map need not be complete. It is possible that this is caused by recent repository
break. This happened around 2 Apr. I think this should be fixed by someone who known editor code. From diffs it looks
like change in editor/src and editor.lib/src.

It would be good to consider higher modularity of repository so that one 'helper' cannot make so big harm. CCing Michal.
Comment 4 mslama 2008-04-17 17:11:46 UTC
I just checked and this issue is also in latest NB 6.1 build 6.1rc2-200804170002.
Comment 5 mslama 2008-04-17 18:27:26 UTC
Ok. I understand repo order better now. This issue is regression caused by:
changeset:   77082:4a5981146d70
user:        Miloslav Metelka <mmetelka@netbeans.org>
date:        Wed Apr 02 18:21:49 2008 +0200
summary:     #118038 - Undo key binding not working in Java Editor.

Always reproducible with txt file. Open it in editor write any letter and press Ctrl-Z (Undo). Editor stays modified.
Comment 6 Miloslav Metelka 2008-04-17 21:07:46 UTC
I will fix this.
Comment 7 Marian Mirilovic 2008-04-18 08:04:35 UTC
Ok Mila, please fix in trunk as soon as possible, we'll add this issue into the list for patch 1
Comment 8 Jiri Prox 2008-04-18 12:16:15 UTC
*** Issue 132843 has been marked as a duplicate of this issue. ***
Comment 9 Jiri Prox 2008-04-18 12:48:17 UTC
*** Issue 133069 has been marked as a duplicate of this issue. ***
Comment 10 Jiri Prox 2008-04-22 07:36:58 UTC
*** Issue 133466 has been marked as a duplicate of this issue. ***
Comment 11 Miloslav Metelka 2008-04-22 12:19:00 UTC
http://hg.netbeans.org/main/rev/1c1949f0a731
Comment 12 Jiri Prox 2008-04-23 10:07:14 UTC
verified in trunk
Comment 13 pgebauer 2008-04-27 19:59:22 UTC
The fix has been ported into the release61_fixes branch:

http://hg.netbeans.org/release61_fixes/rev/86f85e0703df
Comment 14 Jiri Prox 2008-05-15 09:25:53 UTC
*** Issue 135114 has been marked as a duplicate of this issue. ***
Comment 15 Jiri Prox 2008-05-19 08:51:57 UTC
*** Issue 135289 has been marked as a duplicate of this issue. ***
Comment 16 Petr Dvorak 2008-05-23 19:13:35 UTC
*** Issue 135729 has been marked as a duplicate of this issue. ***