From e9f00278cc1fd4fedeec2f87d7654ee39476de78 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 29 Oct 2008 17:17:16 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- application.py | 7 +++---- buffer/__init__.py | 9 +++++---- default.py | 5 ++++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/application.py b/application.py index adcf6eb..0df7c56 100755 --- a/application.py +++ b/application.py @@ -161,16 +161,15 @@ class Application(object): self.loadrc() # initialize our buffers - # note that the first buffer in buffers will be initially visible + # note that only the first buffer will be initially visible buffers.append(buffer.about.AboutBuffer()) - buffers.append(buffer.console.ConsoleBuffer()) - + #buffers.append(buffer.console.ConsoleBuffer()) if self.rcerror: buffers.insert(0, buffer.data.DataBuffer('*RcError*', self.rcerror)) # build windows for our buffers for b in buffers: - if b.name() == '*Console*': + if b.modename: window.Window(b, self) else: window.Window(b, self, mode_name=init_mode) diff --git a/buffer/__init__.py b/buffer/__init__.py index 94182cf..417f2d0 100644 --- a/buffer/__init__.py +++ b/buffer/__init__.py @@ -43,10 +43,11 @@ class DelMove(object): # abstract class class Buffer(object): - btype = 'generic' - mac_re = re.compile('\r(?!\n)') - unix_re = re.compile('(?