emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/php-mode 683211c088 2/9: Remove 'flymake-cc from flymake-d


From: ELPA Syncer
Subject: [nongnu] elpa/php-mode 683211c088 2/9: Remove 'flymake-cc from flymake-diagnostic-functions
Date: Sat, 5 Nov 2022 19:59:05 -0400 (EDT)

branch: elpa/php-mode
commit 683211c0880a45e2349af90bd2384582c4829430
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@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

[Prev in Thread] Current Thread [Next in Thread]