Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 377328

Summary: Regression - emacs scheme is missing many key bindings.
Product: [Eclipse Project] Platform Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: UIAssignee: Paul Webster <pwebster>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: pwebster
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Trace
none
Something is wrong with contexts none

Description Sergey Prigogin CLA 2012-04-21 01:25:23 EDT
3.8M6:
In Emacs mode Ctrl+Y is not mapped to Paste as it should be.
Comment 1 Paul Webster CLA 2012-04-21 07:49:56 EDT
I found out there's a delete binding for CTRL+Y on gtk that's removing it.

PW
Comment 2 Sergey Prigogin CLA 2012-04-24 00:56:55 EDT
(In reply to comment #1)
> I found out there's a delete binding for CTRL+Y on gtk that's removing it.

Paul, did you mean removing in Eclipse?
Comment 3 Paul Webster CLA 2012-04-24 06:27:22 EDT
Yes, there's a plugin.xml entry in eclipse that removes CTRL+Y so that redo can be CTRL+SHIFT+Z on gtk.  It also seems to remove it for the emacs scheme.

PW
Comment 4 Sergey Prigogin CLA 2012-04-24 12:36:17 EDT
(In reply to comment #3)
> Yes, there's a plugin.xml entry in eclipse that removes CTRL+Y so that redo can
> be CTRL+SHIFT+Z on gtk.  It also seems to remove it for the emacs scheme.

Please notice that this is a regression in 3.8. Ctrl+Y used to work fine in 3.7.2.
Comment 5 Paul Webster CLA 2012-04-24 13:24:47 EDT
You're right, I did it in bug 360639

I think I can fix it with another entry.
Comment 7 Sergey Prigogin CLA 2012-04-26 15:07:39 EDT
Ctrl+K, Ctrl+W and possibly some other keys are not mapped in Emacs mode too. Have they all been fixed?
Comment 8 Paul Webster CLA 2012-04-26 15:31:54 EDT
(In reply to comment #7)
> Ctrl+K, Ctrl+W and possibly some other keys are not mapped in Emacs mode too.
> Have they all been fixed?

No, I hadn't heard of that problem.  Is this new in 3.8?  Or in 3.7.2?

PW
Comment 9 Sergey Prigogin CLA 2012-04-26 15:41:07 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > Ctrl+K, Ctrl+W and possibly some other keys are not mapped in Emacs mode too.
> > Have they all been fixed?
> 
> No, I hadn't heard of that problem.  Is this new in 3.8?  Or in 3.7.2?

Just like with Ctrl+Y, it's a regression in 3.8. Other missing bindings are Ctrl+A, Ctrl+B, Ctrl+E, Ctrl+F, Ctrl+N, Ctrl+P.
Comment 10 Paul Webster CLA 2012-04-27 08:14:19 EDT
(In reply to comment #9)
> 
> Just like with Ctrl+Y, it's a regression in 3.8. Other missing bindings are
> Ctrl+A, Ctrl+B, Ctrl+E, Ctrl+F, Ctrl+N, Ctrl+P.

CTRL+A, CTRL+B, CTRL+E, and CTRL+F all work for me.

Could you start up your eclipse with some debug options from http://wiki.eclipse.org/Platform_Command_Framework#Tracing_Option



org.eclipse.ui/debug=true
org.eclipse.ui/trace/keyBindings=true
org.eclipse.ui/trace/keyBindings.verbose=true
org.eclipse.ui/trace/sources=true
org.eclipse.ui/trace/handlers=true
#org.eclipse.ui/trace/handlers.verbose=true
#org.eclipse.ui/trace/handlers.verbose.commandId=org.eclipse.ui.edit.copy
org.eclipse.ui/trace/contexts=true
org.eclipse.ui/trace/contexts.verbose=true

PW
Comment 11 Sergey Prigogin CLA 2012-05-04 22:09:27 EDT
Created attachment 215120 [details]
Trace
Comment 12 Sergey Prigogin CLA 2012-05-04 22:10:22 EDT
Created attachment 215121 [details]
Something is wrong with contexts
Comment 13 Sergey Prigogin CLA 2012-05-04 22:14:47 EDT
I've attached a debugging trace and a screenshot of the Keys preference page that should some suspicious contexts.

I've noticed that the problem is somewhat intermittent. In 1 Eclipse run out of 4 emacs bindings did work, but didn't work in the rest three.
Comment 14 Paul Webster CLA 2012-05-07 09:46:47 EDT
(In reply to comment #12)
> Created attachment 215121 [details]
> Something is wrong with contexts

This image isn't really a problem, it's caused by xtext.

PW
Comment 15 Sergey Prigogin CLA 2012-05-07 11:28:40 EDT
(In reply to comment #14)
Does the trace show anything interesting?
Comment 16 Paul Webster CLA 2012-05-07 11:43:21 EDT
(In reply to comment #15)
> (In reply to comment #14)
> Does the trace show anything interesting?

It shows CTRL+A executing org.eclipse.ui.edit.selectAll (in I presume one of the editors) even after the emacs scheme is being written out to prefs (so the keys preference page must be setting them).  This shouldn't be happening.

But the contexts look reasonable, it has the text navigation context.

I'm going to have to try and reproduce it in my own 3.8 eclipse.  What version of gtk2 does your linux have?

PW
Comment 17 Sergey Prigogin CLA 2012-05-07 14:15:56 EDT
(In reply to comment #16)
What version
> of gtk2 does your linux have?
2.10. Can I do anything else to help with debugging?
Comment 18 Sergey Prigogin CLA 2012-05-07 15:49:32 EDT
(In reply to comment #14)

> This image isn't really a problem, it's caused by xtext.

Is there a xtext bug for this?
Comment 19 Sergey Prigogin CLA 2012-05-22 15:04:01 EDT
This bug is a major regression from 3.7.x. It should not be allowed to slip into the final release.
Comment 20 Paul Webster CLA 2012-05-24 07:58:02 EDT
So CTRL+K and CTRL+L do nothing, and CTRL+A still does selectAll even when you are in the emacs Scheme?

That sounds like Bug 378684, which I can reproduce on 3.8 simply by switching back and forth between emacs and default schemes a couple of times.

The workaround is to go to the Keys pref page, Restore Defaults, OK.  Then go back, set your scheme to emacs, and it should work again.

PW
Comment 21 Paul Webster CLA 2012-05-25 10:56:50 EDT

*** This bug has been marked as a duplicate of bug 378684 ***