emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode e65bf476cd 090/308: Fixed module version for D


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode e65bf476cd 090/308: Fixed module version for Drupal core modules.
Date: Tue, 25 Jan 2022 10:59:32 -0500 (EST)

branch: elpa/drupal-mode
commit e65bf476cdda6ae48d52a0ffa53edaddcf3ac3fb
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    Fixed module version for Drupal core modules.
---
 drupal-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index edbf9c693a..dc591f63f5 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -517,7 +517,10 @@ the location of DRUPAL_ROOT."
           (goto-char (point-min))
           (when (re-search-forward "^project *=" nil t)
             (re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
-            (setq project (match-string-no-properties 1)))))
+            (setq project (match-string-no-properties 1)))
+          (when (and (string= project "drupal")
+                     (string= module-version "VERSION"))
+            (setq module-version version))))
       (dir-locals-set-class-variables 'drupal-module `((nil . ((drupal-module 
. ,(file-name-nondirectory
                                                                                
   (file-name-sans-extension module)))
                                                                (drupal-version 
. ,version)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]