def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode