this.wrapRemove = function(editor, __remove, dir) { if (!this.cursorInRLanguageMode()) return __remove.call(editor, dir); else return TextMode.prototype.wrapRemove(editor, __remove, dir); };
this.wrapInsert = function(session, __insert, position, text) { if (!this.cursorInRLanguageMode()) return __insert.call(session, position, text); else return TextMode.prototype.wrapInsert(session, __insert, position, text); };