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

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

[nongnu] elpa/drupal-mode 511fa0de3f 104/308: Ensured file extensions ar


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 511fa0de3f 104/308: Ensured file extensions are actually extensions.
Date: Tue, 25 Jan 2022 10:59:35 -0500 (EST)

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

    Ensured file extensions are actually extensions.
    
    We went into `php-mode' on files like Bash's ~/.profile.
    
    Fix regexp in auto-mode-list to ensure there is no directory separator
    in front of the extensions.
---
 drupal-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 16e6f25c50..750786c7a9 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -643,8 +643,8 @@ mode-hook."
 
 ;;;###autoload
 (progn
-  (add-to-list 'auto-mode-alist 
'("\\.\\(module\\|test\\|install\\|profile\\|tpl\\.php\\|theme\\)\\'" . 
php-mode))
-  (add-to-list 'auto-mode-alist '("\\.info\\'" . conf-windows-mode)))
+  (add-to-list 'auto-mode-alist 
'("[^/]\\.\\(module\\|test\\|install\\|profile\\|tpl\\.php\\|theme\\)\\'" . 
php-mode))
+  (add-to-list 'auto-mode-alist '("[^/]\\.info\\'" . conf-windows-mode)))
 
 
 ;; Load support for various Emacs features if necessary.



reply via email to

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