Harutyun,

I've updated my pull request with a fix for this issue.

c.

On Sun, Jan 27, 2013 at 1:48 PM, Harutyun Amirjanyan <
notifications@github.com> wrote:

> In lib/ace/keyboard/emacs.js:
>
> > @@ -79,16 +92,30 @@ exports.handler.attach = function(editor) {
> >              }', 'emacsMode'
> >          );
> >      }
> > +    // in emacs, gotowordleft/right should not count a space as a word..
> > +    editor.session.$selectLongWords = true;
> > +
> > +    markMode = false;
>
> When using ace for a tabbed editor (like in c9), there is one instance of
> editor, and every document is in session, switching editor tabs changes the
> session with editor.setSession, document popup in the kitchen-sink uses the
> same mechanism.
> When changing tabs, i'd expect markMode either to be false, or be restored
> to the value from that tab.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ajaxorg/ace/pull/1223/files#r2787442>.
>
>