From d5cf7b55a6a1f959d1646785f63ca2b62da78079 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Fri, 18 Dec 2009 01:55:04 +0000 Subject: Some sort of emacs protobuf mode fix. --- editors/protobuf-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/protobuf-mode.el b/editors/protobuf-mode.el index 9ac0c727..09aecc93 100644 --- a/editors/protobuf-mode.el +++ b/editors/protobuf-mode.el @@ -71,7 +71,8 @@ ;; This mode does not inherit properties from other modes. So, we do not use ;; the usual `c-add-language' function. -(put 'protobuf-mode 'c-mode-prefix "protobuf-") +(eval-and-compile + (put 'protobuf-mode 'c-mode-prefix "protobuf-")) ;; The following code uses of the `c-lang-defconst' macro define syntactic ;; features of protocol buffer language. Refer to the documentation in the -- cgit v1.2.3