emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 dbc090a 3/3: Recognize .rbw and .pyw files (bug#1


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-25 dbc090a 3/3: Recognize .rbw and .pyw files (bug#18753)
Date: Sun, 15 Nov 2015 23:32:59 +0000

branch: emacs-25
commit dbc090aeabe2cf80b1ab213b101c58d362a88d12
Author: Vasily Korytov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Recognize .rbw and .pyw files (bug#18753)
    
    * lisp/progmodes/python.el (auto-mode-alist):
    Recognize .pyw files.
    
    * lisp/progmodes/ruby-mode.el (auto-mode-alist):
    Recognize .rbw files.
---
 lisp/progmodes/python.el    |    2 +-
 lisp/progmodes/ruby-mode.el |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b6f7da6..20efc5e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -273,7 +273,7 @@
 (autoload 'help-function-arglist "help-fns")
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'")  'python-mode))
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'")  'python-mode))
 ;;;###autoload
 (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 
'python-mode))
 
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index ab83b97..df07083 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2259,7 +2259,7 @@ See `font-lock-syntax-table'.")
 ;;;###autoload
 (add-to-list 'auto-mode-alist
              (cons (purecopy (concat "\\(?:\\.\\(?:"
-                                     "rb\\|ru\\|rake\\|thor"
+                                     "rbw?\\|ru\\|rake\\|thor"
                                      "\\|jbuilder\\|rabl\\|gemspec\\|podspec"
                                      "\\)"
                                      "\\|/"



reply via email to

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