File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,9 @@ In that case set to `NIL'."
318
318
:tag " PHP Mode Enable Project Local Variable"
319
319
:type 'boolean )
320
320
321
+ (defconst php-mode-cc-vertion
322
+ (eval-when-compile c-version))
323
+
321
324
(defun php-mode-version ()
322
325
" Display string describing the version of PHP Mode."
323
326
(interactive )
@@ -1131,6 +1134,13 @@ After setting the stylevars run hooks according to STYLENAME
1131
1134
:syntax-table php-mode-syntax-table
1132
1135
; ; :after-hook (c-update-modeline)
1133
1136
; ; (setq abbrev-mode t)
1137
+
1138
+ (unless (string= php-mode-cc-vertion c-version)
1139
+ (user-error " CC Mode has been updated. %s"
1140
+ (if (package-installed-p 'php-mode )
1141
+ " Please run `M-x package-reinstall php-mode' command."
1142
+ " Please byte recompile PHP Mode files." )))
1143
+
1134
1144
(when php-mode-disable-c-mode-hook
1135
1145
(setq-local c-mode-hook nil )
1136
1146
(setq-local java-mode-hook nil ))
You can’t perform that action at this time.
0 commit comments