blob: 8a2381a47083938c6da7f3137e2042429ac4dbb7 [file] [log] [blame]
http://bugs.gentoo.org/271007
Fix error with byte-compilation in Emacs.
--- protobuf-2.1.0-orig/editors/protobuf-mode.el 2009-05-13 22:36:40.000000000 +0200
+++ protobuf-2.1.0/editors/protobuf-mode.el 2009-05-24 13:37:04.000000000 +0200
@@ -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