From 8dfa9bccd6da070f4bff1877fd3121fa53423219 Mon Sep 17 00:00:00 2001 From: moculus Date: Thu, 17 Apr 2008 14:34:32 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mode/__init__.py b/mode/__init__.py index 957741a..947bedc 100644 --- a/mode/__init__.py +++ b/mode/__init__.py @@ -87,6 +87,7 @@ class Fundamental(Handler): tabber = None colors = {} config = {} + methods = [] # margin/line numbering show_line_numbers = False @@ -105,6 +106,12 @@ class Fundamental(Handler): app.token_colors[key] = val for (key, val) in cls.config.iteritems(): app.config[key] = val + for mcls in cls.methods: + m = mcls() + if m.name in app.methods: + return + else: + app.methods[m.name] = m install = classmethod(install) def __init__(self, w):