[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode f4a4985134 132/308: Check if our checker can b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode f4a4985134 132/308: Check if our checker can be used before enforcing it. |
Date: |
Tue, 25 Jan 2022 10:59:38 -0500 (EST) |
branch: elpa/drupal-mode
commit f4a49851342ba5098d81ae8ef7dd96653d23ca1b
Author: Thomas Fini Hansen <xen@xen.dk>
Commit: Thomas Fini Hansen <xen@xen.dk>
Check if our checker can be used before enforcing it.
The buffer could be in some derived mode that flycheck wont activate
the checker for, which results in errors if we try to enforce it.
---
drupal/flycheck.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index 58aeab0272..5939fcf8cb 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -53,7 +53,9 @@ so no need to highlight it twice."
(set (make-local-variable 'flycheck-phpcs-standard) drupal/phpcs-standard)
(when drupal/flycheck-phpcs-js-and-css
- (if (apply 'derived-mode-p (append drupal-css-modes drupal-js-modes))
+ (if (and (apply 'derived-mode-p (append drupal-css-modes
drupal-js-modes))
+ (flycheck-may-use-checker 'css-js-phpcs)
+ )
(set (make-local-variable 'flycheck-checker) 'css-js-phpcs)
)
)
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., (continued)
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7866012679 103/308: Fixed link to other drupal-modes at Gitub, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8951d9a7e8 105/308: Extended documentation of `drupal/flymake-phpcs-standard'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3df6f6725c 110/308: Add contributing guidelines., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f0ae32d88a 111/308: Added first take at a `drush-make-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cd3e68f6b3 113/308: Better support for hook_form_FORM_ID_alter() et al., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a22be38d3c 114/308: Read FORM_ID from minibuffer in `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 71f3ba70fe 116/308: Added .inc files as `php-mode` as well., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2245c415ee 123/308: Added check for `drupal-drush-program` is set., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 213ebf5e65 124/308: Fixed eshell site-alias expansion for aliases beginning with @. Suggestion by Tassilo Horn:, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f4a4985134 132/308: Check if our checker can be used before enforcing it.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 2ad9decdb7 136/308: Merge branch 'develop' into pr/35, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ec024f1e2a 148/308: `drupal/phpcs-dont-show-trailing-whitespace` common to flycheck and flymake., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode da62dbfc22 149/308: Added missing EOL., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f77dd902b4 009/308: Add :link to defcustom. Part of #9., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e4d21708db 010/308: Untabify and indent., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 24bae05adf 036/308: Merge branch 'master' of github.com:arnested/drupal-mode, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 02eacb79f2 078/308: Added `drupal/etags-get-function-args' for finding arguments using Etags., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0b770695f8 072/308: Fixed `drupal-get-function-args' to fail gracefully., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 551cc3c803 093/308: Eliminated `drupal-drush-mode'. It had no purpose., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c81cdfd343 096/308: Made `drupal-search-url' et el safe for `string-or-null-p'., ELPA Syncer, 2022/01/25