[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 5ac9531321 177/308: Added default to run flyma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 5ac9531321 177/308: Added default to run flymake in place. |
Date: |
Tue, 25 Jan 2022 10:59:45 -0500 (EST) |
branch: elpa/drupal-mode
commit 5ac95313210d3e3d39148acb3c74bf02c9a8f48a
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Added default to run flymake in place.
---
drupal/flymake-phpcs.el | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index d861bf3f22..ac50b0b0ee 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -32,6 +32,29 @@
(define-obsolete-variable-alias
'drupal/flymake-phpcs-dont-show-trailing-whitespace
'drupal/phpcs-dont-show-trailing-whitespace)
(require 'drupal/phpcs)
+;; Only available when `flymake' is the fork from
+;; https://github.com/illusori/emacs-flymake.
+(when (boundp 'flymake-run-in-place)
+ (defcustom drupal/flymake-run-in-place t
+ "If nil, flymake will run on copies in `temporary-file-directory' rather
+than the same directory as the original file.
+
+Drupal Coder Sniffer has some sniffs that will only work if run in place.
+
+Defaults to `t'. Set to `default' to use whatever
+`flymake-run-in-place' is set to.
+
+When editing a remote file via Tramp, this flag also has the side-effect of
+determining whether the syntax check is run in the same place as the original
+file (and thus on the remote machine), or in the same place as
+`temporary-file-directory' (usually the local machine)."
+ :type `(choice
+ (const :tag "Yes" t)
+ (const :tag "No" nil)
+ (const :tag "Default" default))
+ :link '(url-link :tag "Drupal Coder Sniffer"
"https://drupal.org/project/coder")
+ :group 'drupal))
+
(defun drupal/flymake-phpcs-enable ()
"Enable drupal-mode support for flymake-phpcs."(interactive)
(when (and (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes
drupal-js-modes drupal-info-modes))
@@ -41,6 +64,11 @@
;; supported above.
(set (make-local-variable 'flymake-phpcs-standard) drupal/phpcs-standard)
+ ;; Set whether flymake runs in place.
+ (when (and (boundp 'drupal/flymake-run-in-place)
+ (not (eq drupal/flymake-run-in-place 'default)))
+ (set (make-local-variable 'flymake-run-in-place)
drupal/flymake-run-in-place))
+
;; Flymake-phpcs will also highlight trailing whitespace as an
;; error so no need to highlight it twice.
(drupal/phpcs-dont-show-trailing-whitespace)
- [nongnu] elpa/drupal-mode dcea92f3a9 117/308: Added autoinsert skeleton for .test files., (continued)
- [nongnu] elpa/drupal-mode dcea92f3a9 117/308: Added autoinsert skeleton for .test files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6dd8edc402 121/308: Eliminated compiler warnings., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 16632d6cf7 133/308: Fixed drush version detection for Drush 7., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 58fb25a914 138/308: Added .cask to .gitignore., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d04b119de7 141/308: Properly add our checkers to flycheck-checkers instead of enforcing it., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5eb72aba82 162/308: Merge branch 'release/0.3.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0eac30704b 167/308: Don't delete `'trailing` form `whitespace-style` after all., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3c32d7e938 169/308: `flycheck-declare-checker` is now `flycheck-define-checker`, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3cf6d3a8a9 173/308: Updated phpcs patterns to new flycheck format., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a4768c704e 178/308: Fixed namespace of custom variable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5ac9531321 177/308: Added default to run flymake in place.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode b2ba37e71a 180/308: Bumped version to 0.4.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 65efa5b78a 186/308: Removed usage of directory local variables., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 13b2fff6ef 196/308: Use flycheck-add-next-checker., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 507da75f31 212/308: Use `special-mode` for drush php-eval output., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 11bfbda293 217/308: Added drupal-mode to dired buffers., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ce9d3a564f 215/308: Fixed regexp., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 75e1d2dccc 230/308: Require dependency., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 20c4d561bc 245/308: Merge branch 'release/0.6.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d03a71c891 247/308: Bump version number to 0.6.1., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bdf3709e10 253/308: Fix bug in drupal/etags-get-function-args, ELPA Syncer, 2022/01/25