@@ -292,13 +292,6 @@ In that case set to `NIL'."
292292 :tag " PHP Mode Enable Backup Style Variables"
293293 :type 'boolean )
294294
295- (define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook " 1.21.0" )
296- (defcustom php-mode-disable-c-mode-hook t
297- " When set to `T' , do not run hooks of parent modes (`java-mode' , `c-mode' )."
298- :tag " PHP Mode Disable C Mode Hook"
299- :type 'boolean )
300- (make-obsolete-variable 'php-mode-disable-c-mode-hook nil " 1.24.2" )
301-
302295(defcustom php-mode-enable-project-local-variable t
303296 " When set to `T' , apply project local variable to buffer local variable."
304297 :tag " PHP Mode Enable Project Local Variable"
@@ -1132,13 +1125,6 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'."
11321125 (php-project-apply-local-variables)
11331126 (remove-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay ))
11341127
1135- (defun php-mode-neutralize-cc-mode-effect ()
1136- " Reset PHP-irrelevant variables set by Cc Mode initialization."
1137- (setq-local c-mode-hook nil )
1138- (setq-local java-mode-hook nil )
1139- (remove-hook 'flymake-diagnostic-functions 'flymake-cc t )
1140- t )
1141-
11421128(defvar php-mode-syntax-table
11431129 (let ((table (make-syntax-table )))
11441130 (c-populate-syntax-table table)
@@ -1162,12 +1148,6 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'."
11621148 (unless (string= php-mode-cc-version c-version)
11631149 (php-mode-debug-reinstall nil ))
11641150
1165- (if php-mode-disable-c-mode-hook
1166- (php-mode-neutralize-cc-mode-effect)
1167- (display-warning 'php-mode
1168- " `php-mode-disable-c-mode-hook' will be removed. Do not depends on this variable."
1169- :warning ))
1170-
11711151 (c-initialize-cc-mode t )
11721152 (setq abbrev-mode t )
11731153
0 commit comments