summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2010-05-29 13:00:38 -0700
committerWink Saville <wink@google.com>2010-05-29 13:00:38 -0700
commitd0332953cda33fb4f8e24ebff9c49159b69c43d6 (patch)
tree81612e8b12f590310aeb0ebf1da37b304eb7baa6 /editors
parentede38fe9b9f93888e6e41afc7abb09525f44da95 (diff)
downloadexternal_protobuf-d0332953cda33fb4f8e24ebff9c49159b69c43d6.zip
external_protobuf-d0332953cda33fb4f8e24ebff9c49159b69c43d6.tar.gz
external_protobuf-d0332953cda33fb4f8e24ebff9c49159b69c43d6.tar.bz2
Add protobuf 2.3.0 sources
This is the contents of protobuf-2.3.0.tar.bz2 from http://code.google.com/p/protobuf/downloads/list. Change-Id: Idfde09ce7ef5ac027b07ee83f2674fbbed5c30b2
Diffstat (limited to 'editors')
-rw-r--r--editors/protobuf-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/protobuf-mode.el b/editors/protobuf-mode.el
index 3337c1f..09aecc9 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
@@ -206,7 +207,8 @@ Key bindings:
abbrev-mode t)
(use-local-map protobuf-mode-map)
(c-initialize-cc-mode t)
- (c-make-emacs-variables-local)
+ (if (fboundp 'c-make-emacs-variables-local)
+ (c-make-emacs-variables-local))
(c-init-language-vars protobuf-mode)
(c-common-init 'protobuf-mode)
(easy-menu-add protobuf-menu)