[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 3bb1e40acc 183/308: Silence byte compiler.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 3bb1e40acc 183/308: Silence byte compiler. |
Date: |
Tue, 25 Jan 2022 10:59:46 -0500 (EST) |
branch: elpa/drupal-mode
commit 3bb1e40acc5d05c5ff51998b94bb35ef1c03f0ab
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Silence byte compiler.
---
drupal-mode.el | 4 ++--
drupal/flycheck.el | 7 +++----
drupal/flymake-phpcs.el | 6 +++++-
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index d74620b5a9..bd9d5582f1 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -36,8 +36,8 @@
(require 'php-mode)
(require 'format-spec)
-(eval-when-compile
- (require 'css-mode))
+;; Silence byte compiler.
+(defvar css-indent-level)
diff --git a/drupal/flycheck.el b/drupal/flycheck.el
index d671587aef..84d5da1a46 100644
--- a/drupal/flycheck.el
+++ b/drupal/flycheck.el
@@ -25,9 +25,7 @@
;;; Code:
-(eval-when-compile
- (require 'flycheck))
-
+(require 'flycheck)
(require 'drupal/phpcs)
(defcustom drupal/flycheck-phpcs-js-and-css t
@@ -47,7 +45,8 @@
;; Flycheck will also highlight trailing whitespace as an
;; error so no need to highlight it twice.
- (drupal/phpcs-dont-show-trailing-whitespace)))
+ (when (fboundp 'drupal/phpcs-dont-show-trailing-whitespace)
+ (drupal/phpcs-dont-show-trailing-whitespace))))
(add-hook 'drupal-mode-hook #'drupal/flycheck-hook)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index 65bb429b89..1ccc3932a9 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -32,6 +32,9 @@
(define-obsolete-variable-alias
'drupal/flymake-phpcs-dont-show-trailing-whitespace
'drupal/phpcs-dont-show-trailing-whitespace)
(require 'drupal/phpcs)
+;; Silence byte compiler.
+(defvar flymake-phpcs-location)
+
;; Only available when `flymake' is the fork from
;; https://github.com/illusori/emacs-flymake.
(when (or (boundp 'flymake-run-in-place)
@@ -76,7 +79,8 @@ file (and thus on the remote machine), or in the same place as
;; Flymake-phpcs will also highlight trailing whitespace as an
;; error so no need to highlight it twice.
- (drupal/phpcs-dont-show-trailing-whitespace)
+ (when (fboundp 'drupal/phpcs-dont-show-trailing-whitespace)
+ (drupal/phpcs-dont-show-trailing-whitespace))
;; This is a php-mode file so add the extension to a buffer locale
;; version of `flymake-allowed-file-name-masks' and make
- [nongnu] elpa/drupal-mode 4adeb0c218 150/308: Fixed tar on Mac OS X., (continued)
- [nongnu] elpa/drupal-mode 4adeb0c218 150/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e20d8fefaa 153/308: Swicth to https links to Drupal.org., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8eec967164 152/308: Fixed latest commit., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 36a8caff76 156/308: Bumped version number to 0.3.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 557f34c5d3 163/308: Fixed tar on Mac OS X., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4e4714fc16 165/308: ..., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 919154b7f4 158/308: Merge branch 'release/0.3.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 493acf44da 166/308: Redone building `drupal-mode-map`., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a25b4df69a 179/308: Cope with different implementations of flymake-phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9b091a3b71 182/308: Merge tag '0.4.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3bb1e40acc 183/308: Silence byte compiler.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode cd07abb544 189/308: Made it possible to refer to issue comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4532cd7217 193/308: Use `._flymake` as temp file pattern., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7ddadecabd 191/308: Reduced number of times calling `drupal-detect-drupal-version`., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1d1690b855 203/308: Merge branch 'release/0.5.0', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ca93db3d20 027/308: Only change dictionary to `american' if it exists., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ab0af570f8 095/308: Added .profile to `auto-load-alist' for `php-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8d2c52c821 188/308: Prepared for .api.php CoderSniffer sniffs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 95d6ecdd75 194/308: Bumped version number., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 09c622e53c 199/308: Merge pull request #45 from joddie/skeleton-menu-items, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dd0016dd41 204/308: Merge branch 'release/0.5.0' into develop, ELPA Syncer, 2022/01/25