[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 8fc32e7641 053/308: Made `drupal-detect-drupal
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 8fc32e7641 053/308: Made `drupal-detect-drupal-version' more reliable. |
Date: |
Tue, 25 Jan 2022 10:59:23 -0500 (EST) |
branch: elpa/drupal-mode
commit 8fc32e7641eaabbf15173a029b13340e56ca9652
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Made `drupal-detect-drupal-version' more reliable.
But it should be rewritten from scratch to perform better and be less
error prone.
---
drupal-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 8123ffba4c..6a02bc4fcd 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -349,7 +349,8 @@ If part of a Drupal project also detect the version of
Drupal and
the location of DRUPAL_ROOT."
(interactive)
(hack-local-variables)
- (when (not drupal-version)
+ (when (or (not drupal-version)
+ (not drupal-rootdir))
(dolist (file '("modules/system/system.module" "includes/bootstrap.inc"
"core/includes/bootstrap.inc"))
(let ((here (or buffer-file-name dired-directory)))
(when here
@@ -363,7 +364,8 @@ the location of DRUPAL_ROOT."
(dir-locals-set-class-variables 'drupal-site `((nil .
((drupal-version . ,(match-string-no-properties 2))
(drupal-rootdir . ,dir)))))
(dir-locals-set-directory-class dir 'drupal-site)))
- (setq drupal-version (match-string-no-properties 2)))))))))
+ (setq drupal-version (match-string-no-properties 2))))))))
+ (hack-local-variables))
(let ((module (drupal-locate-dominating-module buffer-file-name t))
(version drupal-version))
(when module
- [nongnu] elpa/drupal-mode 0a5c953312 029/308: flymake-phpcs will only be used in php-mode., (continued)
- [nongnu] elpa/drupal-mode 0a5c953312 029/308: flymake-phpcs will only be used in php-mode., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e4c4c3d6e1 022/308: `drupal-delete-trailing-whitespace' made local var., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9c618f003c 026/308: Set `ispell-local-dictionary' to `american'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode abc074346f 035/308: Merge branch 'release/0.2.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a0ef7e7fce 039/308: Fixed package name in install target., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 661e6bba48 040/308: Changed info about flymake-phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ebb3c56e25 068/308: Discovers more module info and added module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 587e0eb2ec 060/308: Added completion based on gtags., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e96a1f70f4 066/308: Added support for "Drush utilities for Emacs users"., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5386751a5d 069/308: Fixed module version in module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8fc32e7641 053/308: Made `drupal-detect-drupal-version' more reliable.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode ce7e9d2bf3 043/308: Various cleanup., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 00aae1e5e8 070/308: Added support for `web-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 48a90d94ed 061/308: Fixed spelling., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b8863a5c82 054/308: Added first take on automated tests., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode aa87684203 048/308: Added `require' for supported libraries., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 897fbfb4a5 082/308: Added small optimization for byte compiler., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a53c312da1 089/308: Improved info file auto-insert skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 42fc725add 092/308: Hardened match for code sniffer standard., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., ELPA Syncer, 2022/01/25