소스 검색

Some sort of emacs protobuf mode fix.

kenton@google.com 16 년 전
부모
커밋
d5cf7b55a6
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      editors/protobuf-mode.el

+ 2 - 1
editors/protobuf-mode.el

@@ -71,7 +71,8 @@
 
 
 ;; This mode does not inherit properties from other modes. So, we do not use 
 ;; This mode does not inherit properties from other modes. So, we do not use 
 ;; the usual `c-add-language' function.
 ;; 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
 ;; The following code uses of the `c-lang-defconst' macro define syntactic
 ;; features of protocol buffer language.  Refer to the documentation in the
 ;; features of protocol buffer language.  Refer to the documentation in the