From 757926196bcb861d0ac2802e4e26e71d225da994 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 17 Oct 2007 21:47:07 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/c.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mode/c.py b/mode/c.py index d446835..a801ea5 100644 --- a/mode/c.py +++ b/mode/c.py @@ -1,4 +1,4 @@ -import popen2, re +import os, popen2, re import color, default, method, mode2, tab2 from lex3 import Grammar, PatternRule, RegionRule from mode.python import StringGrammar @@ -238,7 +238,7 @@ class C(mode2.Fundamental): self.add_bindings('close-brace', ('}',)) self.add_bindings('close-bracket', (']',)) self.add_action_and_bindings(CMake(), ('C-c C-c',)) - self.add_action_and_bindings(CSetMake(), ('C-c C-m',)) + self.add_action_and_bindings(CSetMake(), ('C-c M-m',)) self.makecmd = "make" def name(self): return "C" @@ -253,7 +253,7 @@ class CSetMake(method.Method): class CMake(method.Method): '''Check the syntax of the current python file''' def _execute(self, w, **vargs): - p = popen2.Popen4(w.makecmd) + p = popen2.Popen4(w.mode.makecmd) p.tochild.close() output = p.fromchild.read() result = p.wait()