Skip to content

Commit 1cbb720

Browse files
committed
Simplify flymake-allowed-file-name-masks
1 parent 341b608 commit 1cbb720

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

php-mode.el

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,14 +1490,12 @@ a completion list."
14901490
(defvar php-font-lock-keywords php-font-lock-keywords-3
14911491
"Default expressions to highlight in PHP Mode.")
14921492

1493-
(add-to-list 'flymake-allowed-file-name-masks
1494-
'("\\.php[345s]?\\'"
1495-
php-flymake-php-init
1496-
flymake-simple-cleanup
1497-
flymake-get-real-file-name))
1498-
1499-
(add-to-list 'flymake-err-line-patterns
1500-
'("\\(Parse\\|Fatal\\) error: \\(.*?\\) in \\(.*?\\) on line \\([0-9]+\\)" 3 4 nil 2))
1493+
(add-to-list
1494+
(eval-when-compile
1495+
(if (boundp 'flymake-proc-allowed-file-name-masks)
1496+
'flymake-proc-allowed-file-name-masks
1497+
'flymake-allowed-file-name-masks))
1498+
'("\\.php[345s]?\\'" php-flymake-php-init))
15011499

15021500

15031501
(defun php-send-region (start end)

0 commit comments

Comments
 (0)