branch: externals/phps-mode
commit 52556fd141ace1809a6d022f3ab137ee46ab10f0
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Fixes for byte-compilation notices
---
phps-mode-automation-parser-generator.el | 9 ---------
phps-mode-flymake.el | 18 ++++++++++--------
2 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/phps-mode-automation-parser-generator.el
b/phps-mode-automation-parser-generator.el
index 1680d8d452..c1de052bfe 100644
--- a/phps-mode-automation-parser-generator.el
+++ b/phps-mode-automation-parser-generator.el
@@ -350,15 +350,6 @@
))
- (when token
- ;; (message
- ;; "token: %S from %S"
- ;; token
- ;; (buffer-substring-no-properties
- ;; (car (cdr token))
- ;; (cdr (cdr token))))
- )
-
token)))))
(when (boundp 'parser-generator-lex-analyzer--get-function)
diff --git a/phps-mode-flymake.el b/phps-mode-flymake.el
index 12ab3acd6c..4195130e81 100644
--- a/phps-mode-flymake.el
+++ b/phps-mode-flymake.el
@@ -18,14 +18,16 @@
This is an alternative function of `flymake-php-init'.
Look at the `php-executable' variable instead of the constant \"php\" command."
- (add-to-list 'flymake-allowed-file-name-masks
- '("\\.php[345s]?\\'"
- phps-mode--flymake-init
- flymake-simple-cleanup
- flymake-get-real-file-name))
-
- (add-to-list 'flymake-err-line-patterns
- '("\\(Parse\\|Fatal\\) error: \\(.*?\\) in \\(.*?\\) on line
\\([0-9]+\\)" 3 4 nil 2))
+ (when (boundp 'flymake-allowed-file-name-masks)
+ (add-to-list 'flymake-allowed-file-name-masks
+ '("\\.php[345s]?\\'"
+ phps-mode--flymake-init
+ flymake-simple-cleanup
+ flymake-get-real-file-name)))
+
+ (when (boundp 'flymake-err-line-patterns)
+ (add-to-list 'flymake-err-line-patterns
+ '("\\(Parse\\|Fatal\\) error: \\(.*?\\) in \\(.*?\\) on line
\\([0-9]+\\)" 3 4 nil 2)))
(if (boundp 'php-executable)
(let* ((temp-file