branch: elpa/php-mode
commit 683211c0880a45e2349af90bd2384582c4829430
Author: USAMI Kenta <tad...@zonu.me>
Commit: USAMI Kenta <tad...@zonu.me>

    Remove 'flymake-cc from flymake-diagnostic-functions
---
 lisp/php-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/php-mode.el b/lisp/php-mode.el
index 6281c8a546..2f898403e1 100644
--- a/lisp/php-mode.el
+++ b/lisp/php-mode.el
@@ -1153,6 +1153,8 @@ After setting the stylevars run hooks according to 
STYLENAME
   "Reset PHP-irrelevant variables set by Cc Mode initialization."
   (setq-local c-mode-hook nil)
   (setq-local java-mode-hook nil)
+  (when (eval-when-compile (boundp 'flymake-diagnostic-functions))
+    (remove-hook 'flymake-diagnostic-functions 'flymake-cc t))
   t)
 
 (defvar php-mode-syntax-table

Reply via email to