]> code.delx.au - gnu-emacs/commitdiff
Recognize .rbw and .pyw files (bug#18753)
authorVasily Korytov <vasily.korytov@yahoo.com>
Sun, 15 Nov 2015 23:32:01 +0000 (01:32 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 15 Nov 2015 23:32:35 +0000 (01:32 +0200)
* 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
lisp/progmodes/ruby-mode.el

index b6f7da6575283b778b76f6c78c00ae04b8574af8..20efc5e2b0a4258c3e19684037a8fb427c2d3726 100644 (file)
 (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))
 
index ab83b9773202b33b49bce380c92dec715071b7d6..df07083eaefbc4f310002ba0fc4ee1c4f6395360 100644 (file)
@@ -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"
                                      "\\)"
                                      "\\|/"