branch: elpa/drupal-mode
commit ee1a24c96a7487bb9df8dd15656be7d8330028f0
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Make sure we get the actual module name even when having double extensions
like .info.yml
---
drupal-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 9e8f7ab365..0d7e82ee03 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -752,7 +752,7 @@ the location of DRUPAL_ROOT."
(string= module-version "VERSION"))
(setq module-version version))
(puthash (expand-file-name (file-name-directory module))
`((drupal-module . ,(file-name-nondirectory
-
(file-name-sans-extension module)))
+
(file-name-sans-extension (file-name-sans-extension module))))
(drupal-version . ,version)
(drupal-module-name . ,module-name)
(drupal-module-version . ,module-version)